diff --git a/sdk/resourcemanager/appservice/armappservice/CHANGELOG.md b/sdk/resourcemanager/appservice/armappservice/CHANGELOG.md index 8dad11feaa20..9dc09ec58325 100644 --- a/sdk/resourcemanager/appservice/armappservice/CHANGELOG.md +++ b/sdk/resourcemanager/appservice/armappservice/CHANGELOG.md @@ -1,5 +1,9 @@ # Release History +## 2.1.2 (2023-04-25) +### Other Changes + + ## 2.1.1 (2023-04-14) ### Bug Fixes diff --git a/sdk/resourcemanager/appservice/armappservice/autorest.md b/sdk/resourcemanager/appservice/armappservice/autorest.md index 2dbf39ba84b8..12a3c9fcb47d 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/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/readme.go.md +- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/web/resource-manager/readme.md +- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/web/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 2.1.1 +module-version: 2.1.2 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/appservice/armappservice/certificateorders_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/certificateorders_client_example_test.go deleted file mode 100644 index 416200ee3105..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/certificateorders_client_example_test.go +++ /dev/null @@ -1,952 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/ListAppServiceCertificateOrdersBySubscription.json -func ExampleCertificateOrdersClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewCertificateOrdersClient().NewListPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CertificateOrderCollection = armappservice.CertificateOrderCollection{ - // Value: []*armappservice.CertificateOrder{ - // { - // Name: to.Ptr("SampleCertificateOrderName"), - // Type: to.Ptr("Microsoft.CertificateRegistration/certificateOrders"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName"), - // Location: to.Ptr("Global"), - // Properties: &armappservice.CertificateOrderProperties{ - // AppServiceCertificateNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // AutoRenew: to.Ptr(true), - // Certificates: map[string]*armappservice.Certificate{ - // "SampleCertName1": &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName1"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // "SampleCertName2": &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName2"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // }, - // Contact: &armappservice.CertificateOrderContact{ - // Email: to.Ptr("contact@email.com"), - // NameFirst: to.Ptr("SampleFirstName"), - // NameLast: to.Ptr("SampleLastName"), - // Phone: to.Ptr("1-224-550-332"), - // }, - // Csr: to.Ptr("xdf!x|"), - // DistinguishedName: to.Ptr("CN=SampleCustomDomain.com"), - // DomainVerificationToken: to.Ptr("awe4163Br6d32r"), - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25+00:00"); return t}()), - // Intermediate: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-11-12T23:40:25+00:00"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-12T23:40:25+00:00"); return t}()), - // SerialNumber: to.Ptr("k45kad0024"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=IntermediateCertSubjectName"), - // Thumbprint: to.Ptr("RF3D7411A44163B6D32B3343559B03E175886EBFE"), - // Version: to.Ptr[int32](5589220), - // }, - // IsPrivateKeyExternal: to.Ptr(false), - // KeySize: to.Ptr[int32](2048), - // LastCertificateIssuanceTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25+00:00"); return t}()), - // NextAutoRenewalTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25+00:00"); return t}()), - // ProductType: to.Ptr(armappservice.CertificateProductTypeStandardDomainValidatedSSL), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Root: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-11-12T23:40:25+00:00"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-12T23:40:25+00:00"); return t}()), - // SerialNumber: to.Ptr("jkskd890ajdd00124"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=RootCertSubjectName"), - // Thumbprint: to.Ptr("ZD3D7411A44163B6D32B3343559B03E175886EBFE"), - // Version: to.Ptr[int32](3430921), - // }, - // SerialNumber: to.Ptr("12324325325"), - // SignedCertificate: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25+00:00"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25+00:00"); return t}()), - // SerialNumber: to.Ptr("sds12424k"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=CertSubjectName"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B03E175886EBFE"), - // Version: to.Ptr[int32](1232490), - // }, - // Status: to.Ptr(armappservice.CertificateOrderStatusIssued), - // ValidityInYears: to.Ptr[int32](2), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/ValidateAppServiceCertificatePurchaseInformationBySubscription.json -func ExampleCertificateOrdersClient_ValidatePurchaseInformation() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewCertificateOrdersClient().ValidatePurchaseInformation(ctx, armappservice.CertificateOrder{ - Location: to.Ptr("Global"), - Properties: &armappservice.CertificateOrderProperties{ - AutoRenew: to.Ptr(true), - Certificates: map[string]*armappservice.Certificate{ - "SampleCertName1": { - KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - KeyVaultSecretName: to.Ptr("SampleSecretName1"), - }, - "SampleCertName2": { - KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - KeyVaultSecretName: to.Ptr("SampleSecretName2"), - }, - }, - DistinguishedName: to.Ptr("CN=SampleCustomDomain.com"), - KeySize: to.Ptr[int32](2048), - ProductType: to.Ptr(armappservice.CertificateProductTypeStandardDomainValidatedSSL), - ValidityInYears: to.Ptr[int32](2), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/ListAppServiceCertificateOrdersByResourceGroup.json -func ExampleCertificateOrdersClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewCertificateOrdersClient().NewListByResourceGroupPager("testrg123", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CertificateOrderCollection = armappservice.CertificateOrderCollection{ - // Value: []*armappservice.CertificateOrder{ - // { - // Name: to.Ptr("SampleCertificateOrderName"), - // Type: to.Ptr("Microsoft.CertificateRegistration/certificateOrders"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName"), - // Location: to.Ptr("Global"), - // Properties: &armappservice.CertificateOrderProperties{ - // AppServiceCertificateNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // AutoRenew: to.Ptr(true), - // Certificates: map[string]*armappservice.Certificate{ - // "SampleCertName1": &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName1"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // "SampleCertName2": &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName2"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // }, - // Contact: &armappservice.CertificateOrderContact{ - // Email: to.Ptr("contact@email.com"), - // NameFirst: to.Ptr("SampleFirstName"), - // NameLast: to.Ptr("SampleLastName"), - // Phone: to.Ptr("1-224-550-332"), - // }, - // Csr: to.Ptr("xdf!x|"), - // DistinguishedName: to.Ptr("CN=SampleCustomDomain.com"), - // DomainVerificationToken: to.Ptr("awe4163Br6d32r"), - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25+00:00"); return t}()), - // Intermediate: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-11-12T23:40:25+00:00"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-12T23:40:25+00:00"); return t}()), - // SerialNumber: to.Ptr("k45kad0024"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=IntermediateCertSubjectName"), - // Thumbprint: to.Ptr("RF3D7411A44163B6D32B3343559B03E175886EBFE"), - // Version: to.Ptr[int32](5589220), - // }, - // IsPrivateKeyExternal: to.Ptr(false), - // KeySize: to.Ptr[int32](2048), - // LastCertificateIssuanceTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25+00:00"); return t}()), - // NextAutoRenewalTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25+00:00"); return t}()), - // ProductType: to.Ptr(armappservice.CertificateProductTypeStandardDomainValidatedSSL), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Root: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-11-12T23:40:25+00:00"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-12T23:40:25+00:00"); return t}()), - // SerialNumber: to.Ptr("jkskd890ajdd00124"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=RootCertSubjectName"), - // Thumbprint: to.Ptr("ZD3D7411A44163B6D32B3343559B03E175886EBFE"), - // Version: to.Ptr[int32](3430921), - // }, - // SerialNumber: to.Ptr("12324325325"), - // SignedCertificate: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25+00:00"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25+00:00"); return t}()), - // SerialNumber: to.Ptr("sds12424k"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=CertSubjectName"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B03E175886EBFE"), - // Version: to.Ptr[int32](123249), - // }, - // Status: to.Ptr(armappservice.CertificateOrderStatusIssued), - // ValidityInYears: to.Ptr[int32](2), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/GetAppServiceCertificateOrder.json -func ExampleCertificateOrdersClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificateOrdersClient().Get(ctx, "testrg123", "SampleCertificateOrderName", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CertificateOrder = armappservice.CertificateOrder{ - // Name: to.Ptr("SampleCertificateOrderName"), - // Type: to.Ptr("Microsoft.CertificateRegistration/certificateOrders"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName"), - // Location: to.Ptr("Global"), - // Properties: &armappservice.CertificateOrderProperties{ - // AppServiceCertificateNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // AutoRenew: to.Ptr(true), - // Certificates: map[string]*armappservice.Certificate{ - // "SampleCertName1": &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName1"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // "SampleCertName2": &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName2"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // }, - // Contact: &armappservice.CertificateOrderContact{ - // Email: to.Ptr("contact@email.com"), - // NameFirst: to.Ptr("SampleFirstName"), - // NameLast: to.Ptr("SampleLastName"), - // Phone: to.Ptr("1-224-550-332"), - // }, - // Csr: to.Ptr("xdf!x|"), - // DistinguishedName: to.Ptr("CN=SampleCustomDomain.com"), - // DomainVerificationToken: to.Ptr("awe4163Br6d32r"), - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25+00:00"); return t}()), - // Intermediate: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-11-12T23:40:25+00:00"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-12T23:40:25+00:00"); return t}()), - // SerialNumber: to.Ptr("k45kad0024"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=IntermediateCertSubjectName"), - // Thumbprint: to.Ptr("RF3D7411A44163B6D32B3343559B03E175886EBFE"), - // Version: to.Ptr[int32](5589220), - // }, - // IsPrivateKeyExternal: to.Ptr(false), - // KeySize: to.Ptr[int32](2048), - // LastCertificateIssuanceTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25+00:00"); return t}()), - // NextAutoRenewalTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25+00:00"); return t}()), - // ProductType: to.Ptr(armappservice.CertificateProductTypeStandardDomainValidatedSSL), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Root: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-11-12T23:40:25+00:00"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-12T23:40:25+00:00"); return t}()), - // SerialNumber: to.Ptr("jkskd890ajdd00124"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=RootCertSubjectName"), - // Thumbprint: to.Ptr("ZD3D7411A44163B6D32B3343559B03E175886EBFE"), - // Version: to.Ptr[int32](3430921), - // }, - // SerialNumber: to.Ptr("12324325325"), - // SignedCertificate: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25+00:00"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25+00:00"); return t}()), - // SerialNumber: to.Ptr("sds12424k"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=CertSubjectName"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B03E175886EBFE"), - // Version: to.Ptr[int32](1232490), - // }, - // Status: to.Ptr(armappservice.CertificateOrderStatusIssued), - // ValidityInYears: to.Ptr[int32](2), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/CreateAppServiceCertificateOrder.json -func ExampleCertificateOrdersClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewCertificateOrdersClient().BeginCreateOrUpdate(ctx, "testrg123", "SampleCertificateOrderName", armappservice.CertificateOrder{ - Location: to.Ptr("Global"), - Properties: &armappservice.CertificateOrderProperties{ - AutoRenew: to.Ptr(true), - Certificates: map[string]*armappservice.Certificate{ - "SampleCertName1": { - KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - KeyVaultSecretName: to.Ptr("SampleSecretName1"), - }, - "SampleCertName2": { - KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - KeyVaultSecretName: to.Ptr("SampleSecretName2"), - }, - }, - DistinguishedName: to.Ptr("CN=SampleCustomDomain.com"), - KeySize: to.Ptr[int32](2048), - ProductType: to.Ptr(armappservice.CertificateProductTypeStandardDomainValidatedSSL), - ValidityInYears: to.Ptr[int32](2), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CertificateOrder = armappservice.CertificateOrder{ - // Name: to.Ptr("SampleCertificateOrderName"), - // Type: to.Ptr("Microsoft.CertificateRegistration/certificateOrders"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName"), - // Location: to.Ptr("Global"), - // Properties: &armappservice.CertificateOrderProperties{ - // AppServiceCertificateNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // AutoRenew: to.Ptr(true), - // Certificates: map[string]*armappservice.Certificate{ - // "SampleCertName1": &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName1"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // "SampleCertName2": &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName2"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // }, - // Contact: &armappservice.CertificateOrderContact{ - // Email: to.Ptr("contact@email.com"), - // NameFirst: to.Ptr("SampleFirstName"), - // NameLast: to.Ptr("SampleLastName"), - // Phone: to.Ptr("1-224-550-332"), - // }, - // Csr: to.Ptr("xdf!x|"), - // DistinguishedName: to.Ptr("CN=SampleCustomDomain.com"), - // DomainVerificationToken: to.Ptr("awe4163Br6d32r"), - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25+00:00"); return t}()), - // Intermediate: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-11-12T23:40:25+00:00"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-12T23:40:25+00:00"); return t}()), - // SerialNumber: to.Ptr("k45kad0024"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=IntermediateCertSubjectName"), - // Thumbprint: to.Ptr("RF3D7411A44163B6D32B3343559B03E175886EBFE"), - // Version: to.Ptr[int32](5589220), - // }, - // IsPrivateKeyExternal: to.Ptr(false), - // KeySize: to.Ptr[int32](2048), - // LastCertificateIssuanceTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25+00:00"); return t}()), - // NextAutoRenewalTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25+00:00"); return t}()), - // ProductType: to.Ptr(armappservice.CertificateProductTypeStandardDomainValidatedSSL), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Root: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-11-12T23:40:25+00:00"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-12T23:40:25+00:00"); return t}()), - // SerialNumber: to.Ptr("jkskd890ajdd00124"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=RootCertSubjectName"), - // Thumbprint: to.Ptr("ZD3D7411A44163B6D32B3343559B03E175886EBFE"), - // Version: to.Ptr[int32](3430921), - // }, - // SerialNumber: to.Ptr("12324325325"), - // SignedCertificate: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25+00:00"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25+00:00"); return t}()), - // SerialNumber: to.Ptr("sds12424k"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=CertSubjectName"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B03E175886EBFE"), - // Version: to.Ptr[int32](1232490), - // }, - // Status: to.Ptr(armappservice.CertificateOrderStatusIssued), - // ValidityInYears: to.Ptr[int32](2), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/DeleteAppServiceCertificateOrder.json -func ExampleCertificateOrdersClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewCertificateOrdersClient().Delete(ctx, "testrg123", "SampleCertificateOrderName", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/UpdateAppServiceCertificateOrder.json -func ExampleCertificateOrdersClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificateOrdersClient().Update(ctx, "testrg123", "SampleCertificateOrderName", armappservice.CertificateOrderPatchResource{ - Properties: &armappservice.CertificateOrderPatchResourceProperties{ - AutoRenew: to.Ptr(true), - Certificates: map[string]*armappservice.Certificate{ - "SampleCertName1": { - KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - KeyVaultSecretName: to.Ptr("SampleSecretName1"), - }, - "SampleCertName2": { - KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - KeyVaultSecretName: to.Ptr("SampleSecretName2"), - }, - }, - DistinguishedName: to.Ptr("CN=SampleCustomDomain.com"), - KeySize: to.Ptr[int32](2048), - ProductType: to.Ptr(armappservice.CertificateProductTypeStandardDomainValidatedSSL), - ValidityInYears: to.Ptr[int32](2), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CertificateOrder = armappservice.CertificateOrder{ - // Name: to.Ptr("SampleCertificateOrderName"), - // Type: to.Ptr("Microsoft.CertificateRegistration/certificateOrders"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName"), - // Location: to.Ptr("Global"), - // Properties: &armappservice.CertificateOrderProperties{ - // AppServiceCertificateNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // AutoRenew: to.Ptr(true), - // Certificates: map[string]*armappservice.Certificate{ - // "SampleCertName1": &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName1"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // "SampleCertName2": &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName2"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // }, - // Contact: &armappservice.CertificateOrderContact{ - // Email: to.Ptr("contact@email.com"), - // NameFirst: to.Ptr("SampleFirstName"), - // NameLast: to.Ptr("SampleLastName"), - // Phone: to.Ptr("1-224-550-332"), - // }, - // Csr: to.Ptr("xdf!x|"), - // DistinguishedName: to.Ptr("CN=SampleCustomDomain.com"), - // DomainVerificationToken: to.Ptr("awe4163Br6d32r"), - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25+00:00"); return t}()), - // Intermediate: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-11-12T23:40:25+00:00"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-12T23:40:25+00:00"); return t}()), - // SerialNumber: to.Ptr("k45kad0024"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=IntermediateCertSubjectName"), - // Thumbprint: to.Ptr("RF3D7411A44163B6D32B3343559B03E175886EBFE"), - // Version: to.Ptr[int32](5589220), - // }, - // IsPrivateKeyExternal: to.Ptr(false), - // KeySize: to.Ptr[int32](2048), - // LastCertificateIssuanceTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25+00:00"); return t}()), - // NextAutoRenewalTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25+00:00"); return t}()), - // ProductType: to.Ptr(armappservice.CertificateProductTypeStandardDomainValidatedSSL), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Root: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-11-12T23:40:25+00:00"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-12T23:40:25+00:00"); return t}()), - // SerialNumber: to.Ptr("jkskd890ajdd00124"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=RootCertSubjectName"), - // Thumbprint: to.Ptr("ZD3D7411A44163B6D32B3343559B03E175886EBFE"), - // Version: to.Ptr[int32](3430921), - // }, - // SerialNumber: to.Ptr("12324325325"), - // SignedCertificate: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25+00:00"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25+00:00"); return t}()), - // SerialNumber: to.Ptr("sds12424k"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=CertSubjectName"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B03E175886EBFE"), - // Version: to.Ptr[int32](1232490), - // }, - // Status: to.Ptr(armappservice.CertificateOrderStatusIssued), - // ValidityInYears: to.Ptr[int32](2), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/ListCertificatesByAppServiceCertificateOrder.json -func ExampleCertificateOrdersClient_NewListCertificatesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewCertificateOrdersClient().NewListCertificatesPager("testrg123", "SampleCertificateOrderName", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CertificateCollection = armappservice.CertificateCollection{ - // Value: []*armappservice.CertificateResource{ - // { - // Name: to.Ptr("SampleCertName1"), - // Type: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName/certificates/SampleCertName1"), - // Location: to.Ptr("Global"), - // Properties: &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName1"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // }, - // { - // Name: to.Ptr("SampleCertName2"), - // Type: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName/certificates/SampleCertName2"), - // Location: to.Ptr("Global"), - // Properties: &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleCertName2"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/GetAppServiceCertificate.json -func ExampleCertificateOrdersClient_GetCertificate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificateOrdersClient().GetCertificate(ctx, "testrg123", "SampleCertificateOrderName", "SampleCertName1", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CertificateResource = armappservice.CertificateResource{ - // Name: to.Ptr("SampleCertName1"), - // Type: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName/certificates/SampleCertName1"), - // Location: to.Ptr("Global"), - // Properties: &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName1"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/CreateAppServiceCertificate.json -func ExampleCertificateOrdersClient_BeginCreateOrUpdateCertificate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewCertificateOrdersClient().BeginCreateOrUpdateCertificate(ctx, "testrg123", "SampleCertificateOrderName", "SampleCertName1", armappservice.CertificateResource{ - Location: to.Ptr("Global"), - Properties: &armappservice.Certificate{ - KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - KeyVaultSecretName: to.Ptr("SampleSecretName1"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CertificateResource = armappservice.CertificateResource{ - // Name: to.Ptr("SampleCertName1"), - // Type: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName/certificates/SampleCertName1"), - // Location: to.Ptr("Global"), - // Properties: &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName1"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/DeleteAppServiceCertificate.json -func ExampleCertificateOrdersClient_DeleteCertificate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewCertificateOrdersClient().DeleteCertificate(ctx, "testrg123", "SampleCertificateOrderName", "SampleCertName1", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/UpdateAppServiceCertificate.json -func ExampleCertificateOrdersClient_UpdateCertificate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificateOrdersClient().UpdateCertificate(ctx, "testrg123", "SampleCertificateOrderName", "SampleCertName1", armappservice.CertificatePatchResource{ - Properties: &armappservice.Certificate{ - KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - KeyVaultSecretName: to.Ptr("SampleSecretName1"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CertificateResource = armappservice.CertificateResource{ - // Name: to.Ptr("SampleCertName1"), - // Type: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName/certificates/SampleCertName1"), - // Location: to.Ptr("Global"), - // Properties: &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName1"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/ReissueAppServiceCertificateOrder.json -func ExampleCertificateOrdersClient_Reissue() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewCertificateOrdersClient().Reissue(ctx, "testrg123", "SampleCertificateOrderName", armappservice.ReissueCertificateOrderRequest{ - Properties: &armappservice.ReissueCertificateOrderRequestProperties{ - Csr: to.Ptr("CSR1223238Value"), - DelayExistingRevokeInHours: to.Ptr[int32](2), - IsPrivateKeyExternal: to.Ptr(false), - KeySize: to.Ptr[int32](2048), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/RenewAppServiceCertificateOrder.json -func ExampleCertificateOrdersClient_Renew() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewCertificateOrdersClient().Renew(ctx, "testrg123", "SampleCertificateOrderName", armappservice.RenewCertificateOrderRequest{ - Properties: &armappservice.RenewCertificateOrderRequestProperties{ - Csr: to.Ptr("CSR1223238Value"), - IsPrivateKeyExternal: to.Ptr(false), - KeySize: to.Ptr[int32](2048), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/ResendAppServiceCertificateOrderEmail.json -func ExampleCertificateOrdersClient_ResendEmail() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewCertificateOrdersClient().ResendEmail(ctx, "testrg123", "SampleCertificateOrderName", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/ResendDomainOwnershipVerificationEmail.json -func ExampleCertificateOrdersClient_ResendRequestEmails() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewCertificateOrdersClient().ResendRequestEmails(ctx, "testrg123", "SampleCertificateOrderName", armappservice.NameIdentifier{ - Name: to.Ptr("Domain name"), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/RetrieveSiteSeal.json -func ExampleCertificateOrdersClient_RetrieveSiteSeal() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificateOrdersClient().RetrieveSiteSeal(ctx, "testrg123", "SampleCertOrder", armappservice.SiteSealRequest{ - LightTheme: to.Ptr(true), - Locale: to.Ptr("en-us"), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SiteSeal = armappservice.SiteSeal{ - // HTML: to.Ptr("SiteSeal"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/VerifyDomainOwnership.json -func ExampleCertificateOrdersClient_VerifyDomainOwnership() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewCertificateOrdersClient().VerifyDomainOwnership(ctx, "testrg123", "SampleCertificateOrderName", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/RetrieveCertificateOrderActions.json -func ExampleCertificateOrdersClient_RetrieveCertificateActions() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificateOrdersClient().RetrieveCertificateActions(ctx, "testrg123", "SampleCertOrder", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CertificateOrderActionArray = []*armappservice.CertificateOrderAction{ - // { - // ActionType: to.Ptr(armappservice.CertificateOrderActionTypeFraudDetected), - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25+00:00"); return t}()), - // }, - // { - // ActionType: to.Ptr(armappservice.CertificateOrderActionTypeCertificateRevoked), - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25+00:00"); return t}()), - // }, - // { - // ActionType: to.Ptr(armappservice.CertificateOrderActionTypeCertificateIssued), - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25+00:00"); return t}()), - // }} -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/RetrieveCertificateEmailHistory.json -func ExampleCertificateOrdersClient_RetrieveCertificateEmailHistory() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificateOrdersClient().RetrieveCertificateEmailHistory(ctx, "testrg123", "SampleCertOrder", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CertificateEmailArray = []*armappservice.CertificateEmail{ - // { - // EmailID: to.Ptr("customer@email.com"), - // TimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25+00:00"); return t}()), - // }, - // { - // EmailID: to.Ptr("customer@email.com"), - // TimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25+00:00"); return t}()), - // }} -} diff --git a/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client_example_test.go deleted file mode 100644 index 3f7ff69e6ce3..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client_example_test.go +++ /dev/null @@ -1,150 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/Diagnostics_ListAppServiceCertificateOrderDetectorResponse.json -func ExampleCertificateOrdersDiagnosticsClient_NewListAppServiceCertificateOrderDetectorResponsePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewCertificateOrdersDiagnosticsClient().NewListAppServiceCertificateOrderDetectorResponsePager("Sample-WestUSResourceGroup", "SampleCertificateOrderName", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DetectorResponseCollection = armappservice.DetectorResponseCollection{ - // Value: []*armappservice.DetectorResponse{ - // { - // Name: to.Ptr("CertsImport"), - // Type: to.Ptr("Microsoft.Web/certificateOrders/detectors"), - // ID: to.Ptr("/subscriptions/5700fc96-77b4-4f8d-afce-c353d8c443bd/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName/detectors/CertsImport"), - // Properties: &armappservice.DetectorResponseProperties{ - // Dataset: []*armappservice.DiagnosticData{ - // }, - // Metadata: &armappservice.DetectorInfo{ - // Name: to.Ptr("Certificates Import/Upload"), - // Author: to.Ptr(""), - // ID: to.Ptr("CertsImport"), - // }, - // Status: &armappservice.Status{ - // StatusID: to.Ptr(armappservice.InsightStatusNone), - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/Diagnostics_GetAppServiceCertificateOrderDetectorResponse.json -func ExampleCertificateOrdersDiagnosticsClient_GetAppServiceCertificateOrderDetectorResponse() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificateOrdersDiagnosticsClient().GetAppServiceCertificateOrderDetectorResponse(ctx, "Sample-WestUSResourceGroup", "SampleCertificateOrderName", "AutoRenewStatus", &armappservice.CertificateOrdersDiagnosticsClientGetAppServiceCertificateOrderDetectorResponseOptions{StartTime: nil, - EndTime: nil, - TimeGrain: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DetectorResponse = armappservice.DetectorResponse{ - // Name: to.Ptr("AutoRenewStatus"), - // ID: to.Ptr("/subscriptions/5700fc96-77b4-4f8d-afce-c353d8c443bd/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName/detectors/AutoRenewStatus"), - // Properties: &armappservice.DetectorResponseProperties{ - // Dataset: []*armappservice.DiagnosticData{ - // { - // RenderingProperties: &armappservice.Rendering{ - // Type: to.Ptr(armappservice.RenderingTypeInsights), - // }, - // Table: &armappservice.DataTableResponseObject{ - // Columns: []*armappservice.DataTableResponseColumn{ - // { - // ColumnName: to.Ptr("Status"), - // DataType: to.Ptr("String"), - // }, - // { - // ColumnName: to.Ptr("Message"), - // DataType: to.Ptr("String"), - // }, - // { - // ColumnName: to.Ptr("Data.Name"), - // DataType: to.Ptr("String"), - // }, - // { - // ColumnName: to.Ptr("Data.Value"), - // DataType: to.Ptr("String"), - // }, - // { - // ColumnName: to.Ptr("Expanded"), - // DataType: to.Ptr("String"), - // }, - // { - // ColumnName: to.Ptr("Solutions"), - // DataType: to.Ptr("String"), - // }}, - // Rows: [][]*string{ - // []*string{ - // to.Ptr("Info"), - // to.Ptr("App Service Certificate name SampleCertificateOrderName"), - // to.Ptr("Certificate for"), - // to.Ptr("*.mysampledomain.com"), - // to.Ptr("False"), - // to.Ptr("null")}, - // []*string{ - // to.Ptr("Info"), - // to.Ptr("App Service Certificate name SampleCertificateOrderName"), - // to.Ptr("Certificate Status"), - // to.Ptr("Issued"), - // to.Ptr("False"), - // to.Ptr("null")}}, - // TableName: to.Ptr(""), - // }, - // }}, - // Metadata: &armappservice.DetectorInfo{ - // Name: to.Ptr("AutoRenewStatus"), - // Type: to.Ptr(armappservice.DetectorTypeDetector), - // Description: to.Ptr("Check auto renew status"), - // ID: to.Ptr("AutoRenewStatus"), - // Score: to.Ptr[float32](0), - // SupportTopicList: []*armappservice.SupportTopic{ - // }, - // }, - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client_example_test.go deleted file mode 100644 index e34c8605e75e..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client_example_test.go +++ /dev/null @@ -1,216 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-09-01/examples/ListOperations.json -func ExampleCertificateRegistrationProviderClient_NewListOperationsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewCertificateRegistrationProviderClient().NewListOperationsPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CsmOperationCollection = armappservice.CsmOperationCollection{ - // Value: []*armappservice.CsmOperationDescription{ - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/certificates/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Add a new certificate or update an existing one"), - // Operation: to.Ptr("Add or Update Certificate"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("Certificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Add a new certificateOrder or update an existing one"), - // Operation: to.Ptr("Add or Update AppServiceCertificate"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/certificates/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete an existing certificate"), - // Operation: to.Ptr("Delete Certificate"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("Certificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete an existing AppServiceCertificate"), - // Operation: to.Ptr("Delete AppServiceCertificate"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the list of CertificateOrders"), - // Operation: to.Ptr("Get CertificateOrders"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/certificates/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the list of certificates"), - // Operation: to.Ptr("Get Certificates"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("Certificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/reissue/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Reissue an existing certificateorder"), - // Operation: to.Ptr("Reissue certificateorder"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/renew/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Renew an existing certificateorder"), - // Operation: to.Ptr("Renew certificateorder"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/retrieveCertificateActions/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Retrieve the list of certificate actions"), - // Operation: to.Ptr("Certificateorder actions"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/retrieveEmailHistory/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Retrieve certificate email history"), - // Operation: to.Ptr("Certificateorder email history"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/resendEmail/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Resend certificate email"), - // Operation: to.Ptr("Resend Certificateorder email"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/verifyDomainOwnership/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Verify domain ownership"), - // Operation: to.Ptr("Verify domain ownership"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/resendRequestEmails/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Resend request emails to another email address"), - // Operation: to.Ptr("Resend request emails to another email address"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/resendRequestEmails/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Retrieve site seal for an issued App Service Certificate"), - // Operation: to.Ptr("Retrieve site seal for an issued App Service Certificate"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/provisionGlobalAppServicePrincipalInUserTenant/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Provision service principal for service app principal"), - // Operation: to.Ptr("Provision service principal"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/validateCertificateRegistrationInformation/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Validate certificate purchase object without submitting it"), - // Operation: to.Ptr("Certificate Purchase Info Validation"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/register/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Register the Microsoft Certificates resource provider for the subscription"), - // Operation: to.Ptr("Register Microsoft Certificates resource provider"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("Microsoft Certificates resource provider"), - // }, - // Origin: to.Ptr("user,system"), - // }}, - // } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/certificates_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/certificates_client_example_test.go deleted file mode 100644 index 78b83a502136..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/certificates_client_example_test.go +++ /dev/null @@ -1,275 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListCertificates.json -func ExampleCertificatesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewCertificatesClient().NewListPager(&armappservice.CertificatesClientListOptions{Filter: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.AppCertificateCollection = armappservice.AppCertificateCollection{ - // Value: []*armappservice.AppCertificate{ - // { - // Name: to.Ptr("testc6282"), - // Type: to.Ptr("Microsoft.Web/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/certificates/testc6282"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.AppCertificateProperties{ - // ExpirationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2039-12-31T23:59:59+00:00"); return t}()), - // FriendlyName: to.Ptr(""), - // HostNames: []*string{ - // to.Ptr("ServerCert")}, - // IssueDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-11-12T23:40:25+00:00"); return t}()), - // Issuer: to.Ptr("CACert"), - // SubjectName: to.Ptr("ServerCert"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B03E175886EBFE"), - // }, - // }, - // { - // Name: to.Ptr("testc4912"), - // Type: to.Ptr("Microsoft.Web/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/certificates/testc4912"), - // Location: to.Ptr("West US"), - // Properties: &armappservice.AppCertificateProperties{ - // ExpirationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2040-12-31T23:59:59+00:00"); return t}()), - // FriendlyName: to.Ptr(""), - // HostNames: []*string{ - // to.Ptr("ServerCert2")}, - // IssueDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-12-12T23:40:25+00:00"); return t}()), - // Issuer: to.Ptr("CACert"), - // SubjectName: to.Ptr("ServerCert2"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B0490D5886EBFE"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListCertificatesByResourceGroup.json -func ExampleCertificatesClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewCertificatesClient().NewListByResourceGroupPager("testrg123", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.AppCertificateCollection = armappservice.AppCertificateCollection{ - // Value: []*armappservice.AppCertificate{ - // { - // Name: to.Ptr("testc6282"), - // Type: to.Ptr("Microsoft.Web/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/certificates/testc6282"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.AppCertificateProperties{ - // ExpirationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2039-12-31T23:59:59+00:00"); return t}()), - // FriendlyName: to.Ptr(""), - // HostNames: []*string{ - // to.Ptr("ServerCert")}, - // IssueDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-11-12T23:40:25+00:00"); return t}()), - // Issuer: to.Ptr("CACert"), - // SubjectName: to.Ptr("ServerCert"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B03E175886EBFE"), - // }, - // }, - // { - // Name: to.Ptr("testc4912"), - // Type: to.Ptr("Microsoft.Web/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/certificates/testc4912"), - // Location: to.Ptr("West US"), - // Properties: &armappservice.AppCertificateProperties{ - // ExpirationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2040-12-31T23:59:59+00:00"); return t}()), - // FriendlyName: to.Ptr(""), - // HostNames: []*string{ - // to.Ptr("ServerCert2")}, - // IssueDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-12-12T23:40:25+00:00"); return t}()), - // Issuer: to.Ptr("CACert"), - // SubjectName: to.Ptr("ServerCert2"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B0490D5886EBFE"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetCertificate.json -func ExampleCertificatesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificatesClient().Get(ctx, "testrg123", "testc6282", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AppCertificate = armappservice.AppCertificate{ - // Name: to.Ptr("testc6282"), - // Type: to.Ptr("Microsoft.Web/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/certificates/testc6282"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.AppCertificateProperties{ - // ExpirationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2039-12-31T23:59:59+00:00"); return t}()), - // FriendlyName: to.Ptr(""), - // HostNames: []*string{ - // to.Ptr("ServerCert")}, - // IssueDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-11-12T23:40:25+00:00"); return t}()), - // Issuer: to.Ptr("CACert"), - // SubjectName: to.Ptr("ServerCert"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B03E175886EBFE"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/CreateOrUpdateCertificate.json -func ExampleCertificatesClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificatesClient().CreateOrUpdate(ctx, "testrg123", "testc6282", armappservice.AppCertificate{ - Location: to.Ptr("East US"), - Properties: &armappservice.AppCertificateProperties{ - HostNames: []*string{ - to.Ptr("ServerCert")}, - Password: to.Ptr(""), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AppCertificate = armappservice.AppCertificate{ - // Name: to.Ptr("testc6282"), - // Type: to.Ptr("Microsoft.Web/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/certificates/testc6282"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.AppCertificateProperties{ - // ExpirationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2039-12-31T23:59:59+00:00"); return t}()), - // FriendlyName: to.Ptr(""), - // HostNames: []*string{ - // to.Ptr("ServerCert")}, - // IssueDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-11-12T23:40:25+00:00"); return t}()), - // Issuer: to.Ptr("CACert"), - // SubjectName: to.Ptr("ServerCert"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B03E175886EBFE"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/DeleteCertificate.json -func ExampleCertificatesClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewCertificatesClient().Delete(ctx, "testrg123", "testc6282", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/PatchCertificate.json -func ExampleCertificatesClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificatesClient().Update(ctx, "testrg123", "testc6282", armappservice.AppCertificatePatchResource{ - Properties: &armappservice.AppCertificatePatchResourceProperties{ - Password: to.Ptr(""), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AppCertificate = armappservice.AppCertificate{ - // Name: to.Ptr("testc6282"), - // Type: to.Ptr("Microsoft.Web/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/certificates/testc6282"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.AppCertificateProperties{ - // ExpirationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2039-12-31T23:59:59+00:00"); return t}()), - // FriendlyName: to.Ptr(""), - // HostNames: []*string{ - // to.Ptr("ServerCert")}, - // IssueDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-11-12T23:40:25+00:00"); return t}()), - // Issuer: to.Ptr("CACert"), - // SubjectName: to.Ptr("ServerCert"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B03E175886EBFE"), - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/constants.go b/sdk/resourcemanager/appservice/armappservice/constants.go index 8753a6906bf8..a3db217da9a9 100644 --- a/sdk/resourcemanager/appservice/armappservice/constants.go +++ b/sdk/resourcemanager/appservice/armappservice/constants.go @@ -11,7 +11,7 @@ package armappservice const ( moduleName = "armappservice" - moduleVersion = "v2.1.1" + moduleVersion = "v2.1.2" ) // ActiveRevisionsMode - ActiveRevisionsMode controls how active revisions are handled for the Container app:Multiple: multiple @@ -2313,26 +2313,26 @@ func PossibleWorkflowSKUNameValues() []WorkflowSKUName { } } -// WorkflowState - Gets or sets the state of the workflow. +// WorkflowState - The workflow state. type WorkflowState string const ( - WorkflowStateNotSpecified WorkflowState = "NotSpecified" WorkflowStateCompleted WorkflowState = "Completed" - WorkflowStateEnabled WorkflowState = "Enabled" - WorkflowStateDisabled WorkflowState = "Disabled" WorkflowStateDeleted WorkflowState = "Deleted" + WorkflowStateDisabled WorkflowState = "Disabled" + WorkflowStateEnabled WorkflowState = "Enabled" + WorkflowStateNotSpecified WorkflowState = "NotSpecified" WorkflowStateSuspended WorkflowState = "Suspended" ) // PossibleWorkflowStateValues returns the possible values for the WorkflowState const type. func PossibleWorkflowStateValues() []WorkflowState { return []WorkflowState{ - WorkflowStateNotSpecified, WorkflowStateCompleted, - WorkflowStateEnabled, - WorkflowStateDisabled, WorkflowStateDeleted, + WorkflowStateDisabled, + WorkflowStateEnabled, + WorkflowStateNotSpecified, WorkflowStateSuspended, } } diff --git a/sdk/resourcemanager/appservice/armappservice/containerapps_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/containerapps_client_example_test.go deleted file mode 100644 index b79acfeb1eae..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/containerapps_client_example_test.go +++ /dev/null @@ -1,400 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListContainerAppsBySubscription.json -func ExampleContainerAppsClient_NewListBySubscriptionPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewContainerAppsClient().NewListBySubscriptionPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ContainerAppCollection = armappservice.ContainerAppCollection{ - // Value: []*armappservice.ContainerApp{ - // { - // Name: to.Ptr("testcontainerApp0"), - // Type: to.Ptr("Microsoft.Web/containerApps"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/containerApps/testcontainerApp0"), - // Kind: to.Ptr("containerApp"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.ContainerAppProperties{ - // Configuration: &armappservice.Configuration{ - // Ingress: &armappservice.Ingress{ - // External: to.Ptr(true), - // Fqdn: to.Ptr("testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io"), - // TargetPort: to.Ptr[int32](3000), - // Transport: to.Ptr(armappservice.IngressTransportMethodAuto), - // }, - // }, - // KubeEnvironmentID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/kubeEnvironments/demokube"), - // LatestRevisionFqdn: to.Ptr("testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io"), - // ProvisioningState: to.Ptr(armappservice.ContainerAppProvisioningStateSucceeded), - // Template: &armappservice.Template{ - // Containers: []*armappservice.Container{ - // { - // Name: to.Ptr("testcontainerApp0"), - // Image: to.Ptr("repo/testcontainerApp0:v4"), - // Resources: &armappservice.ContainerResources{ - // CPU: to.Ptr[float64](0.2), - // Memory: to.Ptr("100Mi"), - // }, - // }}, - // Dapr: &armappservice.Dapr{ - // AppPort: to.Ptr[int32](3000), - // Enabled: to.Ptr(true), - // }, - // Scale: &armappservice.Scale{ - // MaxReplicas: to.Ptr[int32](5), - // MinReplicas: to.Ptr[int32](1), - // Rules: []*armappservice.ScaleRule{ - // { - // Name: to.Ptr("httpscalingrule"), - // HTTP: &armappservice.HTTPScaleRule{ - // Metadata: map[string]*string{ - // "concurrentRequests": to.Ptr("50"), - // }, - // }, - // }}, - // }, - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListContainerAppsByResourceGroup.json -func ExampleContainerAppsClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewContainerAppsClient().NewListByResourceGroupPager("rg", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ContainerAppCollection = armappservice.ContainerAppCollection{ - // Value: []*armappservice.ContainerApp{ - // { - // Name: to.Ptr("testcontainerApp0"), - // Type: to.Ptr("Microsoft.Web/containerApps"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/containerApps/testcontainerApp0"), - // Kind: to.Ptr("containerApp"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.ContainerAppProperties{ - // Configuration: &armappservice.Configuration{ - // Ingress: &armappservice.Ingress{ - // External: to.Ptr(true), - // Fqdn: to.Ptr("testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io"), - // TargetPort: to.Ptr[int32](3000), - // Transport: to.Ptr(armappservice.IngressTransportMethodAuto), - // }, - // }, - // KubeEnvironmentID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/kubeEnvironments/demokube"), - // LatestRevisionFqdn: to.Ptr("testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io"), - // ProvisioningState: to.Ptr(armappservice.ContainerAppProvisioningStateSucceeded), - // Template: &armappservice.Template{ - // Containers: []*armappservice.Container{ - // { - // Name: to.Ptr("testcontainerApp0"), - // Image: to.Ptr("repo/testcontainerApp0:v4"), - // Resources: &armappservice.ContainerResources{ - // CPU: to.Ptr[float64](0.2), - // Memory: to.Ptr("100Mi"), - // }, - // }}, - // Dapr: &armappservice.Dapr{ - // AppPort: to.Ptr[int32](3000), - // Enabled: to.Ptr(true), - // }, - // Scale: &armappservice.Scale{ - // MaxReplicas: to.Ptr[int32](5), - // MinReplicas: to.Ptr[int32](1), - // Rules: []*armappservice.ScaleRule{ - // { - // Name: to.Ptr("httpscalingrule"), - // HTTP: &armappservice.HTTPScaleRule{ - // Metadata: map[string]*string{ - // "concurrentRequests": to.Ptr("50"), - // }, - // }, - // }}, - // }, - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetContainerApp.json -func ExampleContainerAppsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewContainerAppsClient().Get(ctx, "rg", "testcontainerApp0", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.ContainerApp = armappservice.ContainerApp{ - // Name: to.Ptr("testcontainerApp0"), - // Type: to.Ptr("Microsoft.Web/containerApps"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/containerApps/testcontainerApp0"), - // Kind: to.Ptr("containerApp"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.ContainerAppProperties{ - // Configuration: &armappservice.Configuration{ - // Ingress: &armappservice.Ingress{ - // External: to.Ptr(true), - // Fqdn: to.Ptr("testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io"), - // TargetPort: to.Ptr[int32](3000), - // Transport: to.Ptr(armappservice.IngressTransportMethodAuto), - // }, - // }, - // KubeEnvironmentID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/kubeEnvironments/demokube"), - // LatestRevisionFqdn: to.Ptr("testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io"), - // ProvisioningState: to.Ptr(armappservice.ContainerAppProvisioningStateSucceeded), - // Template: &armappservice.Template{ - // Containers: []*armappservice.Container{ - // { - // Name: to.Ptr("testcontainerApp0"), - // Image: to.Ptr("repo/testcontainerApp0:v4"), - // Resources: &armappservice.ContainerResources{ - // CPU: to.Ptr[float64](0.2), - // Memory: to.Ptr("100Mi"), - // }, - // }}, - // Dapr: &armappservice.Dapr{ - // AppPort: to.Ptr[int32](3000), - // Enabled: to.Ptr(true), - // }, - // Scale: &armappservice.Scale{ - // MaxReplicas: to.Ptr[int32](5), - // MinReplicas: to.Ptr[int32](1), - // Rules: []*armappservice.ScaleRule{ - // { - // Name: to.Ptr("httpscalingrule"), - // HTTP: &armappservice.HTTPScaleRule{ - // Metadata: map[string]*string{ - // "concurrentRequests": to.Ptr("50"), - // }, - // }, - // }}, - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/CreateOrUpdateContainerApp.json -func ExampleContainerAppsClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewContainerAppsClient().BeginCreateOrUpdate(ctx, "rg", "testcontainerApp0", armappservice.ContainerApp{ - Kind: to.Ptr("containerApp"), - Location: to.Ptr("East US"), - Properties: &armappservice.ContainerAppProperties{ - Configuration: &armappservice.Configuration{ - Ingress: &armappservice.Ingress{ - External: to.Ptr(true), - TargetPort: to.Ptr[int32](3000), - }, - }, - KubeEnvironmentID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/kubeEnvironments/demokube"), - Template: &armappservice.Template{ - Containers: []*armappservice.Container{ - { - Name: to.Ptr("testcontainerApp0"), - Image: to.Ptr("repo/testcontainerApp0:v1"), - }}, - Dapr: &armappservice.Dapr{ - AppPort: to.Ptr[int32](3000), - Enabled: to.Ptr(true), - }, - Scale: &armappservice.Scale{ - MaxReplicas: to.Ptr[int32](5), - MinReplicas: to.Ptr[int32](1), - Rules: []*armappservice.ScaleRule{ - { - Name: to.Ptr("httpscalingrule"), - Custom: &armappservice.CustomScaleRule{ - Type: to.Ptr("http"), - Metadata: map[string]*string{ - "concurrentRequests": to.Ptr("50"), - }, - }, - }}, - }, - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.ContainerApp = armappservice.ContainerApp{ - // Name: to.Ptr("testcontainerApp0"), - // Type: to.Ptr("Microsoft.Web/containerApps"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/containerApps/testcontainerApp0"), - // Kind: to.Ptr("containerApp"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.ContainerAppProperties{ - // Configuration: &armappservice.Configuration{ - // Ingress: &armappservice.Ingress{ - // External: to.Ptr(true), - // Fqdn: to.Ptr("testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io"), - // TargetPort: to.Ptr[int32](3000), - // Transport: to.Ptr(armappservice.IngressTransportMethodAuto), - // }, - // }, - // KubeEnvironmentID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/kubeEnvironments/demokube"), - // LatestRevisionFqdn: to.Ptr("testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io"), - // ProvisioningState: to.Ptr(armappservice.ContainerAppProvisioningStateSucceeded), - // Template: &armappservice.Template{ - // Containers: []*armappservice.Container{ - // { - // Name: to.Ptr("testcontainerApp0"), - // Image: to.Ptr("repo/testcontainerApp0:v4"), - // Resources: &armappservice.ContainerResources{ - // CPU: to.Ptr[float64](0.2), - // Memory: to.Ptr("100Mi"), - // }, - // }}, - // Dapr: &armappservice.Dapr{ - // AppPort: to.Ptr[int32](3000), - // Enabled: to.Ptr(true), - // }, - // Scale: &armappservice.Scale{ - // MaxReplicas: to.Ptr[int32](5), - // MinReplicas: to.Ptr[int32](1), - // Rules: []*armappservice.ScaleRule{ - // { - // Name: to.Ptr("httpscalingrule"), - // HTTP: &armappservice.HTTPScaleRule{ - // Metadata: map[string]*string{ - // "concurrentRequests": to.Ptr("50"), - // }, - // }, - // }}, - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/DeleteContainerApp.json -func ExampleContainerAppsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewContainerAppsClient().BeginDelete(ctx, "rg", "testWorkerApp0", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListContainerAppSecrets.json -func ExampleContainerAppsClient_ListSecrets() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewContainerAppsClient().ListSecrets(ctx, "testcontainerApp0", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SecretsCollection = armappservice.SecretsCollection{ - // Value: []*armappservice.ContainerAppSecret{ - // { - // Name: to.Ptr("secret1"), - // Value: to.Ptr("value1"), - // }, - // { - // Name: to.Ptr("secret2"), - // Value: to.Ptr("value2"), - // }}, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/containerappsrevisions_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/containerappsrevisions_client_example_test.go deleted file mode 100644 index efc7e67b4190..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/containerappsrevisions_client_example_test.go +++ /dev/null @@ -1,197 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListRevisions.json -func ExampleContainerAppsRevisionsClient_NewListRevisionsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewContainerAppsRevisionsClient().NewListRevisionsPager("rg", "testcontainerApp0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.RevisionCollection = armappservice.RevisionCollection{ - // Value: []*armappservice.Revision{ - // { - // Name: to.Ptr("testcontainerApp0-pjxhsye"), - // Type: to.Ptr("Microsoft.Web/containerApps/revisions"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/containerApps/testcontainerApp0/revisions/testcontainerApp0-pjxhsye"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.RevisionProperties{ - // Active: to.Ptr(true), - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-24T21:24:22+00:00"); return t}()), - // Fqdn: to.Ptr("testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerapps.k4apps.io"), - // Replicas: to.Ptr[int32](1), - // Template: &armappservice.Template{ - // Containers: []*armappservice.Container{ - // { - // Name: to.Ptr("testcontainerApp0"), - // Image: to.Ptr("repo/testcontainerApp0:v2"), - // Resources: &armappservice.ContainerResources{ - // CPU: to.Ptr[float64](0.2), - // Memory: to.Ptr("100Mi"), - // }, - // }}, - // Dapr: &armappservice.Dapr{ - // AppPort: to.Ptr[int32](3000), - // Enabled: to.Ptr(true), - // }, - // Scale: &armappservice.Scale{ - // MaxReplicas: to.Ptr[int32](5), - // MinReplicas: to.Ptr[int32](1), - // Rules: []*armappservice.ScaleRule{ - // { - // Name: to.Ptr("httpscalingrule"), - // HTTP: &armappservice.HTTPScaleRule{ - // Metadata: map[string]*string{ - // "concurrentRequests": to.Ptr("50"), - // }, - // }, - // }}, - // }, - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetRevision.json -func ExampleContainerAppsRevisionsClient_GetRevision() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewContainerAppsRevisionsClient().GetRevision(ctx, "rg", "testcontainerApp0", "testcontainerApp0-pjxhsye", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Revision = armappservice.Revision{ - // Name: to.Ptr("testcontainerApp0-pjxhsye"), - // Type: to.Ptr("Microsoft.Web/containerApps/revisions"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.WebcontainerApps/testcontainerApp0/revisions/testcontainerApp0-pjxhsye"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.RevisionProperties{ - // Active: to.Ptr(true), - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-24T21:24:22+00:00"); return t}()), - // Fqdn: to.Ptr("testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io"), - // Replicas: to.Ptr[int32](1), - // Template: &armappservice.Template{ - // Containers: []*armappservice.Container{ - // { - // Name: to.Ptr("testcontainerApp0"), - // Image: to.Ptr("repo/testcontainerApp0:v2"), - // Resources: &armappservice.ContainerResources{ - // CPU: to.Ptr[float64](0.2), - // Memory: to.Ptr("100Mi"), - // }, - // }}, - // Dapr: &armappservice.Dapr{ - // AppPort: to.Ptr[int32](3000), - // Enabled: to.Ptr(true), - // }, - // Scale: &armappservice.Scale{ - // MaxReplicas: to.Ptr[int32](5), - // MinReplicas: to.Ptr[int32](1), - // Rules: []*armappservice.ScaleRule{ - // { - // Name: to.Ptr("httpscalingrule"), - // HTTP: &armappservice.HTTPScaleRule{ - // Metadata: map[string]*string{ - // "concurrentRequests": to.Ptr("50"), - // }, - // }, - // }}, - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ActivateRevision.json -func ExampleContainerAppsRevisionsClient_ActivateRevision() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewContainerAppsRevisionsClient().ActivateRevision(ctx, "rg", "testcontainerApp0", "testcontainerApp0-pjxhsye", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/DeactivateRevision.json -func ExampleContainerAppsRevisionsClient_DeactivateRevision() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewContainerAppsRevisionsClient().DeactivateRevision(ctx, "rg", "testcontainerApp0", "testcontainerApp0-pjxhsye", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/RestartRevision.json -func ExampleContainerAppsRevisionsClient_RestartRevision() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewContainerAppsRevisionsClient().RestartRevision(ctx, "rg", "testStaticSite0", "testcontainerApp0-pjxhsye", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/deletedwebapps_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/deletedwebapps_client_example_test.go deleted file mode 100644 index 47a58f2aafec..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/deletedwebapps_client_example_test.go +++ /dev/null @@ -1,96 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListDeletedWebAppsByLocation.json -func ExampleDeletedWebAppsClient_NewListByLocationPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDeletedWebAppsClient().NewListByLocationPager("West US 2", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DeletedWebAppCollection = armappservice.DeletedWebAppCollection{ - // Value: []*armappservice.DeletedSite{ - // { - // Name: to.Ptr("wussite6"), - // Type: to.Ptr("Microsoft.Web/locations/deletedSites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg1/providers/Microsoft.Web/locations/West US 2/deletedwebapps/wussite6"), - // Properties: &armappservice.DeletedSiteProperties{ - // DeletedSiteID: to.Ptr[int32](9), - // DeletedSiteName: to.Ptr("wussite6"), - // DeletedTimestamp: to.Ptr("2019-05-09T22:29:05.1337007"), - // GeoRegionName: to.Ptr("West US 2"), - // Kind: to.Ptr("app"), - // ResourceGroup: to.Ptr("rg1"), - // Slot: to.Ptr("Production"), - // Subscription: to.Ptr("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetDeletedWebAppByLocation.json -func ExampleDeletedWebAppsClient_GetDeletedWebAppByLocation() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDeletedWebAppsClient().GetDeletedWebAppByLocation(ctx, "West US 2", "9", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DeletedSite = armappservice.DeletedSite{ - // Name: to.Ptr("wussite6"), - // Type: to.Ptr("Microsoft.Web/locations/deletedSites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg1/providers/Microsoft.Web/locations/West US 2/deletedwebapps/wussite6"), - // Properties: &armappservice.DeletedSiteProperties{ - // DeletedSiteID: to.Ptr[int32](9), - // DeletedSiteName: to.Ptr("wussite6"), - // DeletedTimestamp: to.Ptr("2019-05-09T22:29:05.1337007"), - // GeoRegionName: to.Ptr("West US 2"), - // Kind: to.Ptr("app"), - // ResourceGroup: to.Ptr("rg1"), - // Slot: to.Ptr("Production"), - // Subscription: to.Ptr("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"), - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/diagnostics_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/diagnostics_client_example_test.go deleted file mode 100644 index 2fde647b2773..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/diagnostics_client_example_test.go +++ /dev/null @@ -1,1474 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_ListHostingEnvironmentDetectorResponses.json -func ExampleDiagnosticsClient_NewListHostingEnvironmentDetectorResponsesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDiagnosticsClient().NewListHostingEnvironmentDetectorResponsesPager("Sample-WestUSResourceGroup", "SampleAppServiceEnvironment", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DetectorResponseCollection = armappservice.DetectorResponseCollection{ - // Value: []*armappservice.DetectorResponse{ - // { - // Name: to.Ptr("runtimeavailability"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/hostingEnvironments/SampleAppServiceEnvironment/detectors/runtimeavailability"), - // Properties: &armappservice.DetectorResponseProperties{ - // Dataset: []*armappservice.DiagnosticData{ - // }, - // Metadata: &armappservice.DetectorInfo{ - // Description: to.Ptr("This detector analyzes all the requests to all applications running on this app service environment."), - // Category: to.Ptr("Availability and Performance"), - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_GetHostingEnvironmentDetectorResponse.json -func ExampleDiagnosticsClient_GetHostingEnvironmentDetectorResponse() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().GetHostingEnvironmentDetectorResponse(ctx, "Sample-WestUSResourceGroup", "SampleAppServiceEnvironment", "runtimeavailability", &armappservice.DiagnosticsClientGetHostingEnvironmentDetectorResponseOptions{StartTime: nil, - EndTime: nil, - TimeGrain: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DetectorResponse = armappservice.DetectorResponse{ - // Name: to.Ptr("runtimeavailability"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/hostingEnvironments/SampleAppServiceEnvironment/detectors/runtimeavailability"), - // Properties: &armappservice.DetectorResponseProperties{ - // Dataset: []*armappservice.DiagnosticData{ - // { - // RenderingProperties: &armappservice.Rendering{ - // Description: to.Ptr("This detector breaks down the number of requests that your apps on this app service environment received for each status code."), - // Title: to.Ptr("Requests by Status Code"), - // }, - // Table: &armappservice.DataTableResponseObject{ - // Columns: []*armappservice.DataTableResponseColumn{ - // { - // ColumnName: to.Ptr("PreciseTimeStamp"), - // ColumnType: to.Ptr("datetime"), - // DataType: to.Ptr("DateTime"), - // }, - // { - // ColumnName: to.Ptr("count_Http2xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }, - // { - // ColumnName: to.Ptr("count_Http3xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }, - // { - // ColumnName: to.Ptr("count_Http4xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }, - // { - // ColumnName: to.Ptr("count_Http5xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }}, - // Rows: [][]*string{ - // []*string{ - // to.Ptr("2018-03-27T00:25:00Z"), - // to.Ptr("772705"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:30:00Z"), - // to.Ptr("787069"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:35:00Z"), - // to.Ptr("781627"), - // to.Ptr("0"), - // to.Ptr("1"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:40:00Z"), - // to.Ptr("785017"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:45:00Z"), - // to.Ptr("783518"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:50:00Z"), - // to.Ptr("785783"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:55:00Z"), - // to.Ptr("772874"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T01:00:00Z"), - // to.Ptr("787162"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T01:05:00Z"), - // to.Ptr("782036"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T01:10:00Z"), - // to.Ptr("784642"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}}, - // TableName: to.Ptr("Table_0"), - // }, - // }}, - // Metadata: &armappservice.DetectorInfo{ - // Description: to.Ptr("This detector analyzes all the requests to all applications running on this app service environment."), - // Category: to.Ptr("Availability and Performance"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_ListSiteDetectorResponses.json -func ExampleDiagnosticsClient_NewListSiteDetectorResponsesPager_getAppDetectorResponses() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDiagnosticsClient().NewListSiteDetectorResponsesPager("Sample-WestUSResourceGroup", "SampleApp", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DetectorResponseCollection = armappservice.DetectorResponseCollection{ - // Value: []*armappservice.DetectorResponse{ - // { - // Name: to.Ptr("runtimeavailability"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/detectors/runtimeavailability"), - // Properties: &armappservice.DetectorResponseProperties{ - // Dataset: []*armappservice.DiagnosticData{ - // }, - // Metadata: &armappservice.DetectorInfo{ - // Description: to.Ptr("This detector analyzes the requests to your application."), - // Category: to.Ptr("Availability and Performance"), - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_ListSiteDetectorResponsesSlot.json -func ExampleDiagnosticsClient_NewListSiteDetectorResponsesPager_getAppSlotDetectorResponses() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDiagnosticsClient().NewListSiteDetectorResponsesPager("Sample-WestUSResourceGroup", "SampleApp", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DetectorResponseCollection = armappservice.DetectorResponseCollection{ - // Value: []*armappservice.DetectorResponse{ - // { - // Name: to.Ptr("runtimeavailability"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/detectors/runtimeavailability"), - // Properties: &armappservice.DetectorResponseProperties{ - // Dataset: []*armappservice.DiagnosticData{ - // }, - // Metadata: &armappservice.DetectorInfo{ - // Description: to.Ptr("This detector analyzes the requests to your application."), - // Category: to.Ptr("Availability and Performance"), - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_GetSiteDetectorResponse.json -func ExampleDiagnosticsClient_GetSiteDetectorResponse_getAppDetectorResponse() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().GetSiteDetectorResponse(ctx, "Sample-WestUSResourceGroup", "SampleApp", "runtimeavailability", &armappservice.DiagnosticsClientGetSiteDetectorResponseOptions{StartTime: nil, - EndTime: nil, - TimeGrain: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DetectorResponse = armappservice.DetectorResponse{ - // Name: to.Ptr("runtimeavailability"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/detectors/runtimeavailability"), - // Properties: &armappservice.DetectorResponseProperties{ - // Dataset: []*armappservice.DiagnosticData{ - // { - // RenderingProperties: &armappservice.Rendering{ - // Description: to.Ptr("This detector breaks down the number of requests that your app received for each status code."), - // Title: to.Ptr("Requests by Status Code"), - // }, - // Table: &armappservice.DataTableResponseObject{ - // Columns: []*armappservice.DataTableResponseColumn{ - // { - // ColumnName: to.Ptr("PreciseTimeStamp"), - // ColumnType: to.Ptr("datetime"), - // DataType: to.Ptr("DateTime"), - // }, - // { - // ColumnName: to.Ptr("count_Http2xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }, - // { - // ColumnName: to.Ptr("count_Http3xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }, - // { - // ColumnName: to.Ptr("count_Http4xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }, - // { - // ColumnName: to.Ptr("count_Http5xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }}, - // Rows: [][]*string{ - // []*string{ - // to.Ptr("2018-03-27T00:25:00Z"), - // to.Ptr("772705"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:30:00Z"), - // to.Ptr("787069"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:35:00Z"), - // to.Ptr("781627"), - // to.Ptr("0"), - // to.Ptr("1"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:40:00Z"), - // to.Ptr("785017"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:45:00Z"), - // to.Ptr("783518"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:50:00Z"), - // to.Ptr("785783"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:55:00Z"), - // to.Ptr("772874"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T01:00:00Z"), - // to.Ptr("787162"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T01:05:00Z"), - // to.Ptr("782036"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T01:10:00Z"), - // to.Ptr("784642"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}}, - // TableName: to.Ptr("Table_0"), - // }, - // }}, - // Metadata: &armappservice.DetectorInfo{ - // Description: to.Ptr("This detector analyzes the requests to your application."), - // Category: to.Ptr("Availability and Performance"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json -func ExampleDiagnosticsClient_GetSiteDetectorResponse_getAppSlotDetectorResponse() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().GetSiteDetectorResponse(ctx, "Sample-WestUSResourceGroup", "SampleApp", "runtimeavailability", &armappservice.DiagnosticsClientGetSiteDetectorResponseOptions{StartTime: nil, - EndTime: nil, - TimeGrain: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DetectorResponse = armappservice.DetectorResponse{ - // Name: to.Ptr("runtimeavailability"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/slots/staging/detectors/runtimeavailability"), - // Properties: &armappservice.DetectorResponseProperties{ - // Dataset: []*armappservice.DiagnosticData{ - // { - // RenderingProperties: &armappservice.Rendering{ - // Description: to.Ptr("This detector breaks down the number of requests that your app received for each status code."), - // Title: to.Ptr("Requests by Status Code"), - // }, - // Table: &armappservice.DataTableResponseObject{ - // Columns: []*armappservice.DataTableResponseColumn{ - // { - // ColumnName: to.Ptr("PreciseTimeStamp"), - // ColumnType: to.Ptr("datetime"), - // DataType: to.Ptr("DateTime"), - // }, - // { - // ColumnName: to.Ptr("count_Http2xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }, - // { - // ColumnName: to.Ptr("count_Http3xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }, - // { - // ColumnName: to.Ptr("count_Http4xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }, - // { - // ColumnName: to.Ptr("count_Http5xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }}, - // Rows: [][]*string{ - // []*string{ - // to.Ptr("2018-03-27T00:25:00Z"), - // to.Ptr("772705"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:30:00Z"), - // to.Ptr("787069"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:35:00Z"), - // to.Ptr("781627"), - // to.Ptr("0"), - // to.Ptr("1"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:40:00Z"), - // to.Ptr("785017"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:45:00Z"), - // to.Ptr("783518"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:50:00Z"), - // to.Ptr("785783"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:55:00Z"), - // to.Ptr("772874"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T01:00:00Z"), - // to.Ptr("787162"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T01:05:00Z"), - // to.Ptr("782036"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T01:10:00Z"), - // to.Ptr("784642"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}}, - // TableName: to.Ptr("Table_0"), - // }, - // }}, - // Metadata: &armappservice.DetectorInfo{ - // Description: to.Ptr("This detector analyzes the requests to your application."), - // Category: to.Ptr("Availability and Performance"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_ListSiteDiagnosticCategories.json -func ExampleDiagnosticsClient_NewListSiteDiagnosticCategoriesPager_listAppDiagnosticCategories() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDiagnosticsClient().NewListSiteDiagnosticCategoriesPager("Sample-WestUSResourceGroup", "SampleApp", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DiagnosticCategoryCollection = armappservice.DiagnosticCategoryCollection{ - // Value: []*armappservice.DiagnosticCategory{ - // { - // Name: to.Ptr("availability"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability"), - // Properties: &armappservice.DiagnosticCategoryProperties{ - // Description: to.Ptr("Availability and Perfomance Diagnostics"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_ListSiteDiagnosticCategoriesSlot.json -func ExampleDiagnosticsClient_NewListSiteDiagnosticCategoriesPager_listAppSlotDiagnosticCategories() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDiagnosticsClient().NewListSiteDiagnosticCategoriesPager("Sample-WestUSResourceGroup", "SampleApp", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DiagnosticCategoryCollection = armappservice.DiagnosticCategoryCollection{ - // Value: []*armappservice.DiagnosticCategory{ - // { - // Name: to.Ptr("availability"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability"), - // Properties: &armappservice.DiagnosticCategoryProperties{ - // Description: to.Ptr("Availability and Perfomance Diagnostics"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_GetSiteDiagnosticCategory.json -func ExampleDiagnosticsClient_GetSiteDiagnosticCategory_getAppDiagnosticCategory() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().GetSiteDiagnosticCategory(ctx, "Sample-WestUSResourceGroup", "SampleApp", "availability", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DiagnosticCategory = armappservice.DiagnosticCategory{ - // Name: to.Ptr("availability"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability"), - // Properties: &armappservice.DiagnosticCategoryProperties{ - // Description: to.Ptr("Availability and Perfomance Diagnostics"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json -func ExampleDiagnosticsClient_GetSiteDiagnosticCategory_getAppSlotDiagnosticCategory() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().GetSiteDiagnosticCategory(ctx, "Sample-WestUSResourceGroup", "SampleApp", "availability", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DiagnosticCategory = armappservice.DiagnosticCategory{ - // Name: to.Ptr("availability"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability"), - // Properties: &armappservice.DiagnosticCategoryProperties{ - // Description: to.Ptr("Availability and Perfomance Diagnostics"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_ListSiteAnalyses.json -func ExampleDiagnosticsClient_NewListSiteAnalysesPager_listAppAnalyses() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDiagnosticsClient().NewListSiteAnalysesPager("Sample-WestUSResourceGroup", "SampleApp", "availability", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DiagnosticAnalysisCollection = armappservice.DiagnosticAnalysisCollection{ - // Value: []*armappservice.AnalysisDefinition{ - // { - // Name: to.Ptr("appanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability/analyses/appanalysis"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Determine causes of availability loss as well as solutions for these problems"), - // }, - // }, - // { - // Name: to.Ptr("apprestartanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability/analyses/apprestartanalyses"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Find the reasons that your app restarted"), - // }, - // }, - // { - // Name: to.Ptr("memoryanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability/analyses/memoryanalysis"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Detect issues with memory as well as suggest ways to troubleshoot memory problems"), - // }, - // }, - // { - // Name: to.Ptr("tcpconnectionsanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability/analyses/tcpconnectionsanalysis"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Analyze port usage and find out if a high number of connections is causing problems for your web app"), - // }, - // }, - // { - // Name: to.Ptr("perfanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability/analyses/perfanalysis"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Determine causes of performance degredation as well as solutions for these problems"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_ListSiteAnalysesSlot.json -func ExampleDiagnosticsClient_NewListSiteAnalysesPager_listAppSlotAnalyses() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDiagnosticsClient().NewListSiteAnalysesPager("Sample-WestUSResourceGroup", "SampleApp", "availability", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DiagnosticAnalysisCollection = armappservice.DiagnosticAnalysisCollection{ - // Value: []*armappservice.AnalysisDefinition{ - // { - // Name: to.Ptr("appanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/analyses/appanalysis"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Determine causes of availability loss as well as solutions for these problems"), - // }, - // }, - // { - // Name: to.Ptr("apprestartanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/analyses/apprestartanalyses"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Find the reasons that your app restarted"), - // }, - // }, - // { - // Name: to.Ptr("memoryanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/analyses/memoryanalysis"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Detect issues with memory as well as suggest ways to troubleshoot memory problems"), - // }, - // }, - // { - // Name: to.Ptr("tcpconnectionsanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/analyses/tcpconnectionsanalysis"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Analyze port usage and find out if a high number of connections is causing problems for your web app"), - // }, - // }, - // { - // Name: to.Ptr("perfanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/analyses/perfanalysis"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Determine causes of performance degredation as well as solutions for these problems"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_GetSiteAnalysis.json -func ExampleDiagnosticsClient_GetSiteAnalysis_getAppAnalysis() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().GetSiteAnalysis(ctx, "Sample-WestUSResourceGroup", "SampleApp", "availability", "appanalysis", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AnalysisDefinition = armappservice.AnalysisDefinition{ - // Name: to.Ptr("appanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/analyses/appanalysis"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Determine causes of availability loss as well as solutions for these problems"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_GetSiteAnalysisSlot.json -func ExampleDiagnosticsClient_GetSiteAnalysis_getAppSlotAnalysis() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().GetSiteAnalysis(ctx, "Sample-WestUSResourceGroup", "SampleApp", "availability", "appanalysis", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AnalysisDefinition = armappservice.AnalysisDefinition{ - // Name: to.Ptr("appanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/analyses/appanalysis"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Determine causes of availability loss as well as solutions for these problems"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_ExecuteSiteAnalysis.json -func ExampleDiagnosticsClient_ExecuteSiteAnalysis_executeSiteAnalysis() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().ExecuteSiteAnalysis(ctx, "Sample-WestUSResourceGroup", "SampleApp", "availability", "apprestartanalyses", &armappservice.DiagnosticsClientExecuteSiteAnalysisOptions{StartTime: nil, - EndTime: nil, - TimeGrain: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DiagnosticAnalysis = armappservice.DiagnosticAnalysis{ - // Name: to.Ptr("apprestartanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability/analyses/apprestartanalyses"), - // Properties: &armappservice.DiagnosticAnalysisProperties{ - // AbnormalTimePeriods: []*armappservice.AbnormalTimePeriod{ - // { - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00Z"); return t}()), - // Events: []*armappservice.DetectorAbnormalTimePeriod{ - // { - // Type: to.Ptr(armappservice.IssueTypeServiceIncident), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:21:48Z"); return t}()), - // Message: to.Ptr("Your application process was restarted as application environment variables changed. This can most likely occur due to update in app settings or swap operation. This event occurred multiple times during the day."), - // MetaData: [][]*armappservice.NameValuePair{ - // []*armappservice.NameValuePair{ - // { - // Name: to.Ptr("feature"), - // Value: to.Ptr("auditlogs"), - // }, - // { - // Name: to.Ptr("displayedName"), - // Value: to.Ptr("Check Audit Logs"), - // }}}, - // Priority: to.Ptr[float64](0), - // Solutions: []*armappservice.Solution{ - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:21:50Z"); return t}()), - // }}, - // Solutions: []*armappservice.Solution{ - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00Z"); return t}()), - // }}, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00Z"); return t}()), - // NonCorrelatedDetectors: []*armappservice.DetectorDefinition{ - // }, - // Payload: []*armappservice.AnalysisData{ - // { - // Data: [][]*armappservice.NameValuePair{ - // }, - // Metrics: []*armappservice.DiagnosticMetricSet{ - // { - // Name: to.Ptr("All Application Stop Events"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00Z"); return t}()), - // TimeGrain: to.Ptr("00:05:00"), - // Values: []*armappservice.DiagnosticMetricSample{ - // { - // RoleInstance: to.Ptr("RD00155D3C15BE"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T00:00:00Z"); return t}()), - // Total: to.Ptr[float64](2), - // }, - // { - // IsAggregated: to.Ptr(true), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T00:00:00Z"); return t}()), - // Total: to.Ptr[float64](2), - // }, - // { - // RoleInstance: to.Ptr("RD00155D3C15C1"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T00:10:00Z"); return t}()), - // Total: to.Ptr[float64](2), - // }, - // { - // RoleInstance: to.Ptr("RD00155D3BE0FB"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T00:10:00Z"); return t}()), - // Total: to.Ptr[float64](2), - // }, - // { - // IsAggregated: to.Ptr(true), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T00:10:00Z"); return t}()), - // Total: to.Ptr[float64](4), - // }}, - // }, - // { - // Name: to.Ptr("User Events"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00Z"); return t}()), - // TimeGrain: to.Ptr("00:05:00"), - // Unit: to.Ptr(""), - // Values: []*armappservice.DiagnosticMetricSample{ - // { - // IsAggregated: to.Ptr(true), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:20:00Z"); return t}()), - // Total: to.Ptr[float64](3), - // }, - // { - // RoleInstance: to.Ptr("RD00155D3C09FC"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:20:00Z"); return t}()), - // Total: to.Ptr[float64](1), - // }, - // { - // RoleInstance: to.Ptr("RD00155D3C2ADC"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:20:00Z"); return t}()), - // Total: to.Ptr[float64](1), - // }, - // { - // RoleInstance: to.Ptr("RD00155D3C214E"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:20:00Z"); return t}()), - // Total: to.Ptr[float64](1), - // }}, - // }}, - // Source: to.Ptr("workerprocessrecycle"), - // }}, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00Z"); return t}()), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_ExecuteSiteAnalysisSlot.json -func ExampleDiagnosticsClient_ExecuteSiteAnalysis_executeSiteSlotAnalysis() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().ExecuteSiteAnalysis(ctx, "Sample-WestUSResourceGroup", "SampleApp", "availability", "apprestartanalyses", &armappservice.DiagnosticsClientExecuteSiteAnalysisOptions{StartTime: nil, - EndTime: nil, - TimeGrain: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DiagnosticAnalysis = armappservice.DiagnosticAnalysis{ - // Name: to.Ptr("apprestartanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/analyses/apprestartanalyses"), - // Properties: &armappservice.DiagnosticAnalysisProperties{ - // AbnormalTimePeriods: []*armappservice.AbnormalTimePeriod{ - // { - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00Z"); return t}()), - // Events: []*armappservice.DetectorAbnormalTimePeriod{ - // { - // Type: to.Ptr(armappservice.IssueTypeServiceIncident), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:21:48Z"); return t}()), - // Message: to.Ptr("Your application process was restarted as application environment variables changed. This can most likely occur due to update in app settings or swap operation. This event occurred multiple times during the day."), - // MetaData: [][]*armappservice.NameValuePair{ - // []*armappservice.NameValuePair{ - // { - // Name: to.Ptr("feature"), - // Value: to.Ptr("auditlogs"), - // }, - // { - // Name: to.Ptr("displayedName"), - // Value: to.Ptr("Check Audit Logs"), - // }}}, - // Priority: to.Ptr[float64](0), - // Solutions: []*armappservice.Solution{ - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:21:50Z"); return t}()), - // }}, - // Solutions: []*armappservice.Solution{ - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00Z"); return t}()), - // }}, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00Z"); return t}()), - // NonCorrelatedDetectors: []*armappservice.DetectorDefinition{ - // }, - // Payload: []*armappservice.AnalysisData{ - // { - // Data: [][]*armappservice.NameValuePair{ - // }, - // Metrics: []*armappservice.DiagnosticMetricSet{ - // { - // Name: to.Ptr("All Application Stop Events"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00Z"); return t}()), - // TimeGrain: to.Ptr("00:05:00"), - // Values: []*armappservice.DiagnosticMetricSample{ - // { - // RoleInstance: to.Ptr("RD00155D3C15BE"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T00:00:00Z"); return t}()), - // Total: to.Ptr[float64](2), - // }, - // { - // IsAggregated: to.Ptr(true), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T00:00:00Z"); return t}()), - // Total: to.Ptr[float64](2), - // }, - // { - // RoleInstance: to.Ptr("RD00155D3C15C1"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T00:10:00Z"); return t}()), - // Total: to.Ptr[float64](2), - // }, - // { - // RoleInstance: to.Ptr("RD00155D3BE0FB"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T00:10:00Z"); return t}()), - // Total: to.Ptr[float64](2), - // }, - // { - // IsAggregated: to.Ptr(true), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T00:10:00Z"); return t}()), - // Total: to.Ptr[float64](4), - // }}, - // }, - // { - // Name: to.Ptr("User Events"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00Z"); return t}()), - // TimeGrain: to.Ptr("00:05:00"), - // Unit: to.Ptr(""), - // Values: []*armappservice.DiagnosticMetricSample{ - // { - // IsAggregated: to.Ptr(true), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:20:00Z"); return t}()), - // Total: to.Ptr[float64](3), - // }, - // { - // RoleInstance: to.Ptr("RD00155D3C09FC"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:20:00Z"); return t}()), - // Total: to.Ptr[float64](1), - // }, - // { - // RoleInstance: to.Ptr("RD00155D3C2ADC"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:20:00Z"); return t}()), - // Total: to.Ptr[float64](1), - // }, - // { - // RoleInstance: to.Ptr("RD00155D3C214E"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:20:00Z"); return t}()), - // Total: to.Ptr[float64](1), - // }}, - // }}, - // Source: to.Ptr("workerprocessrecycle"), - // }}, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00Z"); return t}()), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_ListSiteDetectors.json -func ExampleDiagnosticsClient_NewListSiteDetectorsPager_listAppDetectors() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDiagnosticsClient().NewListSiteDetectorsPager("Sample-WestUSResourceGroup", "SampleApp", "availability", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DiagnosticDetectorCollection = armappservice.DiagnosticDetectorCollection{ - // Value: []*armappservice.DetectorDefinitionResource{ - // { - // Name: to.Ptr("servicehealth"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/servicehealth"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Service Health"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](1), - // }, - // }, - // { - // Name: to.Ptr("siteswap"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/siteswap"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Site Swap Operations"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](8), - // }, - // }, - // { - // Name: to.Ptr("sitecrashes"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/sitecrashes"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Site Crash Events"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](9), - // }, - // }, - // { - // Name: to.Ptr("deployment"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/deployment"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Site Deployments"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](7), - // }, - // }, - // { - // Name: to.Ptr("sitecpuanalysis"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/sitecpuanalysis"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("CPU Analysis"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](3), - // }, - // }, - // { - // Name: to.Ptr("sitememoryanalysis"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/sitememoryanalysis"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Physical Memory Analysis"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](3), - // }, - // }, - // { - // Name: to.Ptr("committedmemoryusage"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/committedmemoryusage"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Committed Memory Usage"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](7), - // }, - // }, - // { - // Name: to.Ptr("pagefileoperations"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/pagefileoperations"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Page File Operations"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](3), - // }, - // }, - // { - // Name: to.Ptr("siterestartuserinitiated"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/siterestartuserinitiated"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("User Initiated Site Restarts"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](14), - // }, - // }, - // { - // Name: to.Ptr("siterestartsettingupdate"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/siterestartsettingupdate"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Config Update Site Restarts"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](12), - // }, - // }, - // { - // Name: to.Ptr("frebanalysis"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/frebanalysis"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Freb Logs Analysis"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](6), - // }, - // }, - // { - // Name: to.Ptr("workeravailability"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/workeravailability"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Worker Availability"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](11), - // }, - // }, - // { - // Name: to.Ptr("sitelatency"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/sitelatency"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Site Latency"), - // IsEnabled: to.Ptr(false), - // Rank: to.Ptr[float64](1005), - // }, - // }, - // { - // Name: to.Ptr("threadcount"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/threadcount"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Thread Count"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](23), - // }, - // }, - // { - // Name: to.Ptr("failedrequestsperuri"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/failedrequestsperuri"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Failed Requests Per URI"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](998), - // }, - // }, - // { - // Name: to.Ptr("autoheal"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/autoheal"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("AutoHeal"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](21), - // }, - // }, - // { - // Name: to.Ptr("loganalyzer"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/loganalyzer"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("PHP Log Analyzer"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](26), - // }, - // }, - // { - // Name: to.Ptr("aspnetcore"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/aspnetcore"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("ASP.NET Core"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](5), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_ListSiteDetectorsSlot.json -func ExampleDiagnosticsClient_NewListSiteDetectorsPager_listAppSlotDetectors() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDiagnosticsClient().NewListSiteDetectorsPager("Sample-WestUSResourceGroup", "SampleApp", "availability", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DiagnosticDetectorCollection = armappservice.DiagnosticDetectorCollection{ - // Value: []*armappservice.DetectorDefinitionResource{ - // { - // Name: to.Ptr("servicehealth"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/slots/staging/diagnostics/availability/detectors/servicehealth"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Service Health"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](1), - // }, - // }, - // { - // Name: to.Ptr("siteswap"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/slots/staging/diagnostics/availability/detectors/siteswap"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Site Swap Operations"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](8), - // }, - // }, - // { - // Name: to.Ptr("sitecrashes"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/slots/staging/diagnostics/availability/detectors/sitecrashes"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Site Crash Events"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](9), - // }, - // }, - // { - // Name: to.Ptr("deployment"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/slots/staging/diagnostics/availability/detectors/deployment"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Site Deployments"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](7), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_GetSiteDetector.json -func ExampleDiagnosticsClient_GetSiteDetector_getAppDetector() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().GetSiteDetector(ctx, "Sample-WestUSResourceGroup", "SampleApp", "availability", "sitecrashes", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DetectorDefinitionResource = armappservice.DetectorDefinitionResource{ - // Name: to.Ptr("sitecrashes"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/sitecrashes"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Site Crash Events"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](9), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_GetSiteDetectorSlot.json -func ExampleDiagnosticsClient_GetSiteDetector_getAppSlotDetector() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().GetSiteDetector(ctx, "Sample-WestUSResourceGroup", "SampleApp", "availability", "sitecrashes", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DetectorDefinitionResource = armappservice.DetectorDefinitionResource{ - // Name: to.Ptr("sitecrashes"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/slots/staging/diagnostics/availability/detectors/sitecrashes"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Site Crash Events"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](9), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_ExecuteSiteDetector.json -func ExampleDiagnosticsClient_ExecuteSiteDetector_executeSiteDetector() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().ExecuteSiteDetector(ctx, "Sample-WestUSResourceGroup", "SampleApp", "sitecrashes", "availability", &armappservice.DiagnosticsClientExecuteSiteDetectorOptions{StartTime: nil, - EndTime: nil, - TimeGrain: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DiagnosticDetectorResponse = armappservice.DiagnosticDetectorResponse{ - // Name: to.Ptr("sitecrashes"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability/detectors/sitecrashes"), - // Properties: &armappservice.DiagnosticDetectorResponseProperties{ - // AbnormalTimePeriods: []*armappservice.DetectorAbnormalTimePeriod{ - // { - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00Z"); return t}()), - // Solutions: []*armappservice.Solution{ - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00Z"); return t}()), - // }}, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00Z"); return t}()), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Diagnostics_ExecuteSiteDetectorSlot.json -func ExampleDiagnosticsClient_ExecuteSiteDetector_executeSiteSlotDetector() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().ExecuteSiteDetector(ctx, "Sample-WestUSResourceGroup", "SampleApp", "sitecrashes", "availability", &armappservice.DiagnosticsClientExecuteSiteDetectorOptions{StartTime: nil, - EndTime: nil, - TimeGrain: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DiagnosticDetectorResponse = armappservice.DiagnosticDetectorResponse{ - // Name: to.Ptr("sitecrashes"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/detectors/sitecrashes"), - // Properties: &armappservice.DiagnosticDetectorResponseProperties{ - // AbnormalTimePeriods: []*armappservice.DetectorAbnormalTimePeriod{ - // { - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00Z"); return t}()), - // Solutions: []*armappservice.Solution{ - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00Z"); return t}()), - // }}, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00Z"); return t}()), - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client_example_test.go deleted file mode 100644 index a7cb577a2320..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client_example_test.go +++ /dev/null @@ -1,136 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-09-01/examples/ListOperations.json -func ExampleDomainRegistrationProviderClient_NewListOperationsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDomainRegistrationProviderClient().NewListOperationsPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CsmOperationCollection = armappservice.CsmOperationCollection{ - // Value: []*armappservice.CsmOperationDescription{ - // { - // Name: to.Ptr("Microsoft.DomainRegistration/domains/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the list of domains"), - // Operation: to.Ptr("Get Domains"), - // Provider: to.Ptr("Microsoft Domains"), - // Resource: to.Ptr("Domain"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.DomainRegistration/domains/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Add a new Domain or update an existing one"), - // Operation: to.Ptr("Add or Update Domain"), - // Provider: to.Ptr("Microsoft Domains"), - // Resource: to.Ptr("Domain"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.DomainRegistration/domains/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete an existing domain."), - // Operation: to.Ptr("Delete Domain"), - // Provider: to.Ptr("Microsoft Domains"), - // Resource: to.Ptr("Domain"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.DomainRegistration/domains/operationresults/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get a domain operation"), - // Operation: to.Ptr("Get Domain Operation"), - // Provider: to.Ptr("Microsoft Domains"), - // Resource: to.Ptr("Domain operation"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.DomainRegistration/generateSsoRequest/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Generate a request for signing into domain control center."), - // Operation: to.Ptr("Generate Domain Control Center Single Sign On Request"), - // Provider: to.Ptr("Microsoft Domains"), - // Resource: to.Ptr("Domain Control Center Single Sign On Request"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.DomainRegistration/validateDomainRegistrationInformation/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Validate domain purchase object without submitting it"), - // Operation: to.Ptr("Domain Purchase Info Validation"), - // Provider: to.Ptr("Microsoft Domains"), - // Resource: to.Ptr("Domain Validation"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.DomainRegistration/checkDomainAvailability/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Check if a domain is available for purchase"), - // Operation: to.Ptr("Check Domain Availability"), - // Provider: to.Ptr("Microsoft Domains"), - // Resource: to.Ptr("Domain Availability Result"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.DomainRegistration/listDomainRecommendations/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Retrieve the list domain recommendations based on keywords"), - // Operation: to.Ptr("Retrieve Domain Recommendations"), - // Provider: to.Ptr("Microsoft Domains"), - // Resource: to.Ptr("Domain Recommendations"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.DomainRegistration/register/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Register the Microsoft Domains resource provider for the subscription"), - // Operation: to.Ptr("Register Microsoft Domains resource provider"), - // Provider: to.Ptr("Microsoft Domains"), - // Resource: to.Ptr("Microsoft Domains resource provider"), - // }, - // Origin: to.Ptr("user,system"), - // }}, - // } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/domains_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/domains_client_example_test.go deleted file mode 100644 index 4b303638bf48..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/domains_client_example_test.go +++ /dev/null @@ -1,1196 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "time" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-09-01/examples/CheckDomainAvailability.json -func ExampleDomainsClient_CheckAvailability() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDomainsClient().CheckAvailability(ctx, armappservice.NameIdentifier{ - Name: to.Ptr("abcd.com"), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DomainAvailabilityCheckResult = armappservice.DomainAvailabilityCheckResult{ - // Name: to.Ptr("abcd.com"), - // Available: to.Ptr(true), - // DomainType: to.Ptr(armappservice.DomainTypeRegular), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-09-01/examples/ListDomainsBySubscription.json -func ExampleDomainsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDomainsClient().NewListPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DomainCollection = armappservice.DomainCollection{ - // Value: []*armappservice.Domain{ - // { - // Name: to.Ptr("example.com"), - // Type: to.Ptr("Microsoft.DomainRegistration/domains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com"), - // Location: to.Ptr("global"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.DomainProperties{ - // AuthCode: to.Ptr("exampleAuthCode"), - // AutoRenew: to.Ptr(true), - // Consent: &armappservice.DomainPurchaseConsent{ - // AgreedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53Z"); return t}()), - // AgreedBy: to.Ptr("192.0.2.1"), - // AgreementKeys: []*string{ - // to.Ptr("agreementKey1")}, - // }, - // ContactAdmin: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("admin@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Admin"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // ContactBilling: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("billing@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Billing"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // ContactRegistrant: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("registrant@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Registrant"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // ContactTech: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("tech@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Tech"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53Z"); return t}()), - // DNSType: to.Ptr(armappservice.DNSTypeDefaultDomainRegistrarDNS), - // DomainNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-10T19:30:53Z"); return t}()), - // ManagedHostNames: []*armappservice.HostName{ - // }, - // NameServers: []*string{ - // to.Ptr("ns01.ote.domaincontrol.com"), - // to.Ptr("ns02.ote.domaincontrol.com")}, - // Privacy: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // ReadyForDNSRecordManagement: to.Ptr(true), - // RegistrationStatus: to.Ptr(armappservice.DomainStatusActive), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-09-01/examples/GetDomainControlCenterSsoRequest.json -func ExampleDomainsClient_GetControlCenterSsoRequest() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDomainsClient().GetControlCenterSsoRequest(ctx, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DomainControlCenterSsoRequest = armappservice.DomainControlCenterSsoRequest{ - // PostParameterKey: to.Ptr("saml"), - // PostParameterValue: to.Ptr("1242sds|k1340"), - // URL: to.Ptr("https://Reseller.provider.com/?xRequestId=sdsdsds&app=dcc"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-09-01/examples/ListDomainRecommendations.json -func ExampleDomainsClient_NewListRecommendationsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDomainsClient().NewListRecommendationsPager(armappservice.DomainRecommendationSearchParameters{ - Keywords: to.Ptr("example1"), - MaxDomainRecommendations: to.Ptr[int32](10), - }, nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.NameIdentifierCollection = armappservice.NameIdentifierCollection{ - // Value: []*armappservice.NameIdentifier{ - // { - // Name: to.Ptr("domainnamesuggestion1"), - // }, - // { - // Name: to.Ptr("domainnamesuggestion2"), - // }, - // { - // Name: to.Ptr("domainnamesuggestion3"), - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-09-01/examples/ListDomainsByResourceGroup.json -func ExampleDomainsClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDomainsClient().NewListByResourceGroupPager("testrg123", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DomainCollection = armappservice.DomainCollection{ - // Value: []*armappservice.Domain{ - // { - // Name: to.Ptr("example.com"), - // Type: to.Ptr("Microsoft.DomainRegistration/domains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com"), - // Location: to.Ptr("global"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.DomainProperties{ - // AuthCode: to.Ptr("exampleAuthCode"), - // AutoRenew: to.Ptr(true), - // Consent: &armappservice.DomainPurchaseConsent{ - // AgreedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53Z"); return t}()), - // AgreedBy: to.Ptr("192.0.2.1"), - // AgreementKeys: []*string{ - // to.Ptr("agreementKey1")}, - // }, - // ContactAdmin: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("admin@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Admin"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // ContactBilling: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("billing@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Billing"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // ContactRegistrant: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("registrant@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Registrant"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // ContactTech: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("tech@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Tech"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53Z"); return t}()), - // DNSType: to.Ptr(armappservice.DNSTypeDefaultDomainRegistrarDNS), - // DomainNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-10T19:30:53Z"); return t}()), - // ManagedHostNames: []*armappservice.HostName{ - // }, - // NameServers: []*string{ - // to.Ptr("ns01.ote.domaincontrol.com"), - // to.Ptr("ns02.ote.domaincontrol.com")}, - // Privacy: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // ReadyForDNSRecordManagement: to.Ptr(true), - // RegistrationStatus: to.Ptr(armappservice.DomainStatusActive), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-09-01/examples/GetDomain.json -func ExampleDomainsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDomainsClient().Get(ctx, "testrg123", "example.com", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Domain = armappservice.Domain{ - // Name: to.Ptr("example.com"), - // Type: to.Ptr("Microsoft.DomainRegistration/domains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com"), - // Location: to.Ptr("global"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.DomainProperties{ - // AuthCode: to.Ptr("exampleAuthCode"), - // AutoRenew: to.Ptr(true), - // Consent: &armappservice.DomainPurchaseConsent{ - // AgreedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53Z"); return t}()), - // AgreedBy: to.Ptr("192.0.2.1"), - // AgreementKeys: []*string{ - // to.Ptr("agreementKey1")}, - // }, - // ContactAdmin: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("admin@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Admin"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // ContactBilling: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("billing@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Billing"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // ContactRegistrant: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("registrant@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Registrant"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // ContactTech: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("tech@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Tech"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53Z"); return t}()), - // DNSType: to.Ptr(armappservice.DNSTypeDefaultDomainRegistrarDNS), - // DomainNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-10T19:30:53Z"); return t}()), - // ManagedHostNames: []*armappservice.HostName{ - // }, - // NameServers: []*string{ - // to.Ptr("ns01.ote.domaincontrol.com"), - // to.Ptr("ns02.ote.domaincontrol.com")}, - // Privacy: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // ReadyForDNSRecordManagement: to.Ptr(true), - // RegistrationStatus: to.Ptr(armappservice.DomainStatusActive), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-09-01/examples/CreateAppServiceDomain.json -func ExampleDomainsClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewDomainsClient().BeginCreateOrUpdate(ctx, "testrg123", "example.com", armappservice.Domain{ - Location: to.Ptr("global"), - Tags: map[string]*string{}, - Properties: &armappservice.DomainProperties{ - AuthCode: to.Ptr("exampleAuthCode"), - AutoRenew: to.Ptr(true), - Consent: &armappservice.DomainPurchaseConsent{ - AgreedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53Z"); return t }()), - AgreedBy: to.Ptr("192.0.2.1"), - AgreementKeys: []*string{ - to.Ptr("agreementKey1")}, - }, - ContactAdmin: &armappservice.Contact{ - AddressMailing: &armappservice.Address{ - Address1: to.Ptr("3400 State St"), - City: to.Ptr("Chicago"), - Country: to.Ptr("United States"), - PostalCode: to.Ptr("67098"), - State: to.Ptr("IL"), - }, - Email: to.Ptr("admin@email.com"), - Fax: to.Ptr("1-245-534-2242"), - JobTitle: to.Ptr("Admin"), - NameFirst: to.Ptr("John"), - NameLast: to.Ptr("Doe"), - NameMiddle: to.Ptr(""), - Organization: to.Ptr("Microsoft Inc."), - Phone: to.Ptr("1-245-534-2242"), - }, - ContactBilling: &armappservice.Contact{ - AddressMailing: &armappservice.Address{ - Address1: to.Ptr("3400 State St"), - City: to.Ptr("Chicago"), - Country: to.Ptr("United States"), - PostalCode: to.Ptr("67098"), - State: to.Ptr("IL"), - }, - Email: to.Ptr("billing@email.com"), - Fax: to.Ptr("1-245-534-2242"), - JobTitle: to.Ptr("Billing"), - NameFirst: to.Ptr("John"), - NameLast: to.Ptr("Doe"), - NameMiddle: to.Ptr(""), - Organization: to.Ptr("Microsoft Inc."), - Phone: to.Ptr("1-245-534-2242"), - }, - ContactRegistrant: &armappservice.Contact{ - AddressMailing: &armappservice.Address{ - Address1: to.Ptr("3400 State St"), - City: to.Ptr("Chicago"), - Country: to.Ptr("United States"), - PostalCode: to.Ptr("67098"), - State: to.Ptr("IL"), - }, - Email: to.Ptr("registrant@email.com"), - Fax: to.Ptr("1-245-534-2242"), - JobTitle: to.Ptr("Registrant"), - NameFirst: to.Ptr("John"), - NameLast: to.Ptr("Doe"), - NameMiddle: to.Ptr(""), - Organization: to.Ptr("Microsoft Inc."), - Phone: to.Ptr("1-245-534-2242"), - }, - ContactTech: &armappservice.Contact{ - AddressMailing: &armappservice.Address{ - Address1: to.Ptr("3400 State St"), - City: to.Ptr("Chicago"), - Country: to.Ptr("United States"), - PostalCode: to.Ptr("67098"), - State: to.Ptr("IL"), - }, - Email: to.Ptr("tech@email.com"), - Fax: to.Ptr("1-245-534-2242"), - JobTitle: to.Ptr("Tech"), - NameFirst: to.Ptr("John"), - NameLast: to.Ptr("Doe"), - NameMiddle: to.Ptr(""), - Organization: to.Ptr("Microsoft Inc."), - Phone: to.Ptr("1-245-534-2242"), - }, - DNSType: to.Ptr(armappservice.DNSTypeDefaultDomainRegistrarDNS), - Privacy: to.Ptr(false), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Domain = armappservice.Domain{ - // Name: to.Ptr("example.com"), - // Type: to.Ptr("Microsoft.DomainRegistration/domains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com"), - // Location: to.Ptr("global"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.DomainProperties{ - // AuthCode: to.Ptr("exampleAuthCode"), - // AutoRenew: to.Ptr(true), - // Consent: &armappservice.DomainPurchaseConsent{ - // AgreedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53Z"); return t}()), - // AgreedBy: to.Ptr("192.0.2.1"), - // AgreementKeys: []*string{ - // to.Ptr("agreementKey1")}, - // }, - // ContactAdmin: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("admin@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Admin"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // ContactBilling: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("billing@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Billing"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // ContactRegistrant: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("registrant@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Registrant"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // ContactTech: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("tech@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Tech"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53Z"); return t}()), - // DNSType: to.Ptr(armappservice.DNSTypeDefaultDomainRegistrarDNS), - // DomainNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-10T19:30:53Z"); return t}()), - // ManagedHostNames: []*armappservice.HostName{ - // }, - // NameServers: []*string{ - // to.Ptr("ns01.ote.domaincontrol.com"), - // to.Ptr("ns02.ote.domaincontrol.com")}, - // Privacy: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // ReadyForDNSRecordManagement: to.Ptr(true), - // RegistrationStatus: to.Ptr(armappservice.DomainStatusActive), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-09-01/examples/DeleteAppServiceDomain.json -func ExampleDomainsClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewDomainsClient().Delete(ctx, "testrg123", "example.com", &armappservice.DomainsClientDeleteOptions{ForceHardDeleteDomain: to.Ptr(true)}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-09-01/examples/UpdateAppServiceDomain.json -func ExampleDomainsClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDomainsClient().Update(ctx, "testrg123", "example.com", armappservice.DomainPatchResource{ - Properties: &armappservice.DomainPatchResourceProperties{ - AuthCode: to.Ptr("exampleAuthCode"), - AutoRenew: to.Ptr(true), - Consent: &armappservice.DomainPurchaseConsent{ - AgreedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53Z"); return t }()), - AgreedBy: to.Ptr("192.0.2.1"), - AgreementKeys: []*string{ - to.Ptr("agreementKey1")}, - }, - ContactAdmin: &armappservice.Contact{ - AddressMailing: &armappservice.Address{ - Address1: to.Ptr("3400 State St"), - City: to.Ptr("Chicago"), - Country: to.Ptr("United States"), - PostalCode: to.Ptr("67098"), - State: to.Ptr("IL"), - }, - Email: to.Ptr("admin@email.com"), - Fax: to.Ptr("1-245-534-2242"), - JobTitle: to.Ptr("Admin"), - NameFirst: to.Ptr("John"), - NameLast: to.Ptr("Doe"), - NameMiddle: to.Ptr(""), - Organization: to.Ptr("Microsoft Inc."), - Phone: to.Ptr("1-245-534-2242"), - }, - ContactBilling: &armappservice.Contact{ - AddressMailing: &armappservice.Address{ - Address1: to.Ptr("3400 State St"), - City: to.Ptr("Chicago"), - Country: to.Ptr("United States"), - PostalCode: to.Ptr("67098"), - State: to.Ptr("IL"), - }, - Email: to.Ptr("billing@email.com"), - Fax: to.Ptr("1-245-534-2242"), - JobTitle: to.Ptr("Billing"), - NameFirst: to.Ptr("John"), - NameLast: to.Ptr("Doe"), - NameMiddle: to.Ptr(""), - Organization: to.Ptr("Microsoft Inc."), - Phone: to.Ptr("1-245-534-2242"), - }, - ContactRegistrant: &armappservice.Contact{ - AddressMailing: &armappservice.Address{ - Address1: to.Ptr("3400 State St"), - City: to.Ptr("Chicago"), - Country: to.Ptr("United States"), - PostalCode: to.Ptr("67098"), - State: to.Ptr("IL"), - }, - Email: to.Ptr("registrant@email.com"), - Fax: to.Ptr("1-245-534-2242"), - JobTitle: to.Ptr("Registrant"), - NameFirst: to.Ptr("John"), - NameLast: to.Ptr("Doe"), - NameMiddle: to.Ptr(""), - Organization: to.Ptr("Microsoft Inc."), - Phone: to.Ptr("1-245-534-2242"), - }, - ContactTech: &armappservice.Contact{ - AddressMailing: &armappservice.Address{ - Address1: to.Ptr("3400 State St"), - City: to.Ptr("Chicago"), - Country: to.Ptr("United States"), - PostalCode: to.Ptr("67098"), - State: to.Ptr("IL"), - }, - Email: to.Ptr("tech@email.com"), - Fax: to.Ptr("1-245-534-2242"), - JobTitle: to.Ptr("Tech"), - NameFirst: to.Ptr("John"), - NameLast: to.Ptr("Doe"), - NameMiddle: to.Ptr(""), - Organization: to.Ptr("Microsoft Inc."), - Phone: to.Ptr("1-245-534-2242"), - }, - DNSType: to.Ptr(armappservice.DNSTypeDefaultDomainRegistrarDNS), - Privacy: to.Ptr(false), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Domain = armappservice.Domain{ - // Name: to.Ptr("example.com"), - // Type: to.Ptr("Microsoft.DomainRegistration/domains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com"), - // Location: to.Ptr("global"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.DomainProperties{ - // AuthCode: to.Ptr("exampleAuthCode"), - // AutoRenew: to.Ptr(true), - // Consent: &armappservice.DomainPurchaseConsent{ - // AgreedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53Z"); return t}()), - // AgreedBy: to.Ptr("192.0.2.1"), - // AgreementKeys: []*string{ - // to.Ptr("agreementKey1")}, - // }, - // ContactAdmin: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("admin@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Admin"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // ContactBilling: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("billing@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Billing"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // ContactRegistrant: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("registrant@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Registrant"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // ContactTech: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("tech@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Tech"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53Z"); return t}()), - // DNSType: to.Ptr(armappservice.DNSTypeDefaultDomainRegistrarDNS), - // DomainNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-10T19:30:53Z"); return t}()), - // ManagedHostNames: []*armappservice.HostName{ - // }, - // NameServers: []*string{ - // to.Ptr("ns01.ote.domaincontrol.com"), - // to.Ptr("ns02.ote.domaincontrol.com")}, - // Privacy: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // ReadyForDNSRecordManagement: to.Ptr(true), - // RegistrationStatus: to.Ptr(armappservice.DomainStatusActive), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-09-01/examples/ListDomainOwnershipIdentifiers.json -func ExampleDomainsClient_NewListOwnershipIdentifiersPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDomainsClient().NewListOwnershipIdentifiersPager("testrg123", "example.com", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DomainOwnershipIdentifierCollection = armappservice.DomainOwnershipIdentifierCollection{ - // Value: []*armappservice.DomainOwnershipIdentifier{ - // { - // Name: to.Ptr("SampleOwnershipId"), - // Type: to.Ptr("Microsoft.DomainRegistration/domains/domainownershipidentifiers"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com/domainownershipidentifiers/SampleOwnershipId"), - // Properties: &armappservice.DomainOwnershipIdentifierProperties{ - // OwnershipID: to.Ptr("SampleOwnershipId"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-09-01/examples/GetDomainOwnershipIdentifier.json -func ExampleDomainsClient_GetOwnershipIdentifier() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDomainsClient().GetOwnershipIdentifier(ctx, "testrg123", "example.com", "SampleOwnershipId", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DomainOwnershipIdentifier = armappservice.DomainOwnershipIdentifier{ - // Name: to.Ptr("SampleOwnershipId"), - // Type: to.Ptr("Microsoft.DomainRegistration/domains/domainownershipidentifiers"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com/domainownershipidentifiers/SampleOwnershipId"), - // Properties: &armappservice.DomainOwnershipIdentifierProperties{ - // OwnershipID: to.Ptr("SampleOwnershipId"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-09-01/examples/CreateAppServiceDomainOwnershipIdentifier.json -func ExampleDomainsClient_CreateOrUpdateOwnershipIdentifier() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDomainsClient().CreateOrUpdateOwnershipIdentifier(ctx, "testrg123", "example.com", "SampleOwnershipId", armappservice.DomainOwnershipIdentifier{ - Properties: &armappservice.DomainOwnershipIdentifierProperties{ - OwnershipID: to.Ptr("SampleOwnershipId"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DomainOwnershipIdentifier = armappservice.DomainOwnershipIdentifier{ - // Name: to.Ptr("SampleOwnershipId"), - // Type: to.Ptr("Microsoft.DomainRegistration/domains/domainownershipidentifiers"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com/domainownershipidentifiers/SampleOwnershipId"), - // Properties: &armappservice.DomainOwnershipIdentifierProperties{ - // OwnershipID: to.Ptr("SampleOwnershipId"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-09-01/examples/DeleteAppServiceDomainOwnershipIdentifier.json -func ExampleDomainsClient_DeleteOwnershipIdentifier() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewDomainsClient().DeleteOwnershipIdentifier(ctx, "testrg123", "example.com", "ownershipIdentifier", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-09-01/examples/UpdateAppServiceDomainOwnershipIdentifier.json -func ExampleDomainsClient_UpdateOwnershipIdentifier() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDomainsClient().UpdateOwnershipIdentifier(ctx, "testrg123", "example.com", "SampleOwnershipId", armappservice.DomainOwnershipIdentifier{ - Properties: &armappservice.DomainOwnershipIdentifierProperties{ - OwnershipID: to.Ptr("SampleOwnershipId"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DomainOwnershipIdentifier = armappservice.DomainOwnershipIdentifier{ - // Name: to.Ptr("SampleOwnershipId"), - // Type: to.Ptr("Microsoft.DomainRegistration/domains/domainownershipidentifiers"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com/domainownershipidentifiers/SampleOwnershipId"), - // Properties: &armappservice.DomainOwnershipIdentifierProperties{ - // OwnershipID: to.Ptr("SampleOwnershipId"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-09-01/examples/RenewDomain.json -func ExampleDomainsClient_Renew() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewDomainsClient().Renew(ctx, "RG", "example.com", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-09-01/examples/TransferOutDomain.json -func ExampleDomainsClient_TransferOut() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDomainsClient().TransferOut(ctx, "testrg123", "example.com", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Domain = armappservice.Domain{ - // Name: to.Ptr("example.com"), - // Type: to.Ptr("Microsoft.DomainRegistration/domains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com"), - // Location: to.Ptr("global"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.DomainProperties{ - // AuthCode: to.Ptr("exampleAuthCode"), - // AutoRenew: to.Ptr(true), - // Consent: &armappservice.DomainPurchaseConsent{ - // AgreedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53Z"); return t}()), - // AgreedBy: to.Ptr("192.0.2.1"), - // AgreementKeys: []*string{ - // to.Ptr("agreementKey1")}, - // }, - // ContactAdmin: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("admin@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Admin"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // ContactBilling: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("billing@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Billing"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // ContactRegistrant: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("registrant@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Registrant"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // ContactTech: &armappservice.Contact{ - // AddressMailing: &armappservice.Address{ - // Address1: to.Ptr("3400 State St"), - // City: to.Ptr("Chicago"), - // Country: to.Ptr("United States"), - // PostalCode: to.Ptr("67098"), - // State: to.Ptr("IL"), - // }, - // Email: to.Ptr("tech@email.com"), - // Fax: to.Ptr("1-245-534-2242"), - // JobTitle: to.Ptr("Tech"), - // NameFirst: to.Ptr("John"), - // NameLast: to.Ptr("Doe"), - // NameMiddle: to.Ptr(""), - // Organization: to.Ptr("Microsoft Inc."), - // Phone: to.Ptr("1-245-534-2242"), - // }, - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53Z"); return t}()), - // DNSType: to.Ptr(armappservice.DNSTypeDefaultDomainRegistrarDNS), - // DomainNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-10T19:30:53Z"); return t}()), - // ManagedHostNames: []*armappservice.HostName{ - // }, - // NameServers: []*string{ - // to.Ptr("ns01.ote.domaincontrol.com"), - // to.Ptr("ns02.ote.domaincontrol.com")}, - // Privacy: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // ReadyForDNSRecordManagement: to.Ptr(true), - // RegistrationStatus: to.Ptr(armappservice.DomainStatusActive), - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/environments_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/environments_client_example_test.go deleted file mode 100644 index 69537f5b0fcd..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/environments_client_example_test.go +++ /dev/null @@ -1,2889 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_List.json -func ExampleEnvironmentsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.EnvironmentCollection = armappservice.EnvironmentCollection{ - // Value: []*armappservice.EnvironmentResource{ - // { - // Name: to.Ptr("test-ase"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase"), - // Kind: to.Ptr("ASEV3"), - // Location: to.Ptr("South Central US"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.Environment{ - // DedicatedHostCount: to.Ptr[int32](0), - // DNSSuffix: to.Ptr("test-ase.p.azurewebsites.net"), - // FrontEndScaleFactor: to.Ptr[int32](15), - // HasLinuxWorkers: to.Ptr(true), - // InternalLoadBalancingMode: to.Ptr(armappservice.LoadBalancingModeNone), - // IpsslAddressCount: to.Ptr[int32](0), - // MaximumNumberOfMachines: to.Ptr[int32](250), - // MultiSize: to.Ptr("Standard_D2d_v4"), - // NetworkingConfiguration: &armappservice.AseV3NetworkingConfiguration{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/configurations/networking"), - // Properties: &armappservice.AseV3NetworkingConfigurationProperties{ - // AllowNewPrivateEndpointConnections: to.Ptr(false), - // ExternalInboundIPAddresses: []*string{ - // to.Ptr("52.153.248.36")}, - // FtpEnabled: to.Ptr(false), - // InternalInboundIPAddresses: []*string{ - // }, - // LinuxOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // RemoteDebugEnabled: to.Ptr(false), - // WindowsOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // }, - // }, - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Status: to.Ptr(armappservice.HostingEnvironmentStatusReady), - // Suspended: to.Ptr(false), - // VirtualNetwork: &armappservice.VirtualNetworkProfile{ - // Name: to.Ptr("delegated"), - // Type: to.Ptr("Microsoft.Network/virtualNetworks/subnets"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-subnet/subnets/delegated"), - // Subnet: to.Ptr(""), - // }, - // ZoneRedundant: to.Ptr(false), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_ListByResourceGroup.json -func ExampleEnvironmentsClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListByResourceGroupPager("test-rg", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.EnvironmentCollection = armappservice.EnvironmentCollection{ - // Value: []*armappservice.EnvironmentResource{ - // { - // Name: to.Ptr("test-ase"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase"), - // Kind: to.Ptr("ASEV3"), - // Location: to.Ptr("South Central US"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.Environment{ - // DedicatedHostCount: to.Ptr[int32](0), - // DNSSuffix: to.Ptr("test-ase.p.azurewebsites.net"), - // FrontEndScaleFactor: to.Ptr[int32](15), - // HasLinuxWorkers: to.Ptr(true), - // InternalLoadBalancingMode: to.Ptr(armappservice.LoadBalancingModeNone), - // IpsslAddressCount: to.Ptr[int32](0), - // MaximumNumberOfMachines: to.Ptr[int32](250), - // MultiSize: to.Ptr("Standard_D2d_v4"), - // NetworkingConfiguration: &armappservice.AseV3NetworkingConfiguration{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/configurations/networking"), - // Properties: &armappservice.AseV3NetworkingConfigurationProperties{ - // AllowNewPrivateEndpointConnections: to.Ptr(false), - // ExternalInboundIPAddresses: []*string{ - // to.Ptr("52.153.248.36")}, - // FtpEnabled: to.Ptr(false), - // InternalInboundIPAddresses: []*string{ - // }, - // LinuxOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // RemoteDebugEnabled: to.Ptr(false), - // WindowsOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // }, - // }, - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Status: to.Ptr(armappservice.HostingEnvironmentStatusReady), - // Suspended: to.Ptr(false), - // VirtualNetwork: &armappservice.VirtualNetworkProfile{ - // Name: to.Ptr("delegated"), - // Type: to.Ptr("Microsoft.Network/virtualNetworks/subnets"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-subnet/subnets/delegated"), - // Subnet: to.Ptr(""), - // }, - // ZoneRedundant: to.Ptr(false), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_Get.json -func ExampleEnvironmentsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().Get(ctx, "test-rg", "test-ase", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.EnvironmentResource = armappservice.EnvironmentResource{ - // Name: to.Ptr("test-ase"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase"), - // Kind: to.Ptr("ASEV3"), - // Location: to.Ptr("South Central US"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.Environment{ - // DedicatedHostCount: to.Ptr[int32](0), - // DNSSuffix: to.Ptr("test-ase.p.azurewebsites.net"), - // FrontEndScaleFactor: to.Ptr[int32](15), - // HasLinuxWorkers: to.Ptr(true), - // InternalLoadBalancingMode: to.Ptr(armappservice.LoadBalancingModeNone), - // IpsslAddressCount: to.Ptr[int32](0), - // MaximumNumberOfMachines: to.Ptr[int32](250), - // MultiSize: to.Ptr("Standard_D2d_v4"), - // NetworkingConfiguration: &armappservice.AseV3NetworkingConfiguration{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/configurations/networking"), - // Properties: &armappservice.AseV3NetworkingConfigurationProperties{ - // AllowNewPrivateEndpointConnections: to.Ptr(false), - // ExternalInboundIPAddresses: []*string{ - // to.Ptr("52.153.248.36")}, - // FtpEnabled: to.Ptr(false), - // InternalInboundIPAddresses: []*string{ - // }, - // LinuxOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // RemoteDebugEnabled: to.Ptr(false), - // WindowsOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // }, - // }, - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Status: to.Ptr(armappservice.HostingEnvironmentStatusReady), - // Suspended: to.Ptr(false), - // VirtualNetwork: &armappservice.VirtualNetworkProfile{ - // Name: to.Ptr("delegated"), - // Type: to.Ptr("Microsoft.Network/virtualNetworks/subnets"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-subnet/subnets/delegated"), - // Subnet: to.Ptr(""), - // }, - // ZoneRedundant: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_CreateOrUpdate.json -func ExampleEnvironmentsClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewEnvironmentsClient().BeginCreateOrUpdate(ctx, "test-rg", "test-ase", armappservice.EnvironmentResource{ - Kind: to.Ptr("Asev3"), - Location: to.Ptr("South Central US"), - Properties: &armappservice.Environment{ - VirtualNetwork: &armappservice.VirtualNetworkProfile{ - ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/delegated"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.EnvironmentResource = armappservice.EnvironmentResource{ - // Name: to.Ptr("test-ase"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase"), - // Kind: to.Ptr("ASEV3"), - // Location: to.Ptr("South Central US"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.Environment{ - // DedicatedHostCount: to.Ptr[int32](0), - // DNSSuffix: to.Ptr("test-ase.p.azurewebsites.net"), - // FrontEndScaleFactor: to.Ptr[int32](15), - // HasLinuxWorkers: to.Ptr(true), - // InternalLoadBalancingMode: to.Ptr(armappservice.LoadBalancingModeNone), - // IpsslAddressCount: to.Ptr[int32](0), - // MaximumNumberOfMachines: to.Ptr[int32](250), - // MultiSize: to.Ptr("Standard_D2d_v4"), - // NetworkingConfiguration: &armappservice.AseV3NetworkingConfiguration{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/configurations/networking"), - // Properties: &armappservice.AseV3NetworkingConfigurationProperties{ - // AllowNewPrivateEndpointConnections: to.Ptr(false), - // ExternalInboundIPAddresses: []*string{ - // to.Ptr("52.153.248.36")}, - // FtpEnabled: to.Ptr(false), - // InternalInboundIPAddresses: []*string{ - // }, - // LinuxOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // RemoteDebugEnabled: to.Ptr(false), - // WindowsOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // }, - // }, - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Status: to.Ptr(armappservice.HostingEnvironmentStatusReady), - // Suspended: to.Ptr(false), - // VirtualNetwork: &armappservice.VirtualNetworkProfile{ - // Name: to.Ptr("delegated"), - // Type: to.Ptr("Microsoft.Network/virtualNetworks/subnets"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-subnet/subnets/delegated"), - // Subnet: to.Ptr(""), - // }, - // ZoneRedundant: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_Delete.json -func ExampleEnvironmentsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewEnvironmentsClient().BeginDelete(ctx, "test-rg", "test-ase", &armappservice.EnvironmentsClientBeginDeleteOptions{ForceDelete: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_Update.json -func ExampleEnvironmentsClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().Update(ctx, "test-rg", "test-ase", armappservice.EnvironmentPatchResource{ - Properties: &armappservice.Environment{ - FrontEndScaleFactor: to.Ptr[int32](20), - VirtualNetwork: &armappservice.VirtualNetworkProfile{ - ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-subnet/subnets/delegated"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.EnvironmentResource = armappservice.EnvironmentResource{ - // Name: to.Ptr("test-ase"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase"), - // Kind: to.Ptr("ASEV3"), - // Location: to.Ptr("South Central US"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.Environment{ - // DedicatedHostCount: to.Ptr[int32](0), - // DNSSuffix: to.Ptr("test-ase.p.azurewebsites.net"), - // FrontEndScaleFactor: to.Ptr[int32](15), - // HasLinuxWorkers: to.Ptr(true), - // InternalLoadBalancingMode: to.Ptr(armappservice.LoadBalancingModeNone), - // IpsslAddressCount: to.Ptr[int32](0), - // MaximumNumberOfMachines: to.Ptr[int32](250), - // MultiSize: to.Ptr("Standard_D2d_v4"), - // NetworkingConfiguration: &armappservice.AseV3NetworkingConfiguration{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/configurations/networking"), - // Properties: &armappservice.AseV3NetworkingConfigurationProperties{ - // AllowNewPrivateEndpointConnections: to.Ptr(false), - // ExternalInboundIPAddresses: []*string{ - // to.Ptr("52.153.248.36")}, - // FtpEnabled: to.Ptr(false), - // InternalInboundIPAddresses: []*string{ - // }, - // LinuxOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // RemoteDebugEnabled: to.Ptr(false), - // WindowsOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // }, - // }, - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Status: to.Ptr(armappservice.HostingEnvironmentStatusReady), - // Suspended: to.Ptr(false), - // VirtualNetwork: &armappservice.VirtualNetworkProfile{ - // Name: to.Ptr("delegated"), - // Type: to.Ptr("Microsoft.Network/virtualNetworks/subnets"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-subnet/subnets/delegated"), - // Subnet: to.Ptr(""), - // }, - // ZoneRedundant: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_ListCapacities.json -func ExampleEnvironmentsClient_NewListCapacitiesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListCapacitiesPager("test-rg", "test-ase", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StampCapacityCollection = armappservice.StampCapacityCollection{ - // Value: []*armappservice.StampCapacity{ - // { - // AvailableCapacity: to.Ptr[int64](0), - // ComputeMode: to.Ptr(armappservice.ComputeModeOptionsDedicated), - // ExcludeFromCapacityAllocation: to.Ptr(false), - // IsApplicableForAllComputeModes: to.Ptr(false), - // IsLinux: to.Ptr(false), - // TotalCapacity: to.Ptr[int64](1), - // WorkerSizeID: to.Ptr[int32](0), - // }, - // { - // AvailableCapacity: to.Ptr[int64](0), - // ComputeMode: to.Ptr(armappservice.ComputeModeOptionsDedicated), - // ExcludeFromCapacityAllocation: to.Ptr(false), - // IsApplicableForAllComputeModes: to.Ptr(false), - // IsLinux: to.Ptr(false), - // TotalCapacity: to.Ptr[int64](1), - // WorkerSizeID: to.Ptr[int32](1), - // }, - // { - // AvailableCapacity: to.Ptr[int64](0), - // ComputeMode: to.Ptr(armappservice.ComputeModeOptionsDedicated), - // ExcludeFromCapacityAllocation: to.Ptr(false), - // IsApplicableForAllComputeModes: to.Ptr(false), - // IsLinux: to.Ptr(false), - // TotalCapacity: to.Ptr[int64](1), - // WorkerSizeID: to.Ptr[int32](2), - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_GetVipInfo.json -func ExampleEnvironmentsClient_GetVipInfo() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().GetVipInfo(ctx, "test-rg", "test-ase", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AddressResponse = armappservice.AddressResponse{ - // Name: to.Ptr("test-ase"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/capacities"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/Microsoft.Web/hostingEnvironments/test-ase/capacities/virtualip"), - // Properties: &armappservice.AddressResponseProperties{ - // OutboundIPAddresses: []*string{ - // to.Ptr("20.112.141.120")}, - // ServiceIPAddress: to.Ptr("20.112.141.120"), - // VipMappings: []*armappservice.VirtualIPMapping{ - // { - // InUse: to.Ptr(false), - // InternalHTTPPort: to.Ptr[int32](20003), - // InternalHTTPSPort: to.Ptr[int32](20001), - // VirtualIP: to.Ptr("20.112.141.135"), - // }, - // { - // InUse: to.Ptr(false), - // InternalHTTPPort: to.Ptr[int32](20004), - // InternalHTTPSPort: to.Ptr[int32](20002), - // VirtualIP: to.Ptr("20.112.141.150"), - // }}, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_ChangeVnet.json -func ExampleEnvironmentsClient_BeginChangeVnet() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewEnvironmentsClient().BeginChangeVnet(ctx, "test-rg", "test-ase", armappservice.VirtualNetworkProfile{ - ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/default"), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - for res.More() { - page, err := res.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WebAppCollection = armappservice.WebAppCollection{ - // Value: []*armappservice.Site{ - // }, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetAseCustomDnsSuffixConfiguration.json -func ExampleEnvironmentsClient_GetAseCustomDNSSuffixConfiguration() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().GetAseCustomDNSSuffixConfiguration(ctx, "test-rg", "test-ase", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CustomDNSSuffixConfiguration = armappservice.CustomDNSSuffixConfiguration{ - // Name: to.Ptr("customDnsSuffix"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/configurations/customdnssuffix"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/configurations/customdnssuffix"), - // Properties: &armappservice.CustomDNSSuffixConfigurationProperties{ - // CertificateURL: to.Ptr("https://test-kv.vault.azure.net/secrets/contosocert"), - // DNSSuffix: to.Ptr("contoso.com"), - // KeyVaultReferenceIdentity: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/test-rg/providers/microsoft.managedidentity/userassignedidentities/test-user-mi"), - // ProvisioningState: to.Ptr(armappservice.CustomDNSSuffixProvisioningStateSucceeded), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/UpdateAseCustomDnsSuffixConfiguration.json -func ExampleEnvironmentsClient_UpdateAseCustomDNSSuffixConfiguration() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().UpdateAseCustomDNSSuffixConfiguration(ctx, "test-rg", "test-ase", armappservice.CustomDNSSuffixConfiguration{ - Properties: &armappservice.CustomDNSSuffixConfigurationProperties{ - CertificateURL: to.Ptr("https://test-kv.vault.azure.net/secrets/contosocert"), - DNSSuffix: to.Ptr("contoso.com"), - KeyVaultReferenceIdentity: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/test-rg/providers/microsoft.managedidentity/userassignedidentities/test-user-mi"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CustomDNSSuffixConfiguration = armappservice.CustomDNSSuffixConfiguration{ - // Name: to.Ptr("customDnsSuffix"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/configurations/customdnssuffix"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/configurations/customdnssuffix"), - // Properties: &armappservice.CustomDNSSuffixConfigurationProperties{ - // CertificateURL: to.Ptr("https://test-kv.vault.azure.net/secrets/contosocert"), - // DNSSuffix: to.Ptr("contoso.com"), - // KeyVaultReferenceIdentity: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/test-rg/providers/microsoft.managedidentity/userassignedidentities/test-user-mi"), - // ProvisioningState: to.Ptr(armappservice.CustomDNSSuffixProvisioningStateSucceeded), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/DeleteAseCustomDnsSuffixConfiguration.json -func ExampleEnvironmentsClient_DeleteAseCustomDNSSuffixConfiguration() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().DeleteAseCustomDNSSuffixConfiguration(ctx, "test-rg", "test-ase", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Interface = map[string]any{ - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_GetAseV3NetworkingConfiguration.json -func ExampleEnvironmentsClient_GetAseV3NetworkingConfiguration() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().GetAseV3NetworkingConfiguration(ctx, "test-rg", "test-ase", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AseV3NetworkingConfiguration = armappservice.AseV3NetworkingConfiguration{ - // Name: to.Ptr("networking"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/configurations/networking"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/configurations/networking"), - // Properties: &armappservice.AseV3NetworkingConfigurationProperties{ - // AllowNewPrivateEndpointConnections: to.Ptr(false), - // ExternalInboundIPAddresses: []*string{ - // to.Ptr("52.153.248.36")}, - // FtpEnabled: to.Ptr(false), - // InternalInboundIPAddresses: []*string{ - // }, - // LinuxOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // RemoteDebugEnabled: to.Ptr(false), - // WindowsOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_UpdateAseNetworkingConfiguration.json -func ExampleEnvironmentsClient_UpdateAseNetworkingConfiguration() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().UpdateAseNetworkingConfiguration(ctx, "test-rg", "test-ase", armappservice.AseV3NetworkingConfiguration{ - Properties: &armappservice.AseV3NetworkingConfigurationProperties{ - FtpEnabled: to.Ptr(true), - RemoteDebugEnabled: to.Ptr(true), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AseV3NetworkingConfiguration = armappservice.AseV3NetworkingConfiguration{ - // Name: to.Ptr("networking"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/configurations/networking"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/configurations/networking"), - // Properties: &armappservice.AseV3NetworkingConfigurationProperties{ - // AllowNewPrivateEndpointConnections: to.Ptr(false), - // ExternalInboundIPAddresses: []*string{ - // to.Ptr("52.153.248.36")}, - // FtpEnabled: to.Ptr(true), - // InternalInboundIPAddresses: []*string{ - // }, - // LinuxOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // RemoteDebugEnabled: to.Ptr(true), - // WindowsOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_ListDiagnostics.json -func ExampleEnvironmentsClient_ListDiagnostics() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().ListDiagnostics(ctx, "test-rg", "test-ase", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.HostingEnvironmentDiagnosticsArray = []*armappservice.HostingEnvironmentDiagnostics{} -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_GetDiagnosticsItem.json -func ExampleEnvironmentsClient_GetDiagnosticsItem() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().GetDiagnosticsItem(ctx, "test-rg", "test-ase", "test-diagnostic", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.HostingEnvironmentDiagnostics = armappservice.HostingEnvironmentDiagnostics{ - // Name: to.Ptr("test-diagnostic"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetInboundNetworkDependenciesEndpoints.json -func ExampleEnvironmentsClient_NewGetInboundNetworkDependenciesEndpointsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewGetInboundNetworkDependenciesEndpointsPager("Sample-WestUSResourceGroup", "SampleAse", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.InboundEnvironmentEndpointCollection = armappservice.InboundEnvironmentEndpointCollection{ - // Value: []*armappservice.InboundEnvironmentEndpoint{ - // { - // Description: to.Ptr("App Service management"), - // Endpoints: []*string{ - // to.Ptr("70.37.57.58/32"), - // to.Ptr("157.55.208.185/32"), - // to.Ptr("23.102.188.65/32"), - // to.Ptr("191.236.154.88/32"), - // to.Ptr("52.174.22.21/32"), - // to.Ptr("13.94.149.179/32"), - // to.Ptr("13.94.143.126/32"), - // to.Ptr("13.94.141.115/32"), - // to.Ptr("52.178.195.197/32"), - // to.Ptr("52.178.190.65/32"), - // to.Ptr("52.178.184.149/32"), - // to.Ptr("52.178.177.147/32"), - // to.Ptr("13.75.127.117/32"), - // to.Ptr("40.83.125.161/32"), - // to.Ptr("40.83.121.56/32"), - // to.Ptr("40.83.120.64/32"), - // to.Ptr("52.187.56.50/32"), - // to.Ptr("52.187.63.37/32"), - // to.Ptr("52.187.59.251/32"), - // to.Ptr("52.187.63.19/32"), - // to.Ptr("52.165.158.140/32"), - // to.Ptr("52.165.152.214/32"), - // to.Ptr("52.165.154.193/32"), - // to.Ptr("52.165.153.122/32"), - // to.Ptr("104.44.129.255/32"), - // to.Ptr("104.44.134.255/32"), - // to.Ptr("104.44.129.243/32"), - // to.Ptr("104.44.129.141/32"), - // to.Ptr("65.52.193.203/32"), - // to.Ptr("70.37.89.222/32"), - // to.Ptr("13.64.115.203/32"), - // to.Ptr("52.225.177.153/32"), - // to.Ptr("65.52.172.237/32")}, - // Ports: []*string{ - // to.Ptr("454"), - // to.Ptr("455")}, - // }, - // { - // Description: to.Ptr("App Service Environment VIP"), - // Endpoints: []*string{ - // to.Ptr("52.247.209.18/32")}, - // Ports: []*string{ - // to.Ptr("454"), - // to.Ptr("455"), - // to.Ptr("16001")}, - // }, - // { - // Description: to.Ptr("App Service Environment subnet"), - // Endpoints: []*string{ - // to.Ptr("192.168.250.0/24")}, - // Ports: []*string{ - // to.Ptr("All")}, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_ListMultiRolePools.json -func ExampleEnvironmentsClient_NewListMultiRolePoolsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListMultiRolePoolsPager("test-rg", "test-ase", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WorkerPoolCollection = armappservice.WorkerPoolCollection{ - // Value: []*armappservice.WorkerPoolResource{ - // { - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/multiRolePools/default"), - // Properties: &armappservice.WorkerPool{ - // InstanceNames: []*string{ - // to.Ptr("10.7.1.8"), - // to.Ptr("10.7.1.9")}, - // WorkerCount: to.Ptr[int32](2), - // WorkerSize: to.Ptr("Standard_D1_V2"), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Q1"), - // Capacity: to.Ptr[int32](2), - // Family: to.Ptr("Q"), - // Size: to.Ptr("Q1"), - // Tier: to.Ptr("Quantum"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_GetMultiRolePool.json -func ExampleEnvironmentsClient_GetMultiRolePool() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().GetMultiRolePool(ctx, "test-rg", "test-ase", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkerPoolResource = armappservice.WorkerPoolResource{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/multiRolePools/default"), - // Properties: &armappservice.WorkerPool{ - // InstanceNames: []*string{ - // to.Ptr("10.7.1.8"), - // to.Ptr("10.7.1.9")}, - // WorkerCount: to.Ptr[int32](2), - // WorkerSize: to.Ptr("Standard_D1_V2"), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Q1"), - // Capacity: to.Ptr[int32](2), - // Family: to.Ptr("Q"), - // Size: to.Ptr("Q1"), - // Tier: to.Ptr("Quantum"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_CreateOrUpdateMultiRolePool.json -func ExampleEnvironmentsClient_BeginCreateOrUpdateMultiRolePool() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewEnvironmentsClient().BeginCreateOrUpdateMultiRolePool(ctx, "test-rg", "test-ase", armappservice.WorkerPoolResource{ - Properties: &armappservice.WorkerPool{ - WorkerCount: to.Ptr[int32](3), - WorkerSize: to.Ptr("Medium"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkerPoolResource = armappservice.WorkerPoolResource{ - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_ListMultiRolePoolInstanceMetricDefinitions.json -func ExampleEnvironmentsClient_NewListMultiRolePoolInstanceMetricDefinitionsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListMultiRolePoolInstanceMetricDefinitionsPager("test-rg", "test-ase", "10.7.1.8", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ResourceMetricDefinitionCollection = armappservice.ResourceMetricDefinitionCollection{ - // Value: []*armappservice.ResourceMetricDefinition{ - // { - // Name: to.Ptr("CpuPercentage"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/cpupercentage"), - // }, - // { - // Name: to.Ptr("MemoryPercentage"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/MemoryPercentage"), - // }, - // { - // Name: to.Ptr("DiskQueueLength"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/DiskQueueLength"), - // }, - // { - // Name: to.Ptr("HttpQueueLength"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/HttpQueueLength"), - // }, - // { - // Name: to.Ptr("BytesReceived"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/BytesReceived"), - // }, - // { - // Name: to.Ptr("BytesSent"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/BytesSent"), - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_ListMultiRoleMetricDefinitions.json -func ExampleEnvironmentsClient_NewListMultiRoleMetricDefinitionsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListMultiRoleMetricDefinitionsPager("test-rg", "test-ase", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ResourceMetricDefinitionCollection = armappservice.ResourceMetricDefinitionCollection{ - // Value: []*armappservice.ResourceMetricDefinition{ - // { - // Name: to.Ptr("CpuPercentage"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/cpupercentage"), - // }, - // { - // Name: to.Ptr("MemoryPercentage"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/MemoryPercentage"), - // }, - // { - // Name: to.Ptr("DiskQueueLength"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/DiskQueueLength"), - // }, - // { - // Name: to.Ptr("HttpQueueLength"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/HttpQueueLength"), - // }, - // { - // Name: to.Ptr("BytesReceived"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/BytesReceived"), - // }, - // { - // Name: to.Ptr("BytesSent"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/BytesSent"), - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_ListMultiRolePoolSkus.json -func ExampleEnvironmentsClient_NewListMultiRolePoolSKUsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListMultiRolePoolSKUsPager("test-rg", "test-ase", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.SKUInfoCollection = armappservice.SKUInfoCollection{ - // Value: []*armappservice.SKUInfo{ - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](247), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("S2"), - // Tier: to.Ptr("Standard"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](247), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("S3"), - // Tier: to.Ptr("Standard"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](247), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("S4"), - // Tier: to.Ptr("Standard"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](247), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("O2"), - // Tier: to.Ptr("Optimized"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](247), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("O3"), - // Tier: to.Ptr("Optimized"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](247), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("O4"), - // Tier: to.Ptr("Optimized"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](247), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Q1"), - // Tier: to.Ptr("Quantum"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](247), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Q2"), - // Tier: to.Ptr("Quantum"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](247), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Q3"), - // Tier: to.Ptr("Quantum"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](247), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Q4"), - // Tier: to.Ptr("Quantum"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_TestUpgradeAvailableNotification.json -func ExampleEnvironmentsClient_TestUpgradeAvailableNotification() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewEnvironmentsClient().TestUpgradeAvailableNotification(ctx, "rg", "SampleHostingEnvironment", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_Upgrade.json -func ExampleEnvironmentsClient_BeginUpgrade() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewEnvironmentsClient().BeginUpgrade(ctx, "rg", "SampleHostingEnvironment", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_ListMultiRoleUsages.json -func ExampleEnvironmentsClient_NewListMultiRoleUsagesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListMultiRoleUsagesPager("test-rg", "test-ase", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.UsageCollection = armappservice.UsageCollection{ - // Value: []*armappservice.Usage{ - // }, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_ListOperations.json -func ExampleEnvironmentsClient_ListOperations() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().ListOperations(ctx, "test-rg", "test-ase", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.OperationArray = []*armappservice.Operation{ - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetOutboundNetworkDependenciesEndpoints.json -func ExampleEnvironmentsClient_NewGetOutboundNetworkDependenciesEndpointsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewGetOutboundNetworkDependenciesEndpointsPager("Sample-WestUSResourceGroup", "SampleAse", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.OutboundEnvironmentEndpointCollection = armappservice.OutboundEnvironmentEndpointCollection{ - // Value: []*armappservice.OutboundEnvironmentEndpoint{ - // { - // Category: to.Ptr("Azure Storage"), - // Endpoints: []*armappservice.EndpointDependency{ - // { - // DomainName: to.Ptr("blob.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("52.183.104.36"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](42.0469), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("52.183.104.36"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](41.7038), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("queue.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("52.183.104.25"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](37.326), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("52.183.104.25"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](37.513600000000004), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("table.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("52.183.104.26"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](32.789), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("52.183.104.26"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](1.8702), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("file.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("52.183.104.28"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](36.7378), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("52.183.104.28"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](36.7108), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("blob.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.64"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](4.0261000000000005), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.64"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.8264), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("queue.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.73"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](40.8523), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.73"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](40.7501), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("table.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.74"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](1.2071), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.74"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](38.2975), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("file.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.76"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](59.383700000000005), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.76"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](60.0775), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("blob.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.64"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.5512), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.64"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.6777), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("queue.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.73"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.5204), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.73"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.8193), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("table.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.74"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.2720000000000002), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.74"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.0147), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("file.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.76"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.2387), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.76"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.2804), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("blob.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.66.176.16"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](43.025200000000005), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.66.176.16"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](43.1683), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("queue.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.66.176.25"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](41.8598), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.66.176.25"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](41.9805), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("table.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.66.176.26"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](30.542900000000003), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.66.176.26"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](0.9832000000000001), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("file.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.66.176.28"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](35.9562), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.66.176.28"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](36.0643), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("blob.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.64"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.2829), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.64"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.3393), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("queue.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.73"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.4103000000000003), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.73"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](4.1032), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("table.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.74"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.1141), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.74"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.0247), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("file.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.76"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.834), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.76"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.8198000000000003), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("blob.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.64"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](1.3855000000000002), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.64"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](1.0594000000000001), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("queue.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.73"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.4717000000000002), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.73"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.4827), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("table.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.74"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.395), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.74"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.1701), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("file.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.76"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](1.4308), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.76"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](22.5866), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("blob.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.64"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.5372), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.64"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.4626), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("queue.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.73"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.7873), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.73"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](4.1911000000000005), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("table.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.74"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.9162000000000003), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.74"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.7896), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("file.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.76"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](26.723100000000002), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.76"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](26.735200000000003), - // Port: to.Ptr[int32](443), - // }}, - // }}, - // }, - // { - // Category: to.Ptr("Azure SQL Database"), - // Endpoints: []*armappservice.EndpointDependency{ - // { - // DomainName: to.Ptr("database.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.66.226.202"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](1.5964), - // Port: to.Ptr[int32](1433), - // }}, - // }}, - // }, - // { - // Category: to.Ptr("Azure Management"), - // Endpoints: []*armappservice.EndpointDependency{ - // { - // DomainName: to.Ptr("management.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("23.102.135.246"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](46.5764), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("admin.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("23.102.135.247"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](47.408), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("management.azure.com"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("52.151.25.45"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.9529), - // Port: to.Ptr[int32](443), - // }}, - // }}, - // }, - // { - // Category: to.Ptr("Azure Active Directory"), - // Endpoints: []*armappservice.EndpointDependency{ - // { - // DomainName: to.Ptr("graph.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("20.190.133.83"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.2264), - // Port: to.Ptr[int32](443), - // }, - // { - // IPAddress: to.Ptr("20.190.133.81"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.2264), - // Port: to.Ptr[int32](443), - // }, - // { - // IPAddress: to.Ptr("20.190.133.67"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.2264), - // Port: to.Ptr[int32](443), - // }, - // { - // IPAddress: to.Ptr("40.126.5.34"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.2264), - // Port: to.Ptr[int32](443), - // }}, - // }}, - // }, - // { - // Category: to.Ptr("Regional Service"), - // Endpoints: []*armappservice.EndpointDependency{ - // { - // DomainName: to.Ptr("gr-prod-mwh.cloudapp.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.66.225.188"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.3826), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("az-prod.metrics.nsatc.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("40.77.24.27"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](38.5647), - // Port: to.Ptr[int32](443), - // }}, - // }}, - // }, - // { - // Category: to.Ptr("SSL Certificate Verification"), - // Endpoints: []*armappservice.EndpointDependency{ - // { - // DomainName: to.Ptr("ocsp.msocsp.com"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("104.18.25.243"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](6.0651), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("104.18.25.243"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](12.888), - // Port: to.Ptr[int32](443), - // }, - // { - // IPAddress: to.Ptr("104.18.24.243"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](6.0651), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("104.18.24.243"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](12.888), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("mscrl.microsoft.com"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("152.199.4.33"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](6.742900000000001), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("152.199.4.33"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](7.436100000000001), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("crl.microsoft.com"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("23.215.102.10"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](25.136200000000002), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("23.215.102.10"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](25.0085), - // Port: to.Ptr[int32](443), - // }, - // { - // IPAddress: to.Ptr("23.215.102.42"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](25.136200000000002), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("23.215.102.42"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](25.0085), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("www.microsoft.com"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("23.49.13.56"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](7.9229), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("23.49.13.56"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](8.4871), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("crl3.digicert.com"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("72.21.91.29"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](5.4074), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("72.21.91.29"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](5.577), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("ocsp.digicert.com"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("72.21.91.29"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](6.8989), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("72.21.91.29"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](5.667400000000001), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("cacerts.digicert.com"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("104.18.11.39"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](10.772400000000001), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("104.18.11.39"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](10.7705), - // Port: to.Ptr[int32](443), - // }, - // { - // IPAddress: to.Ptr("104.18.10.39"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](10.772400000000001), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("104.18.10.39"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](10.7705), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("www.thawte.com"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("54.69.98.161"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](47.532900000000005), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("54.69.98.161"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](48.5362), - // Port: to.Ptr[int32](443), - // }, - // { - // IPAddress: to.Ptr("35.167.62.148"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](47.532900000000005), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("35.167.62.148"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](48.5362), - // Port: to.Ptr[int32](443), - // }}, - // }}, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_GetPrivateEndpointConnectionList.json -func ExampleEnvironmentsClient_NewGetPrivateEndpointConnectionListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewGetPrivateEndpointConnectionListPager("test-rg", "test-ase", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.PrivateEndpointConnectionCollection = armappservice.PrivateEndpointConnectionCollection{ - // Value: []*armappservice.RemotePrivateEndpointConnectionARMResource{ - // { - // Name: to.Ptr("fa38656c-034e-43d8-adce-fe06ce039c98"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/privateEndpointConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/privateEndpointConnections/fa38656c-034e-43d8-adce-fe06ce039c98"), - // Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - // IPAddresses: []*string{ - // }, - // PrivateEndpoint: &armappservice.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/test-privateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - // Description: to.Ptr("Please approve my connection, thanks!"), - // ActionsRequired: to.Ptr("None"), - // Status: to.Ptr("Disconnecting"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_GetPrivateEndpointConnection.json -func ExampleEnvironmentsClient_GetPrivateEndpointConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().GetPrivateEndpointConnection(ctx, "test-rg", "test-ase", "fa38656c-034e-43d8-adce-fe06ce039c98", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RemotePrivateEndpointConnectionARMResource = armappservice.RemotePrivateEndpointConnectionARMResource{ - // Name: to.Ptr("fa38656c-034e-43d8-adce-fe06ce039c98"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/privateEndpointConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/privateEndpointConnections/fa38656c-034e-43d8-adce-fe06ce039c98"), - // Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - // IPAddresses: []*string{ - // }, - // PrivateEndpoint: &armappservice.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/test-privateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - // Description: to.Ptr("Please approve my connection, thanks!"), - // ActionsRequired: to.Ptr("None"), - // Status: to.Ptr("Disconnecting"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_ApproveOrRejectPrivateEndpointConnection.json -func ExampleEnvironmentsClient_BeginApproveOrRejectPrivateEndpointConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewEnvironmentsClient().BeginApproveOrRejectPrivateEndpointConnection(ctx, "test-rg", "test-ase", "fa38656c-034e-43d8-adce-fe06ce039c98", armappservice.PrivateLinkConnectionApprovalRequestResource{ - Properties: &armappservice.PrivateLinkConnectionApprovalRequest{ - PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - Description: to.Ptr("Approved by johndoe@company.com"), - Status: to.Ptr("Approved"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RemotePrivateEndpointConnectionARMResource = armappservice.RemotePrivateEndpointConnectionARMResource{ - // Name: to.Ptr("fa38656c-034e-43d8-adce-fe06ce039c98"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/privateEndpointConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/privateEndpointConnections/fa38656c-034e-43d8-adce-fe06ce039c98"), - // Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - // IPAddresses: []*string{ - // }, - // PrivateEndpoint: &armappservice.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/test-privateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - // Description: to.Ptr("Approved by johndoe@company.com"), - // ActionsRequired: to.Ptr("None"), - // Status: to.Ptr("Approved"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_DeletePrivateEndpointConnection.json -func ExampleEnvironmentsClient_BeginDeletePrivateEndpointConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewEnvironmentsClient().BeginDeletePrivateEndpointConnection(ctx, "test-rg", "test-ase", "fa38656c-034e-43d8-adce-fe06ce039c98", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Interface = map[string]any{ - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_GetPrivateLinkResources.json -func ExampleEnvironmentsClient_GetPrivateLinkResources() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().GetPrivateLinkResources(ctx, "test-rg", "test-ase", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.PrivateLinkResourcesWrapper = armappservice.PrivateLinkResourcesWrapper{ - // Value: []*armappservice.PrivateLinkResource{ - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_Reboot.json -func ExampleEnvironmentsClient_Reboot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewEnvironmentsClient().Reboot(ctx, "test-rg", "test-ase", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_Resume.json -func ExampleEnvironmentsClient_BeginResume() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewEnvironmentsClient().BeginResume(ctx, "test-rg", "test-ase", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - for res.More() { - page, err := res.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WebAppCollection = armappservice.WebAppCollection{ - // Value: []*armappservice.Site{ - // }, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_ListAppServicePlans.json -func ExampleEnvironmentsClient_NewListAppServicePlansPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListAppServicePlansPager("test-rg", "test-ase", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.PlanCollection = armappservice.PlanCollection{ - // Value: []*armappservice.Plan{ - // { - // Name: to.Ptr("test-asp"), - // Type: to.Ptr("Microsoft.Web/serverfarms"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/serverfarms/test-asp"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("Central US EUAP"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.PlanProperties{ - // ElasticScaleEnabled: to.Ptr(false), - // GeoRegion: to.Ptr("Central US EUAP"), - // HostingEnvironmentProfile: &armappservice.HostingEnvironmentProfile{ - // Name: to.Ptr("test-ase"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase"), - // }, - // HyperV: to.Ptr(false), - // IsSpot: to.Ptr(false), - // IsXenon: to.Ptr(false), - // MaximumElasticWorkerCount: to.Ptr[int32](0), - // MaximumNumberOfWorkers: to.Ptr[int32](100), - // NumberOfSites: to.Ptr[int32](0), - // PerSiteScaling: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("test-rg"), - // Status: to.Ptr(armappservice.StatusOptionsReady), - // Subscription: to.Ptr("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"), - // TargetWorkerCount: to.Ptr[int32](1), - // TargetWorkerSizeID: to.Ptr[int32](0), - // ZoneRedundant: to.Ptr(false), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("I1"), - // Capacity: to.Ptr[int32](0), - // Family: to.Ptr("I"), - // Size: to.Ptr("I1"), - // Tier: to.Ptr("Isolated"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_ListWebApps.json -func ExampleEnvironmentsClient_NewListWebAppsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListWebAppsPager("test-rg", "test-ase", &armappservice.EnvironmentsClientListWebAppsOptions{PropertiesToInclude: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WebAppCollection = armappservice.WebAppCollection{ - // Value: []*armappservice.Site{ - // { - // Name: to.Ptr("test-site"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-site"), - // Location: to.Ptr("Central US EUAP"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("2982A67AD520FBCD070650FC77814FB03B62927C6EFCA2F5FF3BF5DC60088845"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("test-site.test-ase.p.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("test-site.test-ase.p.azurewebsites.net"), - // to.Ptr("test-site.scm.test-ase.p.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("test-site.test-ase.p.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("test-site.scm.test-ase.p.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("test-site.test-ase.p.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HostingEnvironmentProfile: &armappservice.HostingEnvironmentProfile{ - // Name: to.Ptr("test-ase"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase"), - // }, - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-04-08T20:41:04.1233333"); return t}()), - // OutboundIPAddresses: to.Ptr("20.112.141.120"), - // PossibleOutboundIPAddresses: to.Ptr("20.112.141.120"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("test-site"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("test-rg"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/serverfarms/test-serverfarm"), - // SiteConfig: &armappservice.SiteConfig{ - // FunctionAppScaleLimit: to.Ptr[int32](0), - // LinuxFxVersion: to.Ptr(""), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NumberOfWorkers: to.Ptr[int32](1), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_Suspend.json -func ExampleEnvironmentsClient_BeginSuspend() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewEnvironmentsClient().BeginSuspend(ctx, "test-rg", "test-ase", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - for res.More() { - page, err := res.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WebAppCollection = armappservice.WebAppCollection{ - // Value: []*armappservice.Site{ - // }, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_ListUsages.json -func ExampleEnvironmentsClient_NewListUsagesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListUsagesPager("test-rg", "test-ase", &armappservice.EnvironmentsClientListUsagesOptions{Filter: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CsmUsageQuotaCollection = armappservice.CsmUsageQuotaCollection{ - // Value: []*armappservice.CsmUsageQuota{ - // { - // Name: &armappservice.LocalizableString{ - // LocalizedValue: to.Ptr("File System Storage"), - // Value: to.Ptr("FileSystemStorage"), - // }, - // CurrentValue: to.Ptr[int64](37888), - // Limit: to.Ptr[int64](1099511627776), - // NextResetTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "9999-12-31T23:59:59.9999999Z"); return t}()), - // Unit: to.Ptr("Bytes"), - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_ListWorkerPools.json -func ExampleEnvironmentsClient_NewListWorkerPoolsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListWorkerPoolsPager("test-rg", "test-ase", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WorkerPoolCollection = armappservice.WorkerPoolCollection{ - // Value: []*armappservice.WorkerPoolResource{ - // { - // Name: to.Ptr("workerPool1"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/workerPool1"), - // Kind: to.Ptr("ASEV1"), - // Properties: &armappservice.WorkerPool{ - // InstanceNames: []*string{ - // }, - // WorkerCount: to.Ptr[int32](2), - // WorkerSize: to.Ptr("Small"), - // WorkerSizeID: to.Ptr[int32](0), - // }, - // }, - // { - // Name: to.Ptr("workerPool2"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/workerPool2"), - // Kind: to.Ptr("ASEV1"), - // Properties: &armappservice.WorkerPool{ - // InstanceNames: []*string{ - // }, - // WorkerCount: to.Ptr[int32](0), - // WorkerSize: to.Ptr("Small"), - // WorkerSizeID: to.Ptr[int32](1), - // }, - // }, - // { - // Name: to.Ptr("workerPool3"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/workerPool3"), - // Kind: to.Ptr("ASEV1"), - // Properties: &armappservice.WorkerPool{ - // InstanceNames: []*string{ - // }, - // WorkerCount: to.Ptr[int32](0), - // WorkerSize: to.Ptr("Small"), - // WorkerSizeID: to.Ptr[int32](2), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_GetWorkerPool.json -func ExampleEnvironmentsClient_GetWorkerPool() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().GetWorkerPool(ctx, "test-rg", "test-ase", "workerPool1", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkerPoolResource = armappservice.WorkerPoolResource{ - // Name: to.Ptr("workerPool1"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/workerPool1"), - // Kind: to.Ptr("ASEV1"), - // Properties: &armappservice.WorkerPool{ - // InstanceNames: []*string{ - // }, - // WorkerCount: to.Ptr[int32](2), - // WorkerSize: to.Ptr("Small"), - // WorkerSizeID: to.Ptr[int32](0), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_CreateOrUpdateWorkerPool.json -func ExampleEnvironmentsClient_BeginCreateOrUpdateWorkerPool() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewEnvironmentsClient().BeginCreateOrUpdateWorkerPool(ctx, "test-rg", "test-ase", "0", armappservice.WorkerPoolResource{ - Properties: &armappservice.WorkerPool{ - WorkerCount: to.Ptr[int32](3), - WorkerSize: to.Ptr("Small"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkerPoolResource = armappservice.WorkerPoolResource{ - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_ListWorkerPoolInstanceMetricDefinitions.json -func ExampleEnvironmentsClient_NewListWorkerPoolInstanceMetricDefinitionsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListWorkerPoolInstanceMetricDefinitionsPager("test-rg", "test-ase", "0", "10.8.0.7", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ResourceMetricDefinitionCollection = armappservice.ResourceMetricDefinitionCollection{ - // Value: []*armappservice.ResourceMetricDefinition{ - // { - // Name: to.Ptr("CpuPercentage"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/0/metricDefinitions/CpuPercentage"), - // }, - // { - // Name: to.Ptr("MemoryPercentage"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/0/metricDefinitions/MemoryPercentage"), - // }, - // { - // Name: to.Ptr("DiskQueueLength"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/0/metricDefinitions/DiskQueueLength"), - // }, - // { - // Name: to.Ptr("HttpQueueLength"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/0/metricDefinitions/HttpQueueLength"), - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_ListWebWorkerMetricDefinitions.json -func ExampleEnvironmentsClient_NewListWebWorkerMetricDefinitionsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListWebWorkerMetricDefinitionsPager("test-rg", "test-ase", "0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ResourceMetricDefinitionCollection = armappservice.ResourceMetricDefinitionCollection{ - // Value: []*armappservice.ResourceMetricDefinition{ - // { - // Name: to.Ptr("CpuPercentage"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/0/metricDefinitions/CpuPercentage"), - // }, - // { - // Name: to.Ptr("MemoryPercentage"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/0/metricDefinitions/MemoryPercentage"), - // }, - // { - // Name: to.Ptr("DiskQueueLength"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/0/metricDefinitions/DiskQueueLength"), - // }, - // { - // Name: to.Ptr("HttpQueueLength"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/0/metricDefinitions/HttpQueueLength"), - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_ListWorkerPoolSkus.json -func ExampleEnvironmentsClient_NewListWorkerPoolSKUsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListWorkerPoolSKUsPager("test-rg", "test-ase", "workerPool1", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.SKUInfoCollection = armappservice.SKUInfoCollection{ - // Value: []*armappservice.SKUInfo{ - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](53), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("S1"), - // Tier: to.Ptr("Standard"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](53), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("S2"), - // Tier: to.Ptr("Standard"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](53), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("S3"), - // Tier: to.Ptr("Standard"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](53), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("S4"), - // Tier: to.Ptr("Standard"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](53), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("O1"), - // Tier: to.Ptr("Optimized"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AppServiceEnvironments_ListWebWorkerUsages.json -func ExampleEnvironmentsClient_NewListWebWorkerUsagesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListWebWorkerUsagesPager("test-rg", "test-ase", "0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.UsageCollection = armappservice.UsageCollection{ - // Value: []*armappservice.Usage{ - // }, - // } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/global_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/global_client_example_test.go deleted file mode 100644 index a7985e1f98ca..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/global_client_example_test.go +++ /dev/null @@ -1,99 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetDeletedWebApp.json -func ExampleGlobalClient_GetDeletedWebApp() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewGlobalClient().GetDeletedWebApp(ctx, "9", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DeletedSite = armappservice.DeletedSite{ - // Name: to.Ptr("wussite6"), - // Type: to.Ptr("Microsoft.Web/deletedSites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg1/providers/Microsoft.Web/locations/West US 2/deletedwebapps/wussite6"), - // Properties: &armappservice.DeletedSiteProperties{ - // DeletedSiteID: to.Ptr[int32](9), - // DeletedSiteName: to.Ptr("wussite6"), - // DeletedTimestamp: to.Ptr("2019-05-09T22:29:05.1337007"), - // GeoRegionName: to.Ptr("West US 2"), - // Kind: to.Ptr("app"), - // ResourceGroup: to.Ptr("rg1"), - // Slot: to.Ptr("Production"), - // Subscription: to.Ptr("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetDeletedWebAppSnapshots.json -func ExampleGlobalClient_GetDeletedWebAppSnapshots() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewGlobalClient().GetDeletedWebAppSnapshots(ctx, "9", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SnapshotArray = []*armappservice.Snapshot{ - // { - // Name: to.Ptr("wussite6"), - // Type: to.Ptr("Microsoft.Web/locations/deletedSites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg1/providers/Microsoft.Web/locations/West US 2/deletedwebapps/wussite6/snapshots/9"), - // Properties: &armappservice.SnapshotProperties{ - // Time: to.Ptr("2019-05-09T22:29:05.1337007"), - // }, - // }} -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetSubscriptionOperationWithAsyncResponse.json -func ExampleGlobalClient_GetSubscriptionOperationWithAsyncResponse() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewGlobalClient().GetSubscriptionOperationWithAsyncResponse(ctx, "West US", "34adfa4f-cedf-4dc0-ba29-b6d1a69ab5d5", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/go.mod b/sdk/resourcemanager/appservice/armappservice/go.mod index 8358b6589c98..cf8733bed511 100644 --- a/sdk/resourcemanager/appservice/armappservice/go.mod +++ b/sdk/resourcemanager/appservice/armappservice/go.mod @@ -2,20 +2,12 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappse go 1.18 -require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2 -) +require github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0 // indirect - github.com/golang-jwt/jwt/v4 v4.5.0 // indirect - github.com/google/uuid v1.3.0 // indirect - github.com/kylelemons/godebug v1.1.0 // indirect - github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect - golang.org/x/crypto v0.6.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect golang.org/x/net v0.7.0 // indirect - golang.org/x/sys v0.5.0 // indirect golang.org/x/text v0.7.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/appservice/armappservice/go.sum b/sdk/resourcemanager/appservice/armappservice/go.sum index 8ba445a8c4da..b6bd7eaad1ba 100644 --- a/sdk/resourcemanager/appservice/armappservice/go.sum +++ b/sdk/resourcemanager/appservice/armappservice/go.sum @@ -1,31 +1,15 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 h1:rTnT/Jrcm+figWlYz4Ixzt0SJVR2cMC8lvZcimipiEY= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0/go.mod h1:ON4tFdPTwRcgWEaVDrN3584Ef+b7GgSJaXxe5fW9t4M= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2 h1:uqM+VoHjVH6zdlkLF2b6O0ZANcHoj3rO0PoQ3jglUJA= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2/go.mod h1:twTKAa1E6hLmSDjLhaCkbTMQKc7p/rNLU40rLxGEOCI= github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 h1:leh5DwKv6Ihwi+h60uHtn6UWAxBbZ0q8DwQVMzf61zw= github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= -github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0 h1:UE9n9rkJF62ArLb1F3DEjRt8O3jLwMWdSoypKV4f3MU= -github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0/go.mod h1:kgDmCTgBzIEPFElEF+FK0SdjAor06dRq2Go927dnQ6o= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= -github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= -github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= -github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= -github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 h1:KoWmjvw+nsYOo29YJK9vDA65RGE3NrOnUtO7a+RF9HU= -github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= -golang.org/x/crypto v0.6.0 h1:qfktjS5LUO+fFKeJXZ+ikTRijMmljikvG68fpMMruSc= -golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/sys v0.0.0-20210616045830-e2b7044e8c71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= -golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client_example_test.go deleted file mode 100644 index d3bb5befbc4a..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client_example_test.go +++ /dev/null @@ -1,290 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/KubeEnvironments_ListBySubscription.json -func ExampleKubeEnvironmentsClient_NewListBySubscriptionPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewKubeEnvironmentsClient().NewListBySubscriptionPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.KubeEnvironmentCollection = armappservice.KubeEnvironmentCollection{ - // Value: []*armappservice.KubeEnvironment{ - // { - // Name: to.Ptr("jlaw-demo1"), - // Type: to.Ptr("Microsoft.Web/kubeEnvironments"), - // ID: to.Ptr("/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.Web/kubeEnvironments/jlaw-demo1"), - // Location: to.Ptr("North Central US"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.KubeEnvironmentProperties{ - // DefaultDomain: to.Ptr("jlaw-demo1.k4apps.io"), - // InternalLoadBalancerEnabled: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.KubeEnvironmentProvisioningStateSucceeded), - // StaticIP: to.Ptr("20.42.33.145"), - // }, - // }, - // { - // Name: to.Ptr("demo1"), - // Type: to.Ptr("Microsoft.Web/kubeEnvironments"), - // ID: to.Ptr("/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/DemoRG/providers/Microsoft.Web/kubeEnvironments/demo1"), - // Location: to.Ptr("North Central US"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.KubeEnvironmentProperties{ - // DefaultDomain: to.Ptr("demo1.k4apps.io"), - // InternalLoadBalancerEnabled: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.KubeEnvironmentProvisioningStateSucceeded), - // StaticIP: to.Ptr("52.142.21.61"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/KubeEnvironments_ListByResourceGroup.json -func ExampleKubeEnvironmentsClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewKubeEnvironmentsClient().NewListByResourceGroupPager("examplerg", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.KubeEnvironmentCollection = armappservice.KubeEnvironmentCollection{ - // Value: []*armappservice.KubeEnvironment{ - // { - // Name: to.Ptr("jlaw-demo1"), - // Type: to.Ptr("Microsoft.Web/kubeEnvironments"), - // ID: to.Ptr("/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.Web/kubeEnvironments/jlaw-demo1"), - // Location: to.Ptr("North Central US"), - // Tags: map[string]*string{ - // }, - // ExtendedLocation: &armappservice.ExtendedLocation{ - // Name: to.Ptr("/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation"), - // Type: to.Ptr("customLocation"), - // }, - // Properties: &armappservice.KubeEnvironmentProperties{ - // DefaultDomain: to.Ptr("jlaw-demo1.k4apps.io"), - // InternalLoadBalancerEnabled: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.KubeEnvironmentProvisioningStateSucceeded), - // StaticIP: to.Ptr("20.42.33.145"), - // }, - // }, - // { - // Name: to.Ptr("demo1"), - // Type: to.Ptr("Microsoft.Web/kubeEnvironments"), - // ID: to.Ptr("/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.Web/kubeEnvironments/demo1"), - // Location: to.Ptr("North Central US"), - // Tags: map[string]*string{ - // }, - // ExtendedLocation: &armappservice.ExtendedLocation{ - // Name: to.Ptr("/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation"), - // Type: to.Ptr("customLocation"), - // }, - // Properties: &armappservice.KubeEnvironmentProperties{ - // DefaultDomain: to.Ptr("demo1.k4apps.io"), - // InternalLoadBalancerEnabled: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.KubeEnvironmentProvisioningStateSucceeded), - // StaticIP: to.Ptr("52.142.21.61"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/KubeEnvironments_Get.json -func ExampleKubeEnvironmentsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewKubeEnvironmentsClient().Get(ctx, "examplerg", "jlaw-demo1", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.KubeEnvironment = armappservice.KubeEnvironment{ - // Name: to.Ptr("jlaw-demo1"), - // Type: to.Ptr("Microsoft.Web/kubeEnvironments"), - // ID: to.Ptr("/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.Web/kubeEnvironments/jlaw-demo1"), - // Location: to.Ptr("North Central US"), - // Tags: map[string]*string{ - // }, - // ExtendedLocation: &armappservice.ExtendedLocation{ - // Name: to.Ptr("/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation"), - // Type: to.Ptr("customLocation"), - // }, - // Properties: &armappservice.KubeEnvironmentProperties{ - // AksResourceID: to.Ptr("/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.ContainerService/managedClusters/jlaw-demo1"), - // DefaultDomain: to.Ptr("jlaw-demo1.k4apps.io"), - // InternalLoadBalancerEnabled: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.KubeEnvironmentProvisioningStateSucceeded), - // StaticIP: to.Ptr("20.42.33.145"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/KubeEnvironments_CreateOrUpdate.json -func ExampleKubeEnvironmentsClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewKubeEnvironmentsClient().BeginCreateOrUpdate(ctx, "examplerg", "testkubeenv", armappservice.KubeEnvironment{ - Location: to.Ptr("East US"), - Properties: &armappservice.KubeEnvironmentProperties{ - StaticIP: to.Ptr("1.2.3.4"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.KubeEnvironment = armappservice.KubeEnvironment{ - // Name: to.Ptr("testkubeenv"), - // Type: to.Ptr("Microsoft.Web/kubeEnvironments"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.Web/kubeEnvironments/testkubeenv"), - // Location: to.Ptr("East US"), - // Tags: map[string]*string{ - // }, - // ExtendedLocation: &armappservice.ExtendedLocation{ - // Name: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation"), - // Type: to.Ptr("customLocation"), - // }, - // Properties: &armappservice.KubeEnvironmentProperties{ - // AksResourceID: to.Ptr("test"), - // DefaultDomain: to.Ptr("testkubeenv.k4apps.io"), - // InternalLoadBalancerEnabled: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.KubeEnvironmentProvisioningStateSucceeded), - // StaticIP: to.Ptr("1.2.3.4"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/KubeEnvironments_Delete.json -func ExampleKubeEnvironmentsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewKubeEnvironmentsClient().BeginDelete(ctx, "examplerg", "examplekenv", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/KubeEnvironments_Update.json -func ExampleKubeEnvironmentsClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewKubeEnvironmentsClient().Update(ctx, "examplerg", "testkubeenv", armappservice.KubeEnvironmentPatchResource{ - Properties: &armappservice.KubeEnvironmentPatchResourceProperties{ - StaticIP: to.Ptr("1.2.3.4"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.KubeEnvironment = armappservice.KubeEnvironment{ - // Name: to.Ptr("testkubeenv"), - // Type: to.Ptr("Microsoft.Web/kubeEnvironments"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.Web/kubeEnvironments/testkubeenv"), - // Location: to.Ptr("East US"), - // Tags: map[string]*string{ - // }, - // ExtendedLocation: &armappservice.ExtendedLocation{ - // Name: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation"), - // Type: to.Ptr("customLocation"), - // }, - // Properties: &armappservice.KubeEnvironmentProperties{ - // AksResourceID: to.Ptr("test"), - // DefaultDomain: to.Ptr("testkubeenv.k4apps.io"), - // InternalLoadBalancerEnabled: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.KubeEnvironmentProvisioningStateSucceeded), - // StaticIP: to.Ptr("1.2.3.4"), - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/plans_client.go b/sdk/resourcemanager/appservice/armappservice/plans_client.go index 9f7fb5e04cb7..7fb4233ede4d 100644 --- a/sdk/resourcemanager/appservice/armappservice/plans_client.go +++ b/sdk/resourcemanager/appservice/armappservice/plans_client.go @@ -1567,10 +1567,10 @@ func (client *PlansClient) restartWebAppsCreateRequest(ctx context.Context, reso // Generated from API version 2022-09-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. -// - appServicePlan - Details of the App Service plan. +// - appServicePlanPatch - Details of the App Service plan. // - options - PlansClientUpdateOptions contains the optional parameters for the PlansClient.Update method. -func (client *PlansClient) Update(ctx context.Context, resourceGroupName string, name string, appServicePlan PlanPatchResource, options *PlansClientUpdateOptions) (PlansClientUpdateResponse, error) { - req, err := client.updateCreateRequest(ctx, resourceGroupName, name, appServicePlan, options) +func (client *PlansClient) Update(ctx context.Context, resourceGroupName string, name string, appServicePlanPatch PlanPatchResource, options *PlansClientUpdateOptions) (PlansClientUpdateResponse, error) { + req, err := client.updateCreateRequest(ctx, resourceGroupName, name, appServicePlanPatch, options) if err != nil { return PlansClientUpdateResponse{}, err } @@ -1585,7 +1585,7 @@ func (client *PlansClient) Update(ctx context.Context, resourceGroupName string, } // updateCreateRequest creates the Update request. -func (client *PlansClient) updateCreateRequest(ctx context.Context, resourceGroupName string, name string, appServicePlan PlanPatchResource, options *PlansClientUpdateOptions) (*policy.Request, error) { +func (client *PlansClient) updateCreateRequest(ctx context.Context, resourceGroupName string, name string, appServicePlanPatch PlanPatchResource, options *PlansClientUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1607,7 +1607,7 @@ func (client *PlansClient) updateCreateRequest(ctx context.Context, resourceGrou reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, appServicePlan) + return req, runtime.MarshalAsJSON(req, appServicePlanPatch) } // updateHandleResponse handles the Update response. diff --git a/sdk/resourcemanager/appservice/armappservice/plans_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/plans_client_example_test.go deleted file mode 100644 index 6eb13dcebef0..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/plans_client_example_test.go +++ /dev/null @@ -1,348 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListAppServicePlans.json -func ExamplePlansClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewPlansClient().NewListPager(&armappservice.PlansClientListOptions{Detailed: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.PlanCollection = armappservice.PlanCollection{ - // Value: []*armappservice.Plan{ - // { - // Name: to.Ptr("testsf6141"), - // Type: to.Ptr("Microsoft.Web/serverfarms"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.PlanProperties{ - // GeoRegion: to.Ptr("East US"), - // IsSpot: to.Ptr(false), - // MaximumNumberOfWorkers: to.Ptr[int32](20), - // NumberOfSites: to.Ptr[int32](4), - // NumberOfWorkers: to.Ptr[int32](19), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Reserved: to.Ptr(false), - // Status: to.Ptr(armappservice.StatusOptionsReady), - // TargetWorkerCount: to.Ptr[int32](0), - // TargetWorkerSizeID: to.Ptr[int32](0), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("P1"), - // Capacity: to.Ptr[int32](1), - // Family: to.Ptr("P"), - // Size: to.Ptr("P1"), - // Tier: to.Ptr("Premium"), - // }, - // }, - // { - // Name: to.Ptr("testsf7252"), - // Type: to.Ptr("Microsoft.Web/serverfarms"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf7252"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.PlanProperties{ - // GeoRegion: to.Ptr("East US"), - // IsSpot: to.Ptr(false), - // MaximumNumberOfWorkers: to.Ptr[int32](20), - // NumberOfSites: to.Ptr[int32](4), - // NumberOfWorkers: to.Ptr[int32](19), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Reserved: to.Ptr(false), - // Status: to.Ptr(armappservice.StatusOptionsReady), - // TargetWorkerCount: to.Ptr[int32](0), - // TargetWorkerSizeID: to.Ptr[int32](0), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("P1"), - // Capacity: to.Ptr[int32](1), - // Family: to.Ptr("P"), - // Size: to.Ptr("P1"), - // Tier: to.Ptr("Premium"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListAppServicePlansByResourceGroup.json -func ExamplePlansClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewPlansClient().NewListByResourceGroupPager("testrg123", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.PlanCollection = armappservice.PlanCollection{ - // Value: []*armappservice.Plan{ - // { - // Name: to.Ptr("testsf6141"), - // Type: to.Ptr("Microsoft.Web/serverfarms"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.PlanProperties{ - // GeoRegion: to.Ptr("East US"), - // IsSpot: to.Ptr(false), - // MaximumNumberOfWorkers: to.Ptr[int32](20), - // NumberOfSites: to.Ptr[int32](4), - // NumberOfWorkers: to.Ptr[int32](19), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Reserved: to.Ptr(false), - // Status: to.Ptr(armappservice.StatusOptionsReady), - // TargetWorkerCount: to.Ptr[int32](0), - // TargetWorkerSizeID: to.Ptr[int32](0), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("P1"), - // Capacity: to.Ptr[int32](1), - // Family: to.Ptr("P"), - // Size: to.Ptr("P1"), - // Tier: to.Ptr("Premium"), - // }, - // }, - // { - // Name: to.Ptr("testsf7252"), - // Type: to.Ptr("Microsoft.Web/serverfarms"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf7252"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.PlanProperties{ - // GeoRegion: to.Ptr("East US"), - // IsSpot: to.Ptr(false), - // MaximumNumberOfWorkers: to.Ptr[int32](20), - // NumberOfSites: to.Ptr[int32](4), - // NumberOfWorkers: to.Ptr[int32](19), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Reserved: to.Ptr(false), - // Status: to.Ptr(armappservice.StatusOptionsReady), - // TargetWorkerCount: to.Ptr[int32](0), - // TargetWorkerSizeID: to.Ptr[int32](0), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("P1"), - // Capacity: to.Ptr[int32](1), - // Family: to.Ptr("P"), - // Size: to.Ptr("P1"), - // Tier: to.Ptr("Premium"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetAppServicePlan.json -func ExamplePlansClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewPlansClient().Get(ctx, "testrg123", "testsf6141", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Plan = armappservice.Plan{ - // Name: to.Ptr("testsf6141"), - // Type: to.Ptr("Microsoft.Web/serverfarms"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.PlanProperties{ - // GeoRegion: to.Ptr("East US"), - // IsSpot: to.Ptr(false), - // MaximumNumberOfWorkers: to.Ptr[int32](20), - // NumberOfSites: to.Ptr[int32](4), - // NumberOfWorkers: to.Ptr[int32](19), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Reserved: to.Ptr(false), - // Status: to.Ptr(armappservice.StatusOptionsReady), - // TargetWorkerCount: to.Ptr[int32](0), - // TargetWorkerSizeID: to.Ptr[int32](0), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("P1"), - // Capacity: to.Ptr[int32](1), - // Family: to.Ptr("P"), - // Size: to.Ptr("P1"), - // Tier: to.Ptr("Premium"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/CreateOrUpdateAppServicePlan.json -func ExamplePlansClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewPlansClient().BeginCreateOrUpdate(ctx, "testrg123", "testsf6141", armappservice.Plan{ - Kind: to.Ptr("app"), - Location: to.Ptr("East US"), - Properties: &armappservice.PlanProperties{}, - SKU: &armappservice.SKUDescription{ - Name: to.Ptr("P1"), - Capacity: to.Ptr[int32](1), - Family: to.Ptr("P"), - Size: to.Ptr("P1"), - Tier: to.Ptr("Premium"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Plan = armappservice.Plan{ - // Name: to.Ptr("testsf6141"), - // Type: to.Ptr("Microsoft.Web/serverfarms"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.PlanProperties{ - // GeoRegion: to.Ptr("East US"), - // MaximumNumberOfWorkers: to.Ptr[int32](20), - // NumberOfSites: to.Ptr[int32](4), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Reserved: to.Ptr(false), - // Status: to.Ptr(armappservice.StatusOptionsReady), - // TargetWorkerCount: to.Ptr[int32](0), - // TargetWorkerSizeID: to.Ptr[int32](0), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("P1"), - // Capacity: to.Ptr[int32](1), - // Family: to.Ptr("P"), - // Size: to.Ptr("P1"), - // Tier: to.Ptr("Premium"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/DeleteAppServicePlan.json -func ExamplePlansClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewPlansClient().Delete(ctx, "testrg123", "testsf6141", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/PatchAppServicePlan.json -func ExamplePlansClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewPlansClient().Update(ctx, "testrg123", "testsf6141", armappservice.PlanPatchResource{ - Kind: to.Ptr("app"), - Properties: &armappservice.PlanPatchResourceProperties{}, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Plan = armappservice.Plan{ - // Name: to.Ptr("testsf6141"), - // Type: to.Ptr("Microsoft.Web/serverfarms"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.PlanProperties{ - // GeoRegion: to.Ptr("East US"), - // MaximumNumberOfWorkers: to.Ptr[int32](20), - // NumberOfSites: to.Ptr[int32](4), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Reserved: to.Ptr(false), - // Status: to.Ptr(armappservice.StatusOptionsReady), - // TargetWorkerCount: to.Ptr[int32](0), - // TargetWorkerSizeID: to.Ptr[int32](0), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("P1"), - // Capacity: to.Ptr[int32](1), - // Family: to.Ptr("P"), - // Size: to.Ptr("P1"), - // Tier: to.Ptr("Premium"), - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/provider_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/provider_client_example_test.go deleted file mode 100644 index 8519278178b4..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/provider_client_example_test.go +++ /dev/null @@ -1,13014 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetFunctionAppStacks.json -func ExampleProviderClient_NewGetFunctionAppStacksPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewProviderClient().NewGetFunctionAppStacksPager(&armappservice.ProviderClientGetFunctionAppStacksOptions{StackOsType: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.FunctionAppStackCollection = armappservice.FunctionAppStackCollection{ - // Value: []*armappservice.FunctionAppStack{ - // { - // Name: to.Ptr("dotnet"), - // Type: to.Ptr("Microsoft.Web/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/functionAppStacks/dotnet"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr(".NET"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 3"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 3.1"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("dotnet"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.1.301"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("dotnet|3.1"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("dotnet|3.1"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("dotnet"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.1.301"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("3.1"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("3.1"), - // }}, - // Value: to.Ptr("3"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 2"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 2.2"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("dotnet"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.2.207"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("dotnet|2.2"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("dotnet|2.2"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("dotnet"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.2.207"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("2.2"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2")}, - // }, - // }, - // Value: to.Ptr("2.2"), - // }}, - // Value: to.Ptr("2"), - // }, - // { - // DisplayText: to.Ptr(".NET Framework 4"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Framework 4.7"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("4.7"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~1")}, - // }, - // }, - // Value: to.Ptr("4.7"), - // }}, - // Value: to.Ptr("2"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("dotnet"), - // }, - // }, - // { - // Name: to.Ptr("node"), - // Type: to.Ptr("Microsoft.Web/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/functionAppStacks/node"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr("Node.js"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr("Node.js 14"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node.js 14 LTS"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("14.x"), - // }, - // IsHidden: to.Ptr(true), - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Node|14"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Node|14"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // "WEBSITE_NODE_DEFAULT_VERSION": to.Ptr("~14"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("14.x"), - // }, - // IsHidden: to.Ptr(true), - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~14"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("14 LTS"), - // }}, - // Value: to.Ptr("14"), - // }, - // { - // DisplayText: to.Ptr("Node.js 12"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node.js 12 LTS"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("12.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Node|12"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Node|12"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // "WEBSITE_NODE_DEFAULT_VERSION": to.Ptr("~12"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("12.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~12"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("12 LTS"), - // }}, - // Value: to.Ptr("12"), - // }, - // { - // DisplayText: to.Ptr("Node.js 10"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node.js 10 LTS"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Node|10"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Node|10"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // "WEBSITE_NODE_DEFAULT_VERSION": to.Ptr("~10"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~10"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("10 LTS"), - // }}, - // Value: to.Ptr("10"), - // }, - // { - // DisplayText: to.Ptr("Node.js 8"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node.js 8 LTS"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // "WEBSITE_NODE_DEFAULT_VERSION": to.Ptr("~8"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~8"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2")}, - // }, - // }, - // Value: to.Ptr("8 LTS"), - // }}, - // Value: to.Ptr("8"), - // }, - // { - // DisplayText: to.Ptr("Node.js 6"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node.js 6 LTS"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "WEBSITE_NODE_DEFAULT_VERSION": to.Ptr("~6"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~6"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~1")}, - // }, - // }, - // Value: to.Ptr("6 LTS"), - // }}, - // Value: to.Ptr("6"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("node"), - // }, - // }, - // { - // Name: to.Ptr("python"), - // Type: to.Ptr("Microsoft.Web/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/functionAppStacks/python"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr("Python"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr("Python 3"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Python 3.8"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("python"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Python|3.8"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Python|3.8"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("3.8"), - // }, - // { - // DisplayText: to.Ptr("Python 3.7"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("python"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.7"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Python|3.7"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Python|3.7"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("3.7"), - // }, - // { - // DisplayText: to.Ptr("Python 3.6"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("python"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.6"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Python|3.6"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Python|3.6"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("3.6"), - // }}, - // Value: to.Ptr("3"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("python"), - // }, - // }, - // { - // Name: to.Ptr("java"), - // Type: to.Ptr("Microsoft.Web/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/functionAppStacks/java"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr("Java"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr("Java 11"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java 11"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("java"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Java|11"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Java|11"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("java"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // JavaVersion: to.Ptr("11"), - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("11.0"), - // }}, - // Value: to.Ptr("11"), - // }, - // { - // DisplayText: to.Ptr("Java 8"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java 8"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("java"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsAutoUpdate: to.Ptr(true), - // IsDefault: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Java|8"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Java|8"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("java"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsAutoUpdate: to.Ptr(true), - // IsDefault: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // JavaVersion: to.Ptr("1.8"), - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("8.0"), - // }}, - // Value: to.Ptr("8"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("java"), - // }, - // }, - // { - // Name: to.Ptr("powershell"), - // Type: to.Ptr("Microsoft.Web/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/functionAppStacks/powershell"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr("PowerShell Core"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr("PowerShell 7"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("PowerShell 7.0"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("powershell"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~7"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // PowerShellVersion: to.Ptr("~7"), - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("7.0"), - // }}, - // Value: to.Ptr("7"), - // }, - // { - // DisplayText: to.Ptr("PowerShell Core 6"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("PowerShell Core 6.2"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("powershell"), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-04T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~6"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // PowerShellVersion: to.Ptr("~6"), - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("6.2"), - // }}, - // Value: to.Ptr("6"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("powershell"), - // }, - // }, - // { - // Name: to.Ptr("custom"), - // Type: to.Ptr("Microsoft.Web/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/functionAppStacks/custom"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr("Custom"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr("Custom"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Custom Handler"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("custom"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr(""), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3"), - // to.Ptr("~2")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("custom"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("custom"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3"), - // to.Ptr("~2")}, - // }, - // }, - // Value: to.Ptr("custom"), - // }}, - // Value: to.Ptr("custom"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("custom"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetFunctionAppStacksForLocation.json -func ExampleProviderClient_NewGetFunctionAppStacksForLocationPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewProviderClient().NewGetFunctionAppStacksForLocationPager("westus", &armappservice.ProviderClientGetFunctionAppStacksForLocationOptions{StackOsType: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.FunctionAppStackCollection = armappservice.FunctionAppStackCollection{ - // Value: []*armappservice.FunctionAppStack{ - // { - // Name: to.Ptr("dotnet"), - // Type: to.Ptr("Microsoft.Web/locations/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/functionAppStacks/dotnet"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr(".NET"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 3"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 3.1"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("dotnet"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.1.301"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("dotnet|3.1"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("dotnet|3.1"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("dotnet"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.1.301"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("3.1"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("3.1"), - // }}, - // Value: to.Ptr("3"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 2"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 2.2"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("dotnet"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.2.207"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("dotnet|2.2"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("dotnet|2.2"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("dotnet"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.2.207"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("2.2"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2")}, - // }, - // }, - // Value: to.Ptr("2.2"), - // }}, - // Value: to.Ptr("2"), - // }, - // { - // DisplayText: to.Ptr(".NET Framework 4"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Framework 4.7"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("4.7"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~1")}, - // }, - // }, - // Value: to.Ptr("4.7"), - // }}, - // Value: to.Ptr("2"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("dotnet"), - // }, - // }, - // { - // Name: to.Ptr("node"), - // Type: to.Ptr("Microsoft.Web/locations/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/functionAppStacks/node"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr("Node.js"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr("Node.js 14"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node.js 14 LTS"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("14.x"), - // }, - // IsHidden: to.Ptr(true), - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Node|14"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Node|14"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // "WEBSITE_NODE_DEFAULT_VERSION": to.Ptr("~14"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("14.x"), - // }, - // IsHidden: to.Ptr(true), - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~14"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("14 LTS"), - // }}, - // Value: to.Ptr("14"), - // }, - // { - // DisplayText: to.Ptr("Node.js 12"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node.js 12 LTS"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("12.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Node|12"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Node|12"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // "WEBSITE_NODE_DEFAULT_VERSION": to.Ptr("~12"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("12.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~12"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("12 LTS"), - // }}, - // Value: to.Ptr("12"), - // }, - // { - // DisplayText: to.Ptr("Node.js 10"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node.js 10 LTS"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Node|10"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Node|10"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // "WEBSITE_NODE_DEFAULT_VERSION": to.Ptr("~10"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~10"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("10 LTS"), - // }}, - // Value: to.Ptr("10"), - // }, - // { - // DisplayText: to.Ptr("Node.js 8"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node.js 8 LTS"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // "WEBSITE_NODE_DEFAULT_VERSION": to.Ptr("~8"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~8"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2")}, - // }, - // }, - // Value: to.Ptr("8 LTS"), - // }}, - // Value: to.Ptr("8"), - // }, - // { - // DisplayText: to.Ptr("Node.js 6"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node.js 6 LTS"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "WEBSITE_NODE_DEFAULT_VERSION": to.Ptr("~6"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~6"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~1")}, - // }, - // }, - // Value: to.Ptr("6 LTS"), - // }}, - // Value: to.Ptr("6"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("node"), - // }, - // }, - // { - // Name: to.Ptr("python"), - // Type: to.Ptr("Microsoft.Web/locations/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/functionAppStacks/python"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr("Python"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr("Python 3"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Python 3.8"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("python"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Python|3.8"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Python|3.8"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("3.8"), - // }, - // { - // DisplayText: to.Ptr("Python 3.7"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("python"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.7"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Python|3.7"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Python|3.7"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("3.7"), - // }, - // { - // DisplayText: to.Ptr("Python 3.6"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("python"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.6"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Python|3.6"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Python|3.6"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("3.6"), - // }}, - // Value: to.Ptr("3"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("python"), - // }, - // }, - // { - // Name: to.Ptr("java"), - // Type: to.Ptr("Microsoft.Web/locations/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/functionAppStacks/java"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr("Java"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr("Java 11"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java 11"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("java"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Java|11"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Java|11"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("java"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // JavaVersion: to.Ptr("11"), - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("11.0"), - // }}, - // Value: to.Ptr("11"), - // }, - // { - // DisplayText: to.Ptr("Java 8"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java 8"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("java"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsAutoUpdate: to.Ptr(true), - // IsDefault: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Java|8"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Java|8"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("java"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsAutoUpdate: to.Ptr(true), - // IsDefault: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // JavaVersion: to.Ptr("1.8"), - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("8.0"), - // }}, - // Value: to.Ptr("8"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("java"), - // }, - // }, - // { - // Name: to.Ptr("powershell"), - // Type: to.Ptr("Microsoft.Web/locations/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/functionAppStacks/powershell"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr("PowerShell Core"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr("PowerShell 7"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("PowerShell 7.0"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("powershell"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~7"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // PowerShellVersion: to.Ptr("~7"), - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("7.0"), - // }}, - // Value: to.Ptr("7"), - // }, - // { - // DisplayText: to.Ptr("PowerShell Core 6"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("PowerShell Core 6.2"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("powershell"), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-04T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~6"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // PowerShellVersion: to.Ptr("~6"), - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("6.2"), - // }}, - // Value: to.Ptr("6"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("powershell"), - // }, - // }, - // { - // Name: to.Ptr("custom"), - // Type: to.Ptr("Microsoft.Web/locations/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/functionAppStacks/custom"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr("Custom"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr("Custom"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Custom Handler"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("custom"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr(""), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3"), - // to.Ptr("~2")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("custom"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("custom"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3"), - // to.Ptr("~2")}, - // }, - // }, - // Value: to.Ptr("custom"), - // }}, - // Value: to.Ptr("custom"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("custom"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetWebAppStacksForLocation.json -func ExampleProviderClient_NewGetWebAppStacksForLocationPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewProviderClient().NewGetWebAppStacksForLocationPager("westus", &armappservice.ProviderClientGetWebAppStacksForLocationOptions{StackOsType: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WebAppStackCollection = armappservice.WebAppStackCollection{ - // Value: []*armappservice.WebAppStack{ - // { - // Name: to.Ptr("dotnet"), - // Type: to.Ptr("Microsoft.Web/locations/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/webAppStacks/dotnet"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr(".NET"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr(".NET 5"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET 5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("5.0.x"), - // }, - // IsEarlyAccess: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|5.0"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("5.0.x"), - // }, - // IsEarlyAccess: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("v5.0"), - // }, - // }, - // Value: to.Ptr("5"), - // }}, - // Value: to.Ptr("5"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 3"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 3.1 (LTS)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.1.301"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|3.1"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.1.301"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("3.1"), - // }, - // }, - // Value: to.Ptr("3.1"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 3.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-03T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.0.103"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|3.0"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-03T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.0.103"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("3.0"), - // }, - // }, - // Value: to.Ptr("3.0"), - // }}, - // Value: to.Ptr("3"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 2"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 2.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-23T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.2.207"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|2.2"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-23T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.2.207"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("2.2"), - // }, - // }, - // Value: to.Ptr("2.2"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 2.1 (LTS)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-21T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.1.807"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|2.1"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-21T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.1.807"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("2.1"), - // }, - // }, - // Value: to.Ptr("2.1"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 2.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.1.202"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|2.0"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.1.202"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("2.0"), - // }, - // }, - // Value: to.Ptr("2.0"), - // }}, - // Value: to.Ptr("dotnetcore2"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 1"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 1.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-27T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("1.1.14"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|1.1"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-27T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("1.1.14"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.1"), - // }, - // }, - // Value: to.Ptr("1.1"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 1.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-27T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("1.1.14"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|1.0"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-27T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("1.1.14"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.0"), - // }, - // }, - // Value: to.Ptr("1.0"), - // }}, - // Value: to.Ptr("1"), - // }, - // { - // DisplayText: to.Ptr("ASP.NET V4"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("ASP.NET V4.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.1"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("v4.0"), - // }, - // }, - // Value: to.Ptr("v4.8"), - // }}, - // Value: to.Ptr("v4"), - // }, - // { - // DisplayText: to.Ptr("ASP.NET V3"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("ASP.NET V3.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.1"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("v2.0"), - // }, - // }, - // Value: to.Ptr("v3.5"), - // }}, - // Value: to.Ptr("v3"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("dotnet"), - // }, - // }, - // { - // Name: to.Ptr("node"), - // Type: to.Ptr("Microsoft.Web/locations/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/webAppStacks/node"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("Node"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("Node LTS"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|lts"), - // }, - // }, - // Value: to.Ptr("lts"), - // }}, - // Value: to.Ptr("lts"), - // }, - // { - // DisplayText: to.Ptr("Node 14"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 14 LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("14.x"), - // }, - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|14-lts"), - // }, - // }, - // Value: to.Ptr("14-lts"), - // }}, - // Value: to.Ptr("14"), - // }, - // { - // DisplayText: to.Ptr("Node 12"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 12 LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("12.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|12-lts"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("12.13.0"), - // }, - // }, - // Value: to.Ptr("12-lts"), - // }, - // { - // DisplayText: to.Ptr("Node 12.9"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("12.x"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(true), - // RuntimeVersion: to.Ptr("NODE|12.9"), - // }, - // }, - // Value: to.Ptr("12.9"), - // }}, - // Value: to.Ptr("12"), - // }, - // { - // DisplayText: to.Ptr("Node 10"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 10 LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10-lts"), - // }, - // }, - // Value: to.Ptr("10-LTS"), - // }, - // { - // DisplayText: to.Ptr("Node 10.16"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.16"), - // }, - // }, - // Value: to.Ptr("10.16"), - // }, - // { - // DisplayText: to.Ptr("Node 10.15"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // IsHidden: to.Ptr(true), - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("10.15.2"), - // }, - // }, - // Value: to.Ptr("10.15"), - // }, - // { - // DisplayText: to.Ptr("Node 10.14"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.14"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("10.14.1"), - // }, - // }, - // Value: to.Ptr("10.14"), - // }, - // { - // DisplayText: to.Ptr("Node 10.12"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.12"), - // }, - // }, - // Value: to.Ptr("10.12"), - // }, - // { - // DisplayText: to.Ptr("Node 10.10"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.10"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("10.0.0"), - // }, - // }, - // Value: to.Ptr("10.10"), - // }, - // { - // DisplayText: to.Ptr("Node 10.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.6"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("10.6.0"), - // }, - // }, - // Value: to.Ptr("10.6"), - // }, - // { - // DisplayText: to.Ptr("Node 10.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.1"), - // }, - // }, - // Value: to.Ptr("10.1"), - // }}, - // Value: to.Ptr("10"), - // }, - // { - // DisplayText: to.Ptr("Node 9"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 9.4"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|9.4"), - // }, - // }, - // Value: to.Ptr("9.4"), - // }}, - // Value: to.Ptr("9"), - // }, - // { - // DisplayText: to.Ptr("Node 8"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 8 LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8-lts"), - // }, - // }, - // Value: to.Ptr("8-lts"), - // }, - // { - // DisplayText: to.Ptr("Node 8.12"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.12"), - // }, - // }, - // Value: to.Ptr("8.12"), - // }, - // { - // DisplayText: to.Ptr("Node 8.11"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.11"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.11"), - // }, - // }, - // Value: to.Ptr("8.11"), - // }, - // { - // DisplayText: to.Ptr("Node 8.10"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.10"), - // }, - // }, - // Value: to.Ptr("8.10"), - // }, - // { - // DisplayText: to.Ptr("Node 8.9"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.9"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.9"), - // }, - // }, - // Value: to.Ptr("8.9"), - // }, - // { - // DisplayText: to.Ptr("Node 8.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.8"), - // }, - // }, - // Value: to.Ptr("8.8"), - // }, - // { - // DisplayText: to.Ptr("Node 8.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.5"), - // }, - // }, - // Value: to.Ptr("8.5"), - // }, - // { - // DisplayText: to.Ptr("Node 8.4"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.4"), - // }, - // }, - // Value: to.Ptr("8.4"), - // }, - // { - // DisplayText: to.Ptr("Node 8.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.2"), - // }, - // }, - // Value: to.Ptr("8.2"), - // }, - // { - // DisplayText: to.Ptr("Node 8.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.1"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.1.4"), - // }, - // }, - // Value: to.Ptr("8.1"), - // }, - // { - // DisplayText: to.Ptr("Node 8.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.0"), - // }, - // }, - // Value: to.Ptr("8.0"), - // }}, - // Value: to.Ptr("8"), - // }, - // { - // DisplayText: to.Ptr("Node 7"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 7.10"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-07-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.10.1"), - // }, - // }, - // Value: to.Ptr("7.10"), - // }}, - // Value: to.Ptr("7"), - // }, - // { - // DisplayText: to.Ptr("Node 6"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 6 LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6-lts"), - // }, - // }, - // Value: to.Ptr("6-LTS"), - // }, - // { - // DisplayText: to.Ptr("Node 6.12"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("6.12"), - // }, - // }, - // Value: to.Ptr("6.12"), - // }, - // { - // DisplayText: to.Ptr("Node 6.11"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6.11"), - // }, - // }, - // Value: to.Ptr("6.11"), - // }, - // { - // DisplayText: to.Ptr("Node 6.10"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6.10"), - // }, - // }, - // Value: to.Ptr("6.10"), - // }, - // { - // DisplayText: to.Ptr("Node 6.9"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6.9"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("6.9.5"), - // }, - // }, - // Value: to.Ptr("6.9"), - // }, - // { - // DisplayText: to.Ptr("Node 6.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6.6"), - // }, - // }, - // Value: to.Ptr("6.6"), - // }, - // { - // DisplayText: to.Ptr("Node 6.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("6.5.0"), - // }, - // }, - // Value: to.Ptr("6.5"), - // }, - // { - // DisplayText: to.Ptr("Node 6.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6.2"), - // }, - // }, - // Value: to.Ptr("6.2"), - // }}, - // Value: to.Ptr("6"), - // }, - // { - // DisplayText: to.Ptr("Node 4"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 4.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|4.8"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("4.8"), - // }, - // }, - // Value: to.Ptr("4.8"), - // }, - // { - // DisplayText: to.Ptr("Node 4.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|4.5"), - // }, - // }, - // Value: to.Ptr("4.5"), - // }, - // { - // DisplayText: to.Ptr("Node 4.4"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|4.4"), - // }, - // }, - // Value: to.Ptr("4.4"), - // }}, - // Value: to.Ptr("4"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("node"), - // }, - // }, - // { - // Name: to.Ptr("python"), - // Type: to.Ptr("Microsoft.Web/locations/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/webAppStacks/python"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("Python"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("Python 3"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Python 3.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PYTHON|3.8"), - // }, - // }, - // Value: to.Ptr("3.8"), - // }, - // { - // DisplayText: to.Ptr("Python 3.7"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.7"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PYTHON|3.7"), - // }, - // }, - // Value: to.Ptr("3.7"), - // }, - // { - // DisplayText: to.Ptr("Python 3.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.6"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PYTHON|3.6"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.6"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("3.4.0"), - // }, - // }, - // Value: to.Ptr("3.6"), - // }}, - // Value: to.Ptr("3"), - // }, - // { - // DisplayText: to.Ptr("Python 2"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Python 2.7"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.7"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PYTHON|2.7"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.7"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("2.7.3"), - // }, - // }, - // Value: to.Ptr("2.7"), - // }}, - // Value: to.Ptr("2"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("python"), - // }, - // }, - // { - // Name: to.Ptr("php"), - // Type: to.Ptr("Microsoft.Web/locations/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/webAppStacks/php"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("PHP"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("PHP 7"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("PHP 7.4"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-28T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PHP|7.4"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-28T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.4"), - // }, - // }, - // Value: to.Ptr("7.4"), - // }, - // { - // DisplayText: to.Ptr("PHP 7.3"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-01-06T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PHP|7.3"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-01-06T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.3"), - // }, - // }, - // Value: to.Ptr("7.3"), - // }, - // { - // DisplayText: to.Ptr("PHP 7.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-12-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PHP|7.2"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-12-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.2"), - // }, - // }, - // Value: to.Ptr("7.2"), - // }, - // { - // DisplayText: to.Ptr("PHP 7.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.1"), - // }, - // }, - // Value: to.Ptr("7.1"), - // }, - // { - // DisplayText: to.Ptr("7.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PHP|7.0"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.0"), - // }, - // }, - // Value: to.Ptr("7.0"), - // }}, - // Value: to.Ptr("7"), - // }, - // { - // DisplayText: to.Ptr("PHP 5"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("PHP 5.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PHP|5.6"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("5.6"), - // }, - // }, - // Value: to.Ptr("5.6"), - // }}, - // Value: to.Ptr("5"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("php"), - // }, - // }, - // { - // Name: to.Ptr("ruby"), - // Type: to.Ptr("Microsoft.Web/locations/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/webAppStacks/ruby"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("Ruby"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("Ruby 2"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Ruby 2.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.6"), - // }, - // }, - // Value: to.Ptr("2.6"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.6.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.6.2"), - // }, - // }, - // Value: to.Ptr("2.6.2"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.5"), - // }, - // }, - // Value: to.Ptr("2.5"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.5.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.5.5"), - // }, - // }, - // Value: to.Ptr("2.5.5"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.4"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.4"), - // }, - // }, - // Value: to.Ptr("2.4"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.4.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.4.5"), - // }, - // }, - // Value: to.Ptr("2.4.5"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.3"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.3"), - // }, - // }, - // Value: to.Ptr("2.3"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.3.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.3.8"), - // }, - // }, - // Value: to.Ptr("2.3.8"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.3.3"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.3.3"), - // }, - // }, - // Value: to.Ptr("2.3.3"), - // }}, - // Value: to.Ptr("2"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("ruby"), - // }, - // }, - // { - // Name: to.Ptr("java"), - // Type: to.Ptr("Microsoft.Web/locations/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/webAppStacks/java"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("Java"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("Java 11"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java 11"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11"), - // }, - // }, - // Value: to.Ptr("11.0"), - // }, - // { - // DisplayText: to.Ptr("Java 11.0.7"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11.0.7"), - // }, - // }, - // Value: to.Ptr("11.0.7"), - // }, - // { - // DisplayText: to.Ptr("Java 11.0.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11.0.6"), - // }, - // }, - // Value: to.Ptr("11.0.6"), - // }, - // { - // DisplayText: to.Ptr("Java 11.0.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11.0.5_ZULU"), - // }, - // }, - // Value: to.Ptr("11.0.5"), - // }, - // { - // DisplayText: to.Ptr("Java 11.0.3"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11.0.3_ZULU"), - // }, - // }, - // Value: to.Ptr("11.0.3"), - // }, - // { - // DisplayText: to.Ptr("Java 11.0.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11.0.2_ZULU"), - // }, - // }, - // Value: to.Ptr("11.0.2"), - // }}, - // Value: to.Ptr("11"), - // }, - // { - // DisplayText: to.Ptr("Java 8"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java 8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8"), - // }, - // }, - // Value: to.Ptr("8.0"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_252"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_252"), - // }, - // }, - // Value: to.Ptr("8.0.252"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_242"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_242"), - // }, - // }, - // Value: to.Ptr("8.0.242"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_232"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_232_ZULU"), - // }, - // }, - // Value: to.Ptr("8.0.232"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_212"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_212_ZULU"), - // }, - // }, - // Value: to.Ptr("8.0.212"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_202"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_202_ZULU"), - // }, - // }, - // Value: to.Ptr("8.0.202"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_202 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_202"), - // }, - // }, - // Value: to.Ptr("8.0.202 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_181"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_181_ZULU"), - // }, - // }, - // Value: to.Ptr("8.0.181"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_181 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_181"), - // }, - // }, - // Value: to.Ptr("8.0.181 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_172"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_172_ZULU"), - // }, - // }, - // Value: to.Ptr("8.0.172"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_172 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_172"), - // }, - // }, - // Value: to.Ptr("8.0.172 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_144"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_144"), - // }, - // }, - // Value: to.Ptr("8.0.144"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_111 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_111"), - // }, - // }, - // Value: to.Ptr("8.0.111 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_102"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_102"), - // }, - // }, - // Value: to.Ptr("8.0.102"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_92"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_92"), - // }, - // }, - // Value: to.Ptr("8.0.92"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_73 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_73"), - // }, - // }, - // Value: to.Ptr("8.0.73 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_60 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_60"), - // }, - // }, - // Value: to.Ptr("8.0.60 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_25 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_25"), - // }, - // }, - // Value: to.Ptr("8.0.25 (Oracle)"), - // }}, - // Value: to.Ptr("8"), - // }, - // { - // DisplayText: to.Ptr("Java 7"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java 7"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsAutoUpdate: to.Ptr(true), - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7"), - // }, - // }, - // Value: to.Ptr("7.0"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_262"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_262_ZULU"), - // }, - // }, - // Value: to.Ptr("7.0.262"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_242"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_242_ZULU"), - // }, - // }, - // Value: to.Ptr("7.0.242"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_222"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_222_ZULU"), - // }, - // }, - // Value: to.Ptr("7.0.222"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_191"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_191_ZULU"), - // }, - // }, - // Value: to.Ptr("7.0.191"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_80 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_80"), - // }, - // }, - // Value: to.Ptr("7.0.80 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_71 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_71"), - // }, - // }, - // Value: to.Ptr("7.0.71 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_51 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_51"), - // }, - // }, - // Value: to.Ptr("7.0.51 (Oracle)"), - // }}, - // Value: to.Ptr("7"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("java"), - // }, - // }, - // { - // Name: to.Ptr("javacontainers"), - // Type: to.Ptr("Microsoft.Web/locations/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/webAppStacks/javacontainers"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("Java Containers"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("Java SE (Embedded Web Server)"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java SE (Embedded Web Server)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // Java11Runtime: to.Ptr("JAVA|11-java11"), - // Java8Runtime: to.Ptr("JAVA|8-jre8"), - // }, - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // JavaContainer: to.Ptr("JAVA"), - // JavaContainerVersion: to.Ptr("SE"), - // }, - // }, - // Value: to.Ptr("SE"), - // }, - // { - // DisplayText: to.Ptr("Java SE 11.0.7"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("JAVA|11.0.7"), - // }, - // }, - // Value: to.Ptr("11.0.7"), - // }, - // { - // DisplayText: to.Ptr("Java SE 11.0.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("JAVA|11.0.6"), - // }, - // }, - // Value: to.Ptr("11.0.6"), - // }, - // { - // DisplayText: to.Ptr("Java SE 11.0.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("JAVA|11.0.5"), - // }, - // }, - // Value: to.Ptr("11.0.5"), - // }, - // { - // DisplayText: to.Ptr("Java SE 8u252"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java8Runtime: to.Ptr("JAVA|8u252"), - // }, - // }, - // Value: to.Ptr("1.8.252"), - // }, - // { - // DisplayText: to.Ptr("Java SE 8u242"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java8Runtime: to.Ptr("JAVA|8u242"), - // }, - // }, - // Value: to.Ptr("1.8.242"), - // }, - // { - // DisplayText: to.Ptr("Java SE 8u232"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java8Runtime: to.Ptr("JAVA|8u232"), - // }, - // }, - // Value: to.Ptr("1.8.232"), - // }}, - // Value: to.Ptr("javase"), - // }, - // { - // DisplayText: to.Ptr("JBoss EAP"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("JBoss EAP 7.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsPreview: to.Ptr(true), - // Java8Runtime: to.Ptr("JBOSSEAP|7.2-java8"), - // }, - // }, - // Value: to.Ptr("7.2"), - // }}, - // Value: to.Ptr("jbosseap"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Tomcat 9.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // Java11Runtime: to.Ptr("TOMCAT|9.0-java11"), - // Java8Runtime: to.Ptr("TOMCAT|9.0-jre8"), - // }, - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0"), - // }, - // }, - // Value: to.Ptr("9.0"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.37"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|9.0.37-java11"), - // Java8Runtime: to.Ptr("TOMCAT|9.0.37-java8"), - // }, - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.37"), - // }, - // }, - // Value: to.Ptr("9.0.37"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.33"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|9.0.33-java11"), - // Java8Runtime: to.Ptr("TOMCAT|9.0.33-java8"), - // }, - // }, - // Value: to.Ptr("9.0.33"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.31"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.31"), - // }, - // }, - // Value: to.Ptr("9.0.31"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.27"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.27"), - // }, - // }, - // Value: to.Ptr("9.0.27"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.21"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.21"), - // }, - // }, - // Value: to.Ptr("9.0.21"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.20"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|9.0.20-java11"), - // Java8Runtime: to.Ptr("TOMCAT|9.0.20-java8"), - // }, - // }, - // Value: to.Ptr("9.0.20"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.14"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.14"), - // }, - // }, - // Value: to.Ptr("9.0.14"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.12"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.12"), - // }, - // }, - // Value: to.Ptr("9.0.12"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.8"), - // }, - // }, - // Value: to.Ptr("9.0.8"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.0"), - // }, - // }, - // Value: to.Ptr("9.0.0"), - // }}, - // Value: to.Ptr("tomcat9.0"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Tomcat 8.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // Java11Runtime: to.Ptr("TOMCAT|8.5-java11"), - // Java8Runtime: to.Ptr("TOMCAT|8.5-jre8"), - // }, - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5"), - // }, - // }, - // Value: to.Ptr("8.5"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.6"), - // }, - // }, - // Value: to.Ptr("8.5.6"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.57"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|8.5.57-java11"), - // Java8Runtime: to.Ptr("TOMCAT|8.5.57-java8"), - // }, - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.57"), - // }, - // }, - // Value: to.Ptr("8.5.57"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.53"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|8.5.53-java11"), - // Java8Runtime: to.Ptr("TOMCAT|8.5.53-java8"), - // }, - // }, - // Value: to.Ptr("8.5.53"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.51"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.51"), - // }, - // }, - // Value: to.Ptr("8.5.51"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.47"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.47"), - // }, - // }, - // Value: to.Ptr("8.5.47"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.42"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.42"), - // }, - // }, - // Value: to.Ptr("8.5.42"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.41"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|8.5.41-java11"), - // Java8Runtime: to.Ptr("TOMCAT|8.5.41-java8"), - // }, - // }, - // Value: to.Ptr("8.5.41"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.37"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.37"), - // }, - // }, - // Value: to.Ptr("8.5.37"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.34"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.34"), - // }, - // }, - // Value: to.Ptr("8.5.34"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.31"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.31"), - // }, - // }, - // Value: to.Ptr("8.5.31"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.20"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.20"), - // }, - // }, - // Value: to.Ptr("8.5.20"), - // }}, - // Value: to.Ptr("tomcat8.5"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.0"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Tomcat 8.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.0"), - // }, - // }, - // Value: to.Ptr("8.0"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.0.53"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.0.53"), - // }, - // }, - // Value: to.Ptr("8.0.53"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.0.46"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.0.46"), - // }, - // }, - // Value: to.Ptr("8.0.46"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.0.23"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.0.23"), - // }, - // }, - // Value: to.Ptr("8.0.23"), - // }}, - // Value: to.Ptr("tomcat8.0"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 7.0"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Tomcat 7.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("7.0"), - // }, - // }, - // Value: to.Ptr("7.0"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 7.0.94"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("7.0.94"), - // }, - // }, - // Value: to.Ptr("7.0.94"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 7.0.81"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("7.0.81"), - // }, - // }, - // Value: to.Ptr("7.0.81"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 7.0.62"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("7.0.62"), - // }, - // }, - // Value: to.Ptr("7.0.62"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 7.0.50"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("7.0.50"), - // }, - // }, - // Value: to.Ptr("7.0.50"), - // }}, - // Value: to.Ptr("tomcat7.0"), - // }, - // { - // DisplayText: to.Ptr("Jetty 9.3"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Jetty 9.3"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // IsDeprecated: to.Ptr(true), - // JavaContainer: to.Ptr("JETTY"), - // JavaContainerVersion: to.Ptr("9.3"), - // }, - // }, - // Value: to.Ptr("9.3"), - // }, - // { - // DisplayText: to.Ptr("Jetty 9.3.25"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsDeprecated: to.Ptr(true), - // JavaContainer: to.Ptr("JETTY"), - // JavaContainerVersion: to.Ptr("9.3.25"), - // }, - // }, - // Value: to.Ptr("9.3.25"), - // }, - // { - // DisplayText: to.Ptr("Jetty 9.3.13"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsDeprecated: to.Ptr(true), - // JavaContainer: to.Ptr("JETTY"), - // JavaContainerVersion: to.Ptr("9.3.13"), - // }, - // }, - // Value: to.Ptr("9.3.13"), - // }}, - // Value: to.Ptr("jetty9.3"), - // }, - // { - // DisplayText: to.Ptr("Jetty 9.1"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Jetty 9.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // IsDeprecated: to.Ptr(true), - // JavaContainer: to.Ptr("JETTY"), - // JavaContainerVersion: to.Ptr("9.1"), - // }, - // }, - // Value: to.Ptr("9.1"), - // }, - // { - // DisplayText: to.Ptr("Jetty 9.1.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsDeprecated: to.Ptr(true), - // JavaContainer: to.Ptr("JETTY"), - // JavaContainerVersion: to.Ptr("9.1.0"), - // }, - // }, - // Value: to.Ptr("9.1.0"), - // }}, - // Value: to.Ptr("jetty9.1"), - // }, - // { - // DisplayText: to.Ptr("WildFly 14"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("WildFly 14"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // IsDeprecated: to.Ptr(true), - // Java8Runtime: to.Ptr("WILDFLY|14-jre8"), - // }, - // }, - // Value: to.Ptr("14"), - // }, - // { - // DisplayText: to.Ptr("WildFly 14.0.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsDeprecated: to.Ptr(true), - // Java8Runtime: to.Ptr("WILDFLY|14.0.1-java8"), - // }, - // }, - // Value: to.Ptr("14.0.1"), - // }}, - // Value: to.Ptr("wildfly14"), - // }}, - // Value: to.Ptr("javacontainers"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListOperations.json -func ExampleProviderClient_NewListOperationsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewProviderClient().NewListOperationsPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CsmOperationCollection = armappservice.CsmOperationCollection{ - // Value: []*armappservice.CsmOperationDescription{ - // { - // Name: to.Ptr("Microsoft.Web/sites/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the properties of a Web App"), - // Operation: to.Ptr("Get Web App"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Create a new Web App or update an existing one"), - // Operation: to.Ptr("Create or Update Web App"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Create a new Web App Slot or update an existing one"), - // Operation: to.Ptr("Create or Update Web App Slot"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete an existing Web App"), - // Operation: to.Ptr("Delete Web App"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete an existing Web App Slot"), - // Operation: to.Ptr("Delete Web App Slot"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/config/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web App Slot's configuration settings"), - // Operation: to.Ptr("Get Web App Slot Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/config/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web App configuration settings"), - // Operation: to.Ptr("Get Web App Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/config/list/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Web App's security sensitive settings, such as publishing credentials, app settings and connection strings"), - // Operation: to.Ptr("List Web App Security Sensitive Settings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/config/list/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Web App Slot's security sensitive settings, such as publishing credentials, app settings and connection strings"), - // Operation: to.Ptr("List Web App Slot Security Sensitive Settings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/config/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web App's configuration settings"), - // Operation: to.Ptr("Update Web App Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/config/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web App Slot's configuration settings"), - // Operation: to.Ptr("Update Web App Slot Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/sourcecontrols/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web App's source control configuration settings"), - // Operation: to.Ptr("Get Web App Source Control Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/sourcecontrols/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web App Slot's source control configuration settings"), - // Operation: to.Ptr("Get Web App Slot Source Control Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/sourcecontrols/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web App's source control configuration settings"), - // Operation: to.Ptr("Update Web App Source Control Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/sourcecontrols/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web App Slot's source control configuration settings"), - // Operation: to.Ptr("Update Web App Slot Source Control Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/sourcecontrols/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web App's source control configuration settings"), - // Operation: to.Ptr("Delete Web App Source Control Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/sourcecontrols/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web App Slot's source control configuration settings"), - // Operation: to.Ptr("Delete Web App Slot Source Control Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/backup/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Create a new web app backup"), - // Operation: to.Ptr("Create Web App Backup"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/backup/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Create new Web App Slot backup."), - // Operation: to.Ptr("Create Web App Slot Backup"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/backups/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the properties of a web app's backup"), - // Operation: to.Ptr("Get Web App Backup"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/backups/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the properties of a web app slots' backup"), - // Operation: to.Ptr("List Web App Slot Backups"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/publishxml/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get publishing profile xml for a Web App"), - // Operation: to.Ptr("Get Web App Publishing Profile"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/publishxml/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get publishing profile xml for Web App Slot"), - // Operation: to.Ptr("Get Web App Slot Publishing Profile"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/publish/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Publish a Web App"), - // Operation: to.Ptr("Publish Web App"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/publish/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Publish a Web App Slot"), - // Operation: to.Ptr("Publish Web App Slot"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/restart/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Restart a Web App"), - // Operation: to.Ptr("Restart Web App"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/restart/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Restart a Web App Slot"), - // Operation: to.Ptr("Restart Web App Slot"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/start/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Start a Web App"), - // Operation: to.Ptr("Start Web App"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/start/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Start a Web App Slot"), - // Operation: to.Ptr("Start Web App Slot"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/stop/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Stop a Web App"), - // Operation: to.Ptr("Stop Web App"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/stop/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Stop a Web App Slot"), - // Operation: to.Ptr("Stop Web App Slot"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slotsswap/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Swap Web App deployment slots"), - // Operation: to.Ptr("Swap Web App Slots"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/slotsswap/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Swap Web App deployment slots"), - // Operation: to.Ptr("Swap Web App Slots"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slotsdiffs/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get differences in configuration between web app and slots"), - // Operation: to.Ptr("Get Web App Slots Differences"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/slotsdiffs/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get differences in configuration between web app and slots"), - // Operation: to.Ptr("Get Web App Slots Differences"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/applySlotConfig/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Apply web app slot configuration from target slot to the current web app"), - // Operation: to.Ptr("Apply Web App Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/applySlotConfig/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Apply web app slot configuration from target slot to the current slot."), - // Operation: to.Ptr("Apply Web App Slot Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/resetSlotConfig/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Reset web app configuration"), - // Operation: to.Ptr("Reset Web App Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/resetSlotConfig/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Reset web app slot configuration"), - // Operation: to.Ptr("Reset Web App Slot Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the properties of a Web App deployment slot"), - // Operation: to.Ptr("Get Web App Deployment Slot"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/serverfarms/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the properties on an App Service Plan"), - // Operation: to.Ptr("Get App Service Plan"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plan"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/serverfarms/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Create a new App Service Plan or update an existing one"), - // Operation: to.Ptr("Create or Update App Service Plan"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plan"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/serverfarms/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete an existing App Service Plan"), - // Operation: to.Ptr("Delete App Service Plan"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plan"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/serverfarms/restartSites/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Restart all Web Apps in an App Service Plan"), - // Operation: to.Ptr("Restart Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plan"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/certificates/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the list of certificates."), - // Operation: to.Ptr("Get Certificates"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Certificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/certificates/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Add a new certificate or update an existing one."), - // Operation: to.Ptr("Add or Update Certificate"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Certificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/certificates/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete an existing certificate."), - // Operation: to.Ptr("Delete Certificate"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Certificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/geoRegions/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the list of Geo regions."), - // Operation: to.Ptr("Get Geo Regions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Geo Region"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/listSitesAssignedToHostName/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get names of sites assigned to hostname."), - // Operation: to.Ptr("Get sites assigned to hostname"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Site Name"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/hostingEnvironments/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the properties of an App Service Environment"), - // Operation: to.Ptr("Get App Service Environment"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Environment"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/hostingEnvironments/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Create a new App Service Environment or update existing one"), - // Operation: to.Ptr("Create or Update App Service Environment"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Environment"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/hostingEnvironments/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete an App Service Environment"), - // Operation: to.Ptr("Delete App Service Environment"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Environment"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/hostingEnvironments/reboot/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Reboot all machines in an App Service Environment"), - // Operation: to.Ptr("Reboot an App Service Environment"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Environment"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the properties of a FrontEnd Pool in an App Service Environment"), - // Operation: to.Ptr("Get FrontEnd Pool"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Environment FrontEnd Pool"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Create a new FrontEnd Pool in an App Service Environment or update an existing one"), - // Operation: to.Ptr("Create or Update FrontEnd Pool"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Environment FrontEnd Pool"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the properties of a Worker Pool in an App Service Environment"), - // Operation: to.Ptr("Get Worker Pool"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Environment Worker Pool"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Create a new Worker Pool in an App Service Environment or update an existing one"), - // Operation: to.Ptr("Create or Update Worker Pool"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Environment Worker Pool"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/connections/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the list of Connections."), - // Operation: to.Ptr("Get Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/connections/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Creates or updates a Connection."), - // Operation: to.Ptr("Add or Update Connection"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/connections/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Deletes a Connection."), - // Operation: to.Ptr("Delete Connection"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/connections/Join/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Joins a Connection."), - // Operation: to.Ptr("Join Connection"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/connectionGateways/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the list of Connection Gateways."), - // Operation: to.Ptr("Get Connection Gateways"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connection Gateways"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/connectionGateways/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Creates or updates a Connection Gateway."), - // Operation: to.Ptr("Add or Update Connection Gateways"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connection Gateways"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/connectionGateways/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Deletes a Connection Gateway."), - // Operation: to.Ptr("Delete Connection Gateway"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connection Gateways"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/connectionGateways/Join/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Joins a Connection Gateway."), - // Operation: to.Ptr("Join Connection Gateway"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connection Gateways"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/recommendations/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the list of recommendations for subscriptions."), - // Operation: to.Ptr("Get recommendations"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Recommendation"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/recommendations/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the list of recommendations for web app."), - // Operation: to.Ptr("Get recommendations for web app"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Recommendation"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/availablestacks/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Available Stacks."), - // Operation: to.Ptr("Get Available Stacks"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Available Stacks"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/functionappstacks/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Function App Stacks."), - // Operation: to.Ptr("Get Function App Stacks"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Function App Stacks"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/webappstacks/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web App Stacks."), - // Operation: to.Ptr("Get Web App Stacks"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Stacks"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/checknameavailability/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Check if resource name is available."), - // Operation: to.Ptr("Get Check Name Availability"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Check Name Availability"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/classicmobileservices/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Classic Mobile Services."), - // Operation: to.Ptr("Get Classic Mobile Services"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Classic Mobile Services"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/connections/confirmconsentcode/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Confirm Connections Consent Code."), - // Operation: to.Ptr("Confirm Connections Consent Code"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/connections/listconsentlinks/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Consent Links for Connections."), - // Operation: to.Ptr("List Consent Links for Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/deploymentlocations/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Deployment Locations."), - // Operation: to.Ptr("Get Deployment Locations"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Deployment Locations"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/capacities/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments Capacities."), - // Operation: to.Ptr("Get Hosting Environments Capacities"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments Capacities"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/diagnostics/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments Diagnostics."), - // Operation: to.Ptr("Get Hosting Environments Diagnostics"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments Diagnostics"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/metricdefinitions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments Metric Definitions."), - // Operation: to.Ptr("Get Hosting Environments Metric Definitions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments Metric Definitions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/multirolepools/metricdefinitions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments MultiRole Pools Metric Definitions."), - // Operation: to.Ptr("Get Hosting Environments MultiRole Pools Metric Definitions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments MultiRole Pools Metric Definitions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/multirolepools/metrics/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments MultiRole Pools Metrics."), - // Operation: to.Ptr("Get Hosting Environments MultiRole Pools Metrics"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments MultiRole Pools Metrics"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/multirolepools/skus/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments MultiRole Pools SKUs."), - // Operation: to.Ptr("Get Hosting Environments MultiRole Pools SKUs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments MultiRole Pools SKUs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/multirolepools/usages/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments MultiRole Pools Usages."), - // Operation: to.Ptr("Get Hosting Environments MultiRole Pools Usages"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments MultiRole Pools Usages"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/operations/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments Operations."), - // Operation: to.Ptr("Get Hosting Environments Operations"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments Operations"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/resume/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Resume Hosting Environments."), - // Operation: to.Ptr("Resume Hosting Environments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/serverfarms/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments App Service Plans."), - // Operation: to.Ptr("Get Hosting Environments App Service Plans"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments App Service Plans"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/sites/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments Web Apps."), - // Operation: to.Ptr("Get Hosting Environments Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/suspend/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Suspend Hosting Environments."), - // Operation: to.Ptr("Suspend Hosting Environments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/usages/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments Usages."), - // Operation: to.Ptr("Get Hosting Environments Usages"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments Usages"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/workerpools/metricdefinitions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments Workerpools Metric Definitions."), - // Operation: to.Ptr("Get Hosting Environments Workerpools Metric Definitions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments Workerpools Metric Definitions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/workerpools/metrics/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments Workerpools Metrics."), - // Operation: to.Ptr("Get Hosting Environments Workerpools Metrics"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments Workerpools Metrics"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/workerpools/skus/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments Workerpools SKUs."), - // Operation: to.Ptr("Get Hosting Environments Workerpools SKUs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments Workerpools SKUs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/workerpools/usages/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments Workerpools Usages."), - // Operation: to.Ptr("Get Hosting Environments Workerpools Usages"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments Workerpools Usages"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/ishostingenvironmentnameavailable/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get if Hosting Environment Name is available."), - // Operation: to.Ptr("Check if Hosting Environment Name is available"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environment Name"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/ishostnameavailable/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Check if Hostname is Available."), - // Operation: to.Ptr("Check if Hostname is Available"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hostname"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/isusernameavailable/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Check if Username is available."), - // Operation: to.Ptr("Check if Username is available"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Username"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/locations/apioperations/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Locations API Operations."), - // Operation: to.Ptr("Get Locations API Operations"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Locations API Operations"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/locations/connectiongatewayinstallations/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Locations Connection Gateway Installations."), - // Operation: to.Ptr("Get Locations Connection Gateway Installations"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Locations Connection Gateway Installations"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/locations/functionappstacks/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Locations Function App Stacks."), - // Operation: to.Ptr("Get Locations Function App Stacks"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Locations Function App Stacks"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/locations/webappstacks/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Locations Web App Stacks."), - // Operation: to.Ptr("Get Locations Web App Stacks"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Locations Web App Stacks"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/locations/managedapis/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Locations Managed APIs."), - // Operation: to.Ptr("Get Locations Managed APIs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Locations Managed APIs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/operations/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Operations."), - // Operation: to.Ptr("Get Operations"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Operations"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/publishingusers/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Publishing Users."), - // Operation: to.Ptr("Get Publishing Users"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Publishing Users"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/publishingusers/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Publishing Users."), - // Operation: to.Ptr("Update Publishing Users"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Publishing Users"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/capabilities/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Capabilities."), - // Operation: to.Ptr("Get App Service Plans Capabilities"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Capabilities"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/firstpartyapps/settings/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete App Service Plans First Party Apps Settings."), - // Operation: to.Ptr("Delete App Service Plans First Party Apps Settings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans First Party Apps Settings"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/firstpartyapps/settings/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans First Party Apps Settings."), - // Operation: to.Ptr("Get App Service Plans First Party Apps Settings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans First Party Apps Settings"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/firstpartyapps/settings/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update App Service Plans First Party Apps Settings."), - // Operation: to.Ptr("Update App Service Plans First Party Apps Settings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans First Party Apps Settings"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/hybridconnectionnamespaces/relays/sites/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Hybrid Connection Namespaces Relays Web Apps."), - // Operation: to.Ptr("Get App Service Plans Hybrid Connection Namespaces Relays Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Hybrid Connection Namespaces Relays Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/hybridconnectionplanlimits/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Hybrid Connection Plan Limits."), - // Operation: to.Ptr("Get App Service Plans Hybrid Connection Plan Limits"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Hybrid Connection Plan Limits"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/hybridconnectionrelays/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Hybrid Connection Relays."), - // Operation: to.Ptr("Get App Service Plans Hybrid Connection Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Hybrid Connection Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/metricdefinitions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Metric Definitions."), - // Operation: to.Ptr("Get App Service Plans Metric Definitions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Metric Definitions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/metrics/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Metrics."), - // Operation: to.Ptr("Get App Service Plans Metrics"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Metrics"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/operationresults/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Operation Results."), - // Operation: to.Ptr("Get App Service Plans Operation Results"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Operation Results"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/sites/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Web Apps."), - // Operation: to.Ptr("Get App Service Plans Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/skus/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans SKUs."), - // Operation: to.Ptr("Get App Service Plans SKUs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans SKUs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/usages/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Usages."), - // Operation: to.Ptr("Get App Service Plans Usages"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Usages"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/virtualnetworkconnections/gateways/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update App Service Plans Virtual Network Connections Gateways."), - // Operation: to.Ptr("Update App Service Plans Virtual Network Connections Gateways"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Virtual Network Connections Gateways"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/virtualnetworkconnections/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Virtual Network Connections."), - // Operation: to.Ptr("Get App Service Plans Virtual Network Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Virtual Network Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/virtualnetworkconnections/routes/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete App Service Plans Virtual Network Connections Routes."), - // Operation: to.Ptr("Delete App Service Plans Virtual Network Connections Routes"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Virtual Network Connections Routes"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/virtualnetworkconnections/routes/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Virtual Network Connections Routes."), - // Operation: to.Ptr("Get App Service Plans Virtual Network Connections Routes"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Virtual Network Connections Routes"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/virtualnetworkconnections/routes/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update App Service Plans Virtual Network Connections Routes."), - // Operation: to.Ptr("Update App Service Plans Virtual Network Connections Routes"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Virtual Network Connections Routes"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/workers/reboot/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Reboot App Service Plans Workers."), - // Operation: to.Ptr("Reboot App Service Plans Workers"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Workers"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/analyzecustomhostname/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Analyze Custom Hostname."), - // Operation: to.Ptr("Analyze Custom Hostname"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Custom Hostname"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/backup/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Backup."), - // Operation: to.Ptr("Get Web Apps Backup"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Backup"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/backup/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Backup."), - // Operation: to.Ptr("Update Web Apps Backup"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Backup"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/backups/list/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Web Apps Backups."), - // Operation: to.Ptr("List Web Apps Backups"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Backups"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/backups/restore/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Restore Web Apps Backups."), - // Operation: to.Ptr("Restore Web Apps Backups"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Backups"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/config/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Config."), - // Operation: to.Ptr("Delete Web Apps Config"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Config"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/continuouswebjobs/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Continuous Web Jobs."), - // Operation: to.Ptr("Delete Web Apps Continuous Web Jobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Continuous Web Jobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/continuouswebjobs/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Continuous Web Jobs."), - // Operation: to.Ptr("Get Web Apps Continuous Web Jobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Continuous Web Jobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/continuouswebjobs/start/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Start Web Apps Continuous Web Jobs."), - // Operation: to.Ptr("Start Web Apps Continuous Web Jobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Continuous Web Jobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/continuouswebjobs/stop/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Stop Web Apps Continuous Web Jobs."), - // Operation: to.Ptr("Stop Web Apps Continuous Web Jobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Continuous Web Jobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/deployments/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Deployments."), - // Operation: to.Ptr("Delete Web Apps Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/deployments/log/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Deployments Log."), - // Operation: to.Ptr("Get Web Apps Deployments Log"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Deployments Log"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/deployments/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Deployments."), - // Operation: to.Ptr("Get Web Apps Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/deployments/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Deployments."), - // Operation: to.Ptr("Update Web Apps Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/frebanalysis/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics FREB Analysis."), - // Operation: to.Ptr("Get Web Apps Diagnostics FREB Analysis"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics FREB Analysis"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/frebanalysis/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics FREB Analysis."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics FREB Analysis"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics FREB Analysis"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Categories."), - // Operation: to.Ptr("Get Web Apps Diagnostics Category"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Category"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/runtimeavailability/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Runtime Availability."), - // Operation: to.Ptr("Get Web Apps Diagnostics Runtime Availability"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Runtime Availability"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/servicehealth/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Service Health."), - // Operation: to.Ptr("Get Web Apps Diagnostics Service Health"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Service Health"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/workeravailability/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Workeravailability."), - // Operation: to.Ptr("Get Web Apps Diagnostics Workeravailability"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Workeravailability"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/workeravailability/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Workeravailability."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Workeravailability"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Workeravailability"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/workerprocessrecycle/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Worker Process Recycle."), - // Operation: to.Ptr("Get Web Apps Diagnostics Worker Process Recycle"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Worker Process Recycle"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/workerprocessrecycle/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Worker Process Recycle."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Worker Process Recycle"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Worker Process Recycle"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/aspnetcore/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics for ASP.NET Core app."), - // Operation: to.Ptr("Get Web Apps Diagnostics ASP.NET Core"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics ASP.NET Core"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/aspnetcore/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics for ASP.NET Core app."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics ASP.NET Core"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics ASP.NET Core"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/domainownershipidentifiers/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Domain Ownership Identifiers."), - // Operation: to.Ptr("Get Web Apps Domain Ownership Identifiers"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Domain Ownership Identifiers"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/domainownershipidentifiers/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Domain Ownership Identifiers."), - // Operation: to.Ptr("Update Web Apps Domain Ownership Identifiers"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Domain Ownership Identifiers"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/functions/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Functions Web Apps."), - // Operation: to.Ptr("Functions Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/functions/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Functions."), - // Operation: to.Ptr("Delete Web Apps Functions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Functions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/functions/listsecrets/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Secrets Web Apps Functions."), - // Operation: to.Ptr("List Secrets Web Apps Functions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Functions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/functions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Functions."), - // Operation: to.Ptr("Get Web Apps Functions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Functions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/functions/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Functions."), - // Operation: to.Ptr("Update Web Apps Functions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Functions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hostnamebindings/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Hostname Bindings."), - // Operation: to.Ptr("Delete Web Apps Hostname Bindings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hostname Bindings"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hostnamebindings/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Hostname Bindings."), - // Operation: to.Ptr("Get Web Apps Hostname Bindings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hostname Bindings"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hostnamebindings/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Hostname Bindings."), - // Operation: to.Ptr("Update Web Apps Hostname Bindings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hostname Bindings"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hybridconnection/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Hybrid Connection."), - // Operation: to.Ptr("Delete Web Apps Hybrid Connection"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hybrid Connection"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hybridconnection/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Hybrid Connection."), - // Operation: to.Ptr("Get Web Apps Hybrid Connection"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hybrid Connection"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hybridconnection/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Hybrid Connection."), - // Operation: to.Ptr("Update Web Apps Hybrid Connection"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hybrid Connection"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hybridconnectionrelays/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Hybrid Connection Relays."), - // Operation: to.Ptr("Get Web Apps Hybrid Connection Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hybrid Connection Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/instances/deployments/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Instances Deployments."), - // Operation: to.Ptr("Get Web Apps Instances Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Instances Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/instances/processes/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Instances Processes."), - // Operation: to.Ptr("Delete Web Apps Instances Processes"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Instances Processes"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/instances/processes/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Instances Processes."), - // Operation: to.Ptr("Get Web Apps Instances Processes"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Instances Processes"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/instances/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Instances."), - // Operation: to.Ptr("Get Web Apps Instances"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Instances"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/listsyncfunctiontriggerstatus/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Sync Function Trigger Status Web Apps."), - // Operation: to.Ptr("List Sync Function Trigger Status Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/metricdefinitions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Metric Definitions."), - // Operation: to.Ptr("Get Web Apps Metric Definitions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Metric Definitions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/metrics/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Metrics."), - // Operation: to.Ptr("Get Web Apps Metrics"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Metrics"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/networktrace/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Network Trace Web Apps."), - // Operation: to.Ptr("Network Trace Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/newpassword/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Newpassword Web Apps."), - // Operation: to.Ptr("Newpassword Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/operationresults/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Operation Results."), - // Operation: to.Ptr("Get Web Apps Operation Results"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Operation Results"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/perfcounters/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Performance Counters."), - // Operation: to.Ptr("Get Web Apps Performance Counters"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Performance Counters"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/premieraddons/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Premier Addons."), - // Operation: to.Ptr("Delete Web Apps Premier Addons"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Premier Addons"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/premieraddons/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Premier Addons."), - // Operation: to.Ptr("Get Web Apps Premier Addons"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Premier Addons"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/premieraddons/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Premier Addons."), - // Operation: to.Ptr("Update Web Apps Premier Addons"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Premier Addons"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/publishxml/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Publishing XML."), - // Operation: to.Ptr("Get Web Apps Publishing XML"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Publishing XML"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/recommendationhistory/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Recommendation History."), - // Operation: to.Ptr("Get Web Apps Recommendation History"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Recommendation History"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/recommendations/disable/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Disable Web Apps Recommendations."), - // Operation: to.Ptr("Disable Web Apps Recommendations"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Recommendations"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/restore/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Restore."), - // Operation: to.Ptr("Get Web Apps Restore"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Restore"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/analyzecustomhostname/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Analyze Custom Hostname."), - // Operation: to.Ptr("Get Web Apps Slots Analyze Custom Hostname"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Analyze Custom Hostname"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/backup/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Slots Backup."), - // Operation: to.Ptr("Update Web Apps Slots Backup"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Backup"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/backups/list/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Web Apps Slots Backups."), - // Operation: to.Ptr("List Web Apps Slots Backups"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Backups"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/backups/restore/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Restore Web Apps Slots Backups."), - // Operation: to.Ptr("Restore Web Apps Slots Backups"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Backups"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/config/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Config."), - // Operation: to.Ptr("Delete Web Apps Slots Config"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Config"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/continuouswebjobs/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Continuous Web Jobs."), - // Operation: to.Ptr("Delete Web Apps Slots Continuous Web Jobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Continuous Web Jobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/continuouswebjobs/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Continuous Web Jobs."), - // Operation: to.Ptr("Get Web Apps Slots Continuous Web Jobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Continuous Web Jobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/continuouswebjobs/start/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Start Web Apps Slots Continuous Web Jobs."), - // Operation: to.Ptr("Start Web Apps Slots Continuous Web Jobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Continuous Web Jobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/continuouswebjobs/stop/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Stop Web Apps Slots Continuous Web Jobs."), - // Operation: to.Ptr("Stop Web Apps Slots Continuous Web Jobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Continuous Web Jobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/deployments/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Deployments."), - // Operation: to.Ptr("Delete Web Apps Slots Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/deployments/log/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Deployments Log."), - // Operation: to.Ptr("Get Web Apps Slots Deployments Log"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Deployments Log"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/deployments/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Deployments."), - // Operation: to.Ptr("Get Web Apps Slots Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/deployments/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Slots Deployments."), - // Operation: to.Ptr("Update Web Apps Slots Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/hostnamebindings/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Hostname Bindings."), - // Operation: to.Ptr("Delete Web Apps Slots Hostname Bindings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Hostname Bindings"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/hostnamebindings/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Hostname Bindings."), - // Operation: to.Ptr("Get Web Apps Slots Hostname Bindings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Hostname Bindings"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/hostnamebindings/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Slots Hostname Bindings."), - // Operation: to.Ptr("Update Web Apps Slots Hostname Bindings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Hostname Bindings"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/hybridconnection/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Hybrid Connection."), - // Operation: to.Ptr("Delete Web Apps Slots Hybrid Connection"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Hybrid Connection"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/hybridconnection/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Hybrid Connection."), - // Operation: to.Ptr("Get Web Apps Slots Hybrid Connection"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Hybrid Connection"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/hybridconnection/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Slots Hybrid Connection."), - // Operation: to.Ptr("Update Web Apps Slots Hybrid Connection"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Hybrid Connection"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/instances/deployments/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Instances Deployments."), - // Operation: to.Ptr("Get Web Apps Slots Instances Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Instances Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/instances/processes/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Instances Processes."), - // Operation: to.Ptr("Get Web Apps Slots Instances Processes"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Instances Processes"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/instances/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Instances."), - // Operation: to.Ptr("Get Web Apps Slots Instances"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Instances"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/metricdefinitions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Metric Definitions."), - // Operation: to.Ptr("Get Web Apps Slots Metric Definitions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Metric Definitions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/metrics/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Metrics."), - // Operation: to.Ptr("Get Web Apps Slots Metrics"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Metrics"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/newpassword/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Newpassword Web Apps Slots."), - // Operation: to.Ptr("Newpassword Web Apps Slots"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/operationresults/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Operation Results."), - // Operation: to.Ptr("Get Web Apps Slots Operation Results"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Operation Results"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/phplogging/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Phplogging."), - // Operation: to.Ptr("Get Web Apps Slots Phplogging"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Phplogging"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/premieraddons/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Premier Addons."), - // Operation: to.Ptr("Delete Web Apps Slots Premier Addons"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Premier Addons"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/premieraddons/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Premier Addons."), - // Operation: to.Ptr("Get Web Apps Slots Premier Addons"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Premier Addons"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/premieraddons/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Slots Premier Addons."), - // Operation: to.Ptr("Update Web Apps Slots Premier Addons"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Premier Addons"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/restore/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Restore."), - // Operation: to.Ptr("Get Web Apps Slots Restore"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Restore"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/sync/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Sync Web Apps Slots."), - // Operation: to.Ptr("Sync Web Apps Slots"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/triggeredwebjobs/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Triggered WebJobs."), - // Operation: to.Ptr("Delete Web Apps Slots Triggered WebJobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Triggered WebJobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/triggeredwebjobs/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Triggered WebJobs."), - // Operation: to.Ptr("Get Web Apps Slots Triggered WebJobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Triggered WebJobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/triggeredwebjobs/run/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Run Web Apps Slots Triggered WebJobs."), - // Operation: to.Ptr("Run Web Apps Slots Triggered WebJobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Triggered WebJobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/usages/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Usages."), - // Operation: to.Ptr("Get Web Apps Slots Usages"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Usages"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/virtualnetworkconnections/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Virtual Network Connections."), - // Operation: to.Ptr("Delete Web Apps Slots Virtual Network Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Virtual Network Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/virtualnetworkconnections/gateways/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Slots Virtual Network Connections Gateways."), - // Operation: to.Ptr("Update Web Apps Slots Virtual Network Connections Gateways"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Virtual Network Connections Gateways"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/virtualnetworkconnections/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Virtual Network Connections."), - // Operation: to.Ptr("Get Web Apps Slots Virtual Network Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Virtual Network Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/virtualnetworkconnections/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Slots Virtual Network Connections."), - // Operation: to.Ptr("Update Web Apps Slots Virtual Network Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Virtual Network Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/webjobs/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots WebJobs."), - // Operation: to.Ptr("Get Web Apps Slots WebJobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots WebJobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/snapshots/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Snapshots."), - // Operation: to.Ptr("Get Web Apps Snapshots"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Snapshots"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/sync/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Sync Web Apps."), - // Operation: to.Ptr("Sync Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/triggeredwebjobs/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Triggered WebJobs."), - // Operation: to.Ptr("Delete Web Apps Triggered WebJobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Triggered WebJobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/triggeredwebjobs/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Triggered WebJobs."), - // Operation: to.Ptr("Get Web Apps Triggered WebJobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Triggered WebJobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/triggeredwebjobs/run/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Run Web Apps Triggered WebJobs."), - // Operation: to.Ptr("Run Web Apps Triggered WebJobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Triggered WebJobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/usages/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Usages."), - // Operation: to.Ptr("Get Web Apps Usages"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Usages"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/virtualnetworkconnections/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Virtual Network Connections."), - // Operation: to.Ptr("Delete Web Apps Virtual Network Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Virtual Network Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/virtualnetworkconnections/gateways/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Virtual Network Connections Gateways."), - // Operation: to.Ptr("Get Web Apps Virtual Network Connections Gateways"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Virtual Network Connections Gateways"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/virtualnetworkconnections/gateways/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Virtual Network Connections Gateways."), - // Operation: to.Ptr("Update Web Apps Virtual Network Connections Gateways"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Virtual Network Connections Gateways"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/virtualnetworkconnections/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Virtual Network Connections."), - // Operation: to.Ptr("Get Web Apps Virtual Network Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Virtual Network Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/virtualnetworkconnections/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Virtual Network Connections."), - // Operation: to.Ptr("Update Web Apps Virtual Network Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Virtual Network Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/webjobs/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps WebJobs."), - // Operation: to.Ptr("Get Web Apps WebJobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps WebJobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/skus/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get SKUs."), - // Operation: to.Ptr("Get SKUs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("SKUs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sourcecontrols/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Source Controls."), - // Operation: to.Ptr("Get Source Controls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Source Controls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sourcecontrols/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Source Controls."), - // Operation: to.Ptr("Update Source Controls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Source Controls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/unregister/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Unregister Microsoft.Web resource provider for the subscription."), - // Operation: to.Ptr("Unregister Microsoft.Web resource provider"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Microsoft.Web resource provider"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/validate/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Validate ."), - // Operation: to.Ptr("Validate "), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr(""), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/register/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Register Microsoft.Web resource provider for the subscription."), - // Operation: to.Ptr("Register Microsoft.Web resource provider"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Microsoft.Web resource provider"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/hybridconnectionnamespaces/relays/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Hybrid Connection Namespaces Relays."), - // Operation: to.Ptr("Get App Service Plans Hybrid Connection Namespaces Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Hybrid Connection Namespaces Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/backups/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Backups."), - // Operation: to.Ptr("Delete Web Apps Backups"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Backups"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hybridconnectionnamespaces/relays/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Hybrid Connection Namespaces Relays."), - // Operation: to.Ptr("Delete Web Apps Hybrid Connection Namespaces Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hybrid Connection Namespaces Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hybridconnectionnamespaces/relays/listkeys/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Keys Web Apps Hybrid Connection Namespaces Relays."), - // Operation: to.Ptr("List Keys Web Apps Hybrid Connection Namespaces Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hybrid Connection Namespaces Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hybridconnectionnamespaces/relays/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Hybrid Connection Namespaces Relays."), - // Operation: to.Ptr("Update Web Apps Hybrid Connection Namespaces Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hybrid Connection Namespaces Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/metricsdefinitions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Metrics Definitions."), - // Operation: to.Ptr("Get Web Apps Metrics Definitions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Metrics Definitions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/migratemysql/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Migrate MySql Web Apps."), - // Operation: to.Ptr("Migrate MySql Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/migratemysql/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Migrate MySql."), - // Operation: to.Ptr("Get Web Apps Migrate MySql"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Migrate MySql"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/recover/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Recover Web Apps."), - // Operation: to.Ptr("Recover Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/siteextensions/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Site Extensions."), - // Operation: to.Ptr("Delete Web Apps Site Extensions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Site Extensions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/siteextensions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Site Extensions."), - // Operation: to.Ptr("Get Web Apps Site Extensions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Site Extensions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/siteextensions/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Site Extensions."), - // Operation: to.Ptr("Update Web Apps Site Extensions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Site Extensions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/backup/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Backup."), - // Operation: to.Ptr("Get Web Apps Slots Backup"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Backup"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/hybridconnectionrelays/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Hybrid Connection Relays."), - // Operation: to.Ptr("Get Web Apps Slots Hybrid Connection Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Hybrid Connection Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/siteextensions/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Site Extensions."), - // Operation: to.Ptr("Delete Web Apps Slots Site Extensions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Site Extensions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/siteextensions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Site Extensions."), - // Operation: to.Ptr("Get Web Apps Slots Site Extensions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Site Extensions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/siteextensions/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Slots Site Extensions."), - // Operation: to.Ptr("Update Web Apps Slots Site Extensions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Site Extensions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/snapshots/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Snapshots."), - // Operation: to.Ptr("Get Web Apps Slots Snapshots"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Snapshots"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/syncfunctiontriggers/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Sync Function Triggers for Web Apps."), - // Operation: to.Ptr("Sync Function Triggers for Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/triggeredwebjobs/history/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Triggered WebJobs History."), - // Operation: to.Ptr("Get Web Apps Triggered WebJobs History"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Triggered WebJobs History"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/connectiongateways/liststatus/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Status Connection Gateways."), - // Operation: to.Ptr("List Status Connection Gateways"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connection Gateways"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/hybridconnectionnamespaces/relays/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete App Service Plans Hybrid Connection Namespaces Relays."), - // Operation: to.Ptr("Delete App Service Plans Hybrid Connection Namespaces Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Hybrid Connection Namespaces Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/deployment/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Deployment."), - // Operation: to.Ptr("Get Web Apps Diagnostics Deployment"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Deployment"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/sitecpuanalysis/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Site CPU Analysis."), - // Operation: to.Ptr("Get Web Apps Diagnostics Site CPU Analysis"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Site CPU Analysis"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/sitelatency/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Site Latency."), - // Operation: to.Ptr("Get Web Apps Diagnostics Site Latency"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Site Latency"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/sitememoryanalysis/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Site Memory Analysis."), - // Operation: to.Ptr("Get Web Apps Diagnostics Site Memory Analysis"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Site Memory Analysis"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/threadcount/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Thread Count."), - // Operation: to.Ptr("Get Web Apps Diagnostics Thread Count"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Thread Count"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/deployment/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Deployment."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Deployment"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Deployment"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/sitecpuanalysis/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Site CPU Analysis."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Site CPU Analysis"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Site CPU Analysis"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/sitelatency/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Site Latency."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Site Latency"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Site Latency"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/sitememoryanalysis/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Site Memory Analysis."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Site Memory Analysis"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Site Memory Analysis"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/threadcount/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Thread Count."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Thread Count"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Thread Count"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/functions/masterkey/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Functions Masterkey."), - // Operation: to.Ptr("Get Web Apps Functions Masterkey"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Functions Masterkey"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hybridconnectionnamespaces/relays/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Hybrid Connection Namespaces Relays."), - // Operation: to.Ptr("Get Web Apps Hybrid Connection Namespaces Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hybrid Connection Namespaces Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/instances/extensions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Instances Extensions."), - // Operation: to.Ptr("Get Web Apps Instances Extensions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Instances Extensions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/operations/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Operations."), - // Operation: to.Ptr("Get Web Apps Operations"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Operations"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/resourcehealthmetadata/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Resource Health Metadata."), - // Operation: to.Ptr("Get Web Apps Resource Health Metadata"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Resource Health Metadata"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/backups/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Backups."), - // Operation: to.Ptr("Delete Web Apps Slots Backups"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Backups"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/domainownershipidentifiers/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Domain Ownership Identifiers."), - // Operation: to.Ptr("Get Web Apps Slots Domain Ownership Identifiers"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Domain Ownership Identifiers"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/hybridconnectionnamespaces/relays/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Hybrid Connection Namespaces Relays."), - // Operation: to.Ptr("Delete Web Apps Slots Hybrid Connection Namespaces Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Hybrid Connection Namespaces Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/hybridconnectionnamespaces/relays/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Slots Hybrid Connection Namespaces Relays."), - // Operation: to.Ptr("Update Web Apps Slots Hybrid Connection Namespaces Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Hybrid Connection Namespaces Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/operations/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Operations."), - // Operation: to.Ptr("Get Web Apps Slots Operations"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Operations"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/perfcounters/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Performance Counters."), - // Operation: to.Ptr("Get Web Apps Slots Performance Counters"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Performance Counters"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/resourcehealthmetadata/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Resource Health Metadata."), - // Operation: to.Ptr("Get Web Apps Slots Resource Health Metadata"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Resource Health Metadata"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apiacls/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Api Management Accounts Apiacls."), - // Operation: to.Ptr("Get Api Management Accounts Apiacls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts Apiacls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connections/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Api Management Accounts APIs Connections."), - // Operation: to.Ptr("Get Api Management Accounts APIs Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Api Management Accounts APIs."), - // Operation: to.Ptr("Get Api Management Accounts APIs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/connectionacls/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Api Management Accounts Connectionacls."), - // Operation: to.Ptr("Get Api Management Accounts Connectionacls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts Connectionacls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/apiacls/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Api Management Accounts APIs Apiacls."), - // Operation: to.Ptr("Delete Api Management Accounts APIs Apiacls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Apiacls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/apiacls/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Api Management Accounts APIs Apiacls."), - // Operation: to.Ptr("Get Api Management Accounts APIs Apiacls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Apiacls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/apiacls/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Api Management Accounts APIs Apiacls."), - // Operation: to.Ptr("Update Api Management Accounts APIs Apiacls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Apiacls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connectionacls/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Api Management Accounts APIs Connectionacls."), - // Operation: to.Ptr("Get Api Management Accounts APIs Connectionacls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connectionacls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connections/confirmconsentcode/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Confirm Consent Code Api Management Accounts APIs Connections."), - // Operation: to.Ptr("Confirm Consent Code Api Management Accounts APIs Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connections/connectionacls/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Api Management Accounts APIs Connections Connectionacls."), - // Operation: to.Ptr("Delete Api Management Accounts APIs Connections Connectionacls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connections Connectionacls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connections/connectionacls/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Api Management Accounts APIs Connections Connectionacls."), - // Operation: to.Ptr("Get Api Management Accounts APIs Connections Connectionacls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connections Connectionacls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connections/connectionacls/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Api Management Accounts APIs Connections Connectionacls."), - // Operation: to.Ptr("Update Api Management Accounts APIs Connections Connectionacls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connections Connectionacls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connections/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Api Management Accounts APIs Connections."), - // Operation: to.Ptr("Delete Api Management Accounts APIs Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connections/getconsentlinks/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Consent Links for Api Management Accounts APIs Connections."), - // Operation: to.Ptr("Get Consent Links for Api Management Accounts APIs Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connections/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Api Management Accounts APIs Connections."), - // Operation: to.Ptr("Update Api Management Accounts APIs Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Api Management Accounts APIs."), - // Operation: to.Ptr("Delete Api Management Accounts APIs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/localizeddefinitions/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Api Management Accounts APIs Localized Definitions."), - // Operation: to.Ptr("Delete Api Management Accounts APIs Localized Definitions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Localized Definitions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/localizeddefinitions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Api Management Accounts APIs Localized Definitions."), - // Operation: to.Ptr("Get Api Management Accounts APIs Localized Definitions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Localized Definitions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/localizeddefinitions/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Api Management Accounts APIs Localized Definitions."), - // Operation: to.Ptr("Update Api Management Accounts APIs Localized Definitions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Localized Definitions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Api Management Accounts APIs."), - // Operation: to.Ptr("Update Api Management Accounts APIs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connections/listconnectionkeys/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Connection Keys Api Management Accounts APIs Connections."), - // Operation: to.Ptr("List Connection Keys Api Management Accounts APIs Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connections/listsecrets/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Secrets Api Management Accounts APIs Connections."), - // Operation: to.Ptr("List Secrets Api Management Accounts APIs Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/deployments/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Deployments."), - // Operation: to.Ptr("Get Web Apps Diagnostics Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/deployments/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Deployments."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/loganalyzer/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Log Analyzer."), - // Operation: to.Ptr("Get Web Apps Diagnostics Log Analyzer"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Log Analyzer"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/loganalyzer/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Log Analyzer."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Log Analyzer"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Log Analyzer"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/sitecrashes/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Site Crashes."), - // Operation: to.Ptr("Get Web Apps Diagnostics Site Crashes"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Site Crashes"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/sitecrashes/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Site Crashes."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Site Crashes"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Site Crashes"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/siterestartsettingupdate/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Site Restart Setting Update."), - // Operation: to.Ptr("Get Web Apps Diagnostics Site Restart Setting Update"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Site Restart Setting Update"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/siterestartsettingupdate/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Site Restart Setting Update."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Site Restart Setting Update"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Site Restart Setting Update"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/siterestartuserinitiated/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Site Restart User Initiated."), - // Operation: to.Ptr("Get Web Apps Diagnostics Site Restart User Initiated"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Site Restart User Initiated"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/siterestartuserinitiated/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Site Restart User Initiated."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Site Restart User Initiated"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Site Restart User Initiated"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/siteswap/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Site Swap."), - // Operation: to.Ptr("Get Web Apps Diagnostics Site Swap"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Site Swap"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/siteswap/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Site Swap."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Site Swap"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Site Swap"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/functions/token/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Functions Token."), - // Operation: to.Ptr("Get Web Apps Functions Token"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Functions Token"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/instances/deployments/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Instances Deployments."), - // Operation: to.Ptr("Delete Web Apps Instances Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Instances Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/processes/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Processes."), - // Operation: to.Ptr("Get Web Apps Processes"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Processes"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/publiccertificates/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Public Certificates."), - // Operation: to.Ptr("Delete Web Apps Public Certificates"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Public Certificates"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/publiccertificates/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Public Certificates."), - // Operation: to.Ptr("Get Web Apps Public Certificates"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Public Certificates"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/publiccertificates/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Public Certificates."), - // Operation: to.Ptr("Update Web Apps Public Certificates"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Public Certificates"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/networktrace/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Network Trace Web Apps Slots."), - // Operation: to.Ptr("Network Trace Web Apps Slots"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/autoheal/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Autoheal."), - // Operation: to.Ptr("Get Web Apps Diagnostics Autoheal"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Autoheal"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/autoheal/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Autoheal."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Autoheal"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Autoheal"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/runtimeavailability/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Runtime Availability."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Runtime Availability"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Runtime Availability"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/servicehealth/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Service Health."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Service Health"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Service Health"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/sitelatency/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Site Latency."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Site Latency"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Site Latency"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/migratemysql/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Migrate MySql."), - // Operation: to.Ptr("Get Web Apps Slots Migrate MySql"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Migrate MySql"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/providers/Microsoft.Insights/diagnosticSettings/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Gets the diagnostic setting for the resource"), - // Operation: to.Ptr("Read diagnostic setting"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Diagnostic setting for Web App"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/providers/Microsoft.Insights/diagnosticSettings/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Creates or updates the diagnostic setting for the resource"), - // Operation: to.Ptr("Write diagnostic setting"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Diagnostic setting for Web App"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/providers/Microsoft.Insights/diagnosticSettings/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Gets the diagnostic setting for the resource"), - // Operation: to.Ptr("Read diagnostic setting"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Diagnostic setting for Web App slot"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/providers/Microsoft.Insights/diagnosticSettings/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Creates or updates the diagnostic setting for the resource"), - // Operation: to.Ptr("Write diagnostic setting"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Diagnostic setting for Web App slot"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/providers/Microsoft.Insights/diagnosticSettings/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Gets the diagnostic setting for the resource"), - // Operation: to.Ptr("Read diagnostic setting"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Diagnostic setting for App Service plan"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/providers/Microsoft.Insights/diagnosticSettings/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Creates or updates the diagnostic setting for the resource"), - // Operation: to.Ptr("Write diagnostic setting"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Diagnostic setting for App Service plan"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/providers/Microsoft.Insights/diagnosticSettings/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Gets the diagnostic setting for the resource"), - // Operation: to.Ptr("Read diagnostic setting"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Diagnostic setting for App Service Environment"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/providers/Microsoft.Insights/diagnosticSettings/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Creates or updates the diagnostic setting for the resource"), - // Operation: to.Ptr("Write diagnostic setting"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Diagnostic setting for App Service Environment"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("microsoft.web/billingmeters/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get list of billing meters."), - // Operation: to.Ptr("Read billing meters"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Billing meters for Microsoft Web Apps"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/instances/processes/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Instances Processes."), - // Operation: to.Ptr("Delete Web Apps Slots Instances Processes"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Instances Processes"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/restore/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Restore Web Apps."), - // Operation: to.Ptr("Restore Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/instances/extensions/log/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Instances Extensions Log."), - // Operation: to.Ptr("Get Web Apps Instances Extensions Log"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Instances Extensions Log"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/customapis/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Custom APIs."), - // Operation: to.Ptr("Update Custom APIs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Custom APIs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/customapis/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Custom APIs."), - // Operation: to.Ptr("Get Custom APIs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Custom APIs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/failedrequestsperuri/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Failed Requests Per Uri."), - // Operation: to.Ptr("Get Web Apps Diagnostics Failed Requests Per Uri"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Failed Requests Per Uri"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/restore/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Restore Web Apps Slots."), - // Operation: to.Ptr("Restore Web Apps Slots"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/detectors/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Detector."), - // Operation: to.Ptr("Get Web Apps Diagnostics Detector"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Detector"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/analyses/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Analysis."), - // Operation: to.Ptr("Get Web Apps Diagnostics Analysis"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Analysis"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/analyses/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Analysis."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Analysis"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Analysis"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/detectors/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Detector."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Detector"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Detector"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/analyses/execute/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Run Web Apps Diagnostics Analysis."), - // Operation: to.Ptr("Run Web Apps Diagnostics Analysis"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Analysis"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/detectors/execute/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Run Web Apps Diagnostics Detector."), - // Operation: to.Ptr("Run Web Apps Diagnostics Detector"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Detector"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/analyses/execute/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Run Web Apps Slots Diagnostics Analysis."), - // Operation: to.Ptr("Run Web Apps Slots Diagnostics Analysis"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Analysis"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/detectors/execute/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Run Web Apps Slots Diagnostics Detector."), - // Operation: to.Ptr("Run Web Apps Slots Diagnostics Detector"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Detector"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/serverfarms/providers/Microsoft.Insights/metricDefinitions/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Gets the available metrics for App Service Plan"), - // Operation: to.Ptr("Read App Service Plan metric definitions"), - // Provider: to.Ptr("Microsoft.Web"), - // Resource: to.Ptr("The metric definition of App Service Plan"), - // }, - // Origin: to.Ptr("system"), - // Properties: &armappservice.CsmOperationDescriptionProperties{ - // ServiceSpecification: &armappservice.ServiceSpecification{ - // MetricSpecifications: []*armappservice.MetricSpecification{ - // { - // Name: to.Ptr("CpuPercentage"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("CPU Percentage"), - // DisplayName: to.Ptr("CPU Percentage"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Percent"), - // }, - // { - // Name: to.Ptr("MemoryPercentage"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Memory Percentage"), - // DisplayName: to.Ptr("Memory Percentage"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Percent"), - // }, - // { - // Name: to.Ptr("DiskQueueLength"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Disk Queue Length"), - // DisplayName: to.Ptr("Disk Queue Length"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("HttpQueueLength"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http Queue Length"), - // DisplayName: to.Ptr("Http Queue Length"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("BytesReceived"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Data In"), - // DisplayName: to.Ptr("Data In"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("BytesSent"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Data Out"), - // DisplayName: to.Ptr("Data Out"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }}, - // }, - // }, - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/providers/Microsoft.Insights/metricDefinitions/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Gets the available metrics for Web App"), - // Operation: to.Ptr("Read Web App metric definitions"), - // Provider: to.Ptr("Microsoft.Web"), - // Resource: to.Ptr("The metric definition of Web App"), - // }, - // Origin: to.Ptr("system"), - // Properties: &armappservice.CsmOperationDescriptionProperties{ - // ServiceSpecification: &armappservice.ServiceSpecification{ - // MetricSpecifications: []*armappservice.MetricSpecification{ - // { - // Name: to.Ptr("CpuTime"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("CPU Time"), - // DisplayName: to.Ptr("CPU Time"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Seconds"), - // }, - // { - // Name: to.Ptr("Requests"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Requests"), - // DisplayName: to.Ptr("Requests"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("BytesReceived"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Data In"), - // DisplayName: to.Ptr("Data In"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("BytesSent"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Data Out"), - // DisplayName: to.Ptr("Data Out"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("Http101"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 101"), - // DisplayName: to.Ptr("Http 101"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http2xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 2xx"), - // DisplayName: to.Ptr("Http 2xx"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http3xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 3xx"), - // DisplayName: to.Ptr("Http 3xx"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http401"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 401"), - // DisplayName: to.Ptr("Http 401"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http403"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 403"), - // DisplayName: to.Ptr("Http 403"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http404"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 404"), - // DisplayName: to.Ptr("Http 404"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http406"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 406"), - // DisplayName: to.Ptr("Http 406"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http4xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 4xx"), - // DisplayName: to.Ptr("Http 4xx"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http5xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http Server Errors"), - // DisplayName: to.Ptr("Http Server Errors"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("MemoryWorkingSet"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Memory working set"), - // DisplayName: to.Ptr("Memory working set"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("AverageMemoryWorkingSet"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Average memory working set"), - // DisplayName: to.Ptr("Average memory working set"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("AverageResponseTime"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Average Response Time"), - // DisplayName: to.Ptr("Average Response Time"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Seconds"), - // }, - // { - // Name: to.Ptr("FunctionExecutionUnits"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Function Execution Units"), - // DisplayName: to.Ptr("Function Execution Units"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("(?i:functionapp)"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("FunctionExecutionCount"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Function Execution Count"), - // DisplayName: to.Ptr("Function Execution Count"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("(?i:functionapp)"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }}, - // }, - // }, - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/providers/Microsoft.Insights/metricDefinitions/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Gets the available metrics for Web App Slot"), - // Operation: to.Ptr("Read Web App Slot metric definitions"), - // Provider: to.Ptr("Microsoft.Web"), - // Resource: to.Ptr("The metric definition of Web App Slot"), - // }, - // Origin: to.Ptr("system"), - // Properties: &armappservice.CsmOperationDescriptionProperties{ - // ServiceSpecification: &armappservice.ServiceSpecification{ - // MetricSpecifications: []*armappservice.MetricSpecification{ - // { - // Name: to.Ptr("CpuTime"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("CPU Time"), - // DisplayName: to.Ptr("CPU Time"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Seconds"), - // }, - // { - // Name: to.Ptr("Requests"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Requests"), - // DisplayName: to.Ptr("Requests"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("BytesReceived"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Data In"), - // DisplayName: to.Ptr("Data In"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("BytesSent"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Data Out"), - // DisplayName: to.Ptr("Data Out"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("Http101"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 101"), - // DisplayName: to.Ptr("Http 101"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http2xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 2xx"), - // DisplayName: to.Ptr("Http 2xx"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http3xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 3xx"), - // DisplayName: to.Ptr("Http 3xx"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http401"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 401"), - // DisplayName: to.Ptr("Http 401"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http403"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 403"), - // DisplayName: to.Ptr("Http 403"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http404"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 404"), - // DisplayName: to.Ptr("Http 404"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http406"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 406"), - // DisplayName: to.Ptr("Http 406"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http4xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 4xx"), - // DisplayName: to.Ptr("Http 4xx"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http5xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http Server Errors"), - // DisplayName: to.Ptr("Http Server Errors"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("MemoryWorkingSet"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Memory working set"), - // DisplayName: to.Ptr("Memory working set"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("AverageMemoryWorkingSet"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Average memory working set"), - // DisplayName: to.Ptr("Average memory working set"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("AverageResponseTime"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Average Response Time"), - // DisplayName: to.Ptr("Average Response Time"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Seconds"), - // }, - // { - // Name: to.Ptr("FunctionExecutionUnits"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Function Execution Units"), - // DisplayName: to.Ptr("Function Execution Units"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("(?i:functionapp)"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("FunctionExecutionCount"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Function Execution Count"), - // DisplayName: to.Ptr("Function Execution Count"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("(?i:functionapp)"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }}, - // }, - // }, - // }, - // { - // Name: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools/providers/Microsoft.Insights/metricDefinitions/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Gets the available metrics for App Service Environment MultiRole"), - // Operation: to.Ptr("Read App Service Environment MultiRole metric definitions"), - // Provider: to.Ptr("Microsoft.Web"), - // Resource: to.Ptr("The metric definition of App Service Environment MultiRole"), - // }, - // Origin: to.Ptr("system"), - // Properties: &armappservice.CsmOperationDescriptionProperties{ - // ServiceSpecification: &armappservice.ServiceSpecification{ - // MetricSpecifications: []*armappservice.MetricSpecification{ - // { - // Name: to.Ptr("Requests"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Requests"), - // DisplayName: to.Ptr("Requests"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("BytesReceived"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Data In"), - // DisplayName: to.Ptr("Data In"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("BytesSent"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Data Out"), - // DisplayName: to.Ptr("Data Out"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("Http101"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 101"), - // DisplayName: to.Ptr("Http 101"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http2xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 2xx"), - // DisplayName: to.Ptr("Http 2xx"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http3xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 3xx"), - // DisplayName: to.Ptr("Http 3xx"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http401"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 401"), - // DisplayName: to.Ptr("Http 401"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http403"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 403"), - // DisplayName: to.Ptr("Http 403"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http404"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 404"), - // DisplayName: to.Ptr("Http 404"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http406"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 406"), - // DisplayName: to.Ptr("Http 406"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http4xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 4xx"), - // DisplayName: to.Ptr("Http 4xx"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http5xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http Server Errors"), - // DisplayName: to.Ptr("Http Server Errors"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("AverageResponseTime"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Average Response Time"), - // DisplayName: to.Ptr("Average Response Time"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Seconds"), - // }, - // { - // Name: to.Ptr("CpuPercentage"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("CPU Percentage"), - // DisplayName: to.Ptr("CPU Percentage"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Percent"), - // }, - // { - // Name: to.Ptr("MemoryPercentage"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Memory Percentage"), - // DisplayName: to.Ptr("Memory Percentage"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Percent"), - // }, - // { - // Name: to.Ptr("DiskQueueLength"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Disk Queue Length"), - // DisplayName: to.Ptr("Disk Queue Length"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("HttpQueueLength"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http Queue Length"), - // DisplayName: to.Ptr("Http Queue Length"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("ActiveRequests"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Active Requests"), - // DisplayName: to.Ptr("Active Requests"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("TotalFrontEnds"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // DisplayDescription: to.Ptr("Total Front Ends"), - // DisplayName: to.Ptr("Total Front Ends"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("SmallAppServicePlanInstances"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // DisplayDescription: to.Ptr("Small App Service Plan Workers"), - // DisplayName: to.Ptr("Small App Service Plan Workers"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("MediumAppServicePlanInstances"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // DisplayDescription: to.Ptr("Medium App Service Plan Workers"), - // DisplayName: to.Ptr("Medium App Service Plan Workers"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("LargeAppServicePlanInstances"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // DisplayDescription: to.Ptr("Large App Service Plan Workers"), - // DisplayName: to.Ptr("Large App Service Plan Workers"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }}, - // }, - // }, - // }, - // { - // Name: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools/providers/Microsoft.Insights/metricDefinitions/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Gets the available metrics for App Service Environment WorkerPool"), - // Operation: to.Ptr("Read App Service Environment WorkerPool metric definitions"), - // Provider: to.Ptr("Microsoft.Web"), - // Resource: to.Ptr("The metric definition of App Service Environment WorkerPool"), - // }, - // Origin: to.Ptr("system"), - // Properties: &armappservice.CsmOperationDescriptionProperties{ - // ServiceSpecification: &armappservice.ServiceSpecification{ - // MetricSpecifications: []*armappservice.MetricSpecification{ - // { - // Name: to.Ptr("WorkersTotal"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // DisplayDescription: to.Ptr("Total Workers"), - // DisplayName: to.Ptr("Total Workers"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("WorkersAvailable"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // DisplayDescription: to.Ptr("Available Workers"), - // DisplayName: to.Ptr("Available Workers"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("WorkersUsed"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // DisplayDescription: to.Ptr("Used Workers"), - // DisplayName: to.Ptr("Used Workers"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }}, - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetWebAppStacks.json -func ExampleProviderClient_NewGetWebAppStacksPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewProviderClient().NewGetWebAppStacksPager(&armappservice.ProviderClientGetWebAppStacksOptions{StackOsType: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WebAppStackCollection = armappservice.WebAppStackCollection{ - // Value: []*armappservice.WebAppStack{ - // { - // Name: to.Ptr("dotnet"), - // Type: to.Ptr("Microsoft.Web/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/webAppStacks/dotnet"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr(".NET"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr(".NET 5"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET 5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("5.0.x"), - // }, - // IsEarlyAccess: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|5.0"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("5.0.x"), - // }, - // IsEarlyAccess: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("v5.0"), - // }, - // }, - // Value: to.Ptr("5"), - // }}, - // Value: to.Ptr("5"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 3"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 3.1 (LTS)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.1.301"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|3.1"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.1.301"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("3.1"), - // }, - // }, - // Value: to.Ptr("3.1"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 3.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-03T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.0.103"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|3.0"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-03T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.0.103"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("3.0"), - // }, - // }, - // Value: to.Ptr("3.0"), - // }}, - // Value: to.Ptr("3"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 2"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 2.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-23T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.2.207"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|2.2"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-23T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.2.207"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("2.2"), - // }, - // }, - // Value: to.Ptr("2.2"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 2.1 (LTS)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-21T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.1.807"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|2.1"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-21T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.1.807"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("2.1"), - // }, - // }, - // Value: to.Ptr("2.1"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 2.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.1.202"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|2.0"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.1.202"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("2.0"), - // }, - // }, - // Value: to.Ptr("2.0"), - // }}, - // Value: to.Ptr("dotnetcore2"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 1"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 1.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-27T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("1.1.14"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|1.1"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-27T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("1.1.14"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.1"), - // }, - // }, - // Value: to.Ptr("1.1"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 1.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-27T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("1.1.14"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|1.0"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-27T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("1.1.14"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.0"), - // }, - // }, - // Value: to.Ptr("1.0"), - // }}, - // Value: to.Ptr("1"), - // }, - // { - // DisplayText: to.Ptr("ASP.NET V4"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("ASP.NET V4.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.1"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("v4.0"), - // }, - // }, - // Value: to.Ptr("v4.8"), - // }}, - // Value: to.Ptr("v4"), - // }, - // { - // DisplayText: to.Ptr("ASP.NET V3"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("ASP.NET V3.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.1"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("v2.0"), - // }, - // }, - // Value: to.Ptr("v3.5"), - // }}, - // Value: to.Ptr("v3"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("dotnet"), - // }, - // }, - // { - // Name: to.Ptr("node"), - // Type: to.Ptr("Microsoft.Web/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/webAppStacks/node"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("Node"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("Node LTS"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|lts"), - // }, - // }, - // Value: to.Ptr("lts"), - // }}, - // Value: to.Ptr("lts"), - // }, - // { - // DisplayText: to.Ptr("Node 14"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 14 LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("14.x"), - // }, - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|14-lts"), - // }, - // }, - // Value: to.Ptr("14-lts"), - // }}, - // Value: to.Ptr("14"), - // }, - // { - // DisplayText: to.Ptr("Node 12"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 12 LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("12.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|12-lts"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("12.13.0"), - // }, - // }, - // Value: to.Ptr("12-lts"), - // }, - // { - // DisplayText: to.Ptr("Node 12.9"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("12.x"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(true), - // RuntimeVersion: to.Ptr("NODE|12.9"), - // }, - // }, - // Value: to.Ptr("12.9"), - // }}, - // Value: to.Ptr("12"), - // }, - // { - // DisplayText: to.Ptr("Node 10"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 10 LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10-lts"), - // }, - // }, - // Value: to.Ptr("10-LTS"), - // }, - // { - // DisplayText: to.Ptr("Node 10.16"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.16"), - // }, - // }, - // Value: to.Ptr("10.16"), - // }, - // { - // DisplayText: to.Ptr("Node 10.15"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // IsHidden: to.Ptr(true), - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("10.15.2"), - // }, - // }, - // Value: to.Ptr("10.15"), - // }, - // { - // DisplayText: to.Ptr("Node 10.14"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.14"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("10.14.1"), - // }, - // }, - // Value: to.Ptr("10.14"), - // }, - // { - // DisplayText: to.Ptr("Node 10.12"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.12"), - // }, - // }, - // Value: to.Ptr("10.12"), - // }, - // { - // DisplayText: to.Ptr("Node 10.10"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.10"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("10.0.0"), - // }, - // }, - // Value: to.Ptr("10.10"), - // }, - // { - // DisplayText: to.Ptr("Node 10.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.6"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("10.6.0"), - // }, - // }, - // Value: to.Ptr("10.6"), - // }, - // { - // DisplayText: to.Ptr("Node 10.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.1"), - // }, - // }, - // Value: to.Ptr("10.1"), - // }}, - // Value: to.Ptr("10"), - // }, - // { - // DisplayText: to.Ptr("Node 9"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 9.4"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|9.4"), - // }, - // }, - // Value: to.Ptr("9.4"), - // }}, - // Value: to.Ptr("9"), - // }, - // { - // DisplayText: to.Ptr("Node 8"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 8 LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8-lts"), - // }, - // }, - // Value: to.Ptr("8-lts"), - // }, - // { - // DisplayText: to.Ptr("Node 8.12"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.12"), - // }, - // }, - // Value: to.Ptr("8.12"), - // }, - // { - // DisplayText: to.Ptr("Node 8.11"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.11"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.11"), - // }, - // }, - // Value: to.Ptr("8.11"), - // }, - // { - // DisplayText: to.Ptr("Node 8.10"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.10"), - // }, - // }, - // Value: to.Ptr("8.10"), - // }, - // { - // DisplayText: to.Ptr("Node 8.9"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.9"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.9"), - // }, - // }, - // Value: to.Ptr("8.9"), - // }, - // { - // DisplayText: to.Ptr("Node 8.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.8"), - // }, - // }, - // Value: to.Ptr("8.8"), - // }, - // { - // DisplayText: to.Ptr("Node 8.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.5"), - // }, - // }, - // Value: to.Ptr("8.5"), - // }, - // { - // DisplayText: to.Ptr("Node 8.4"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.4"), - // }, - // }, - // Value: to.Ptr("8.4"), - // }, - // { - // DisplayText: to.Ptr("Node 8.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.2"), - // }, - // }, - // Value: to.Ptr("8.2"), - // }, - // { - // DisplayText: to.Ptr("Node 8.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.1"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.1.4"), - // }, - // }, - // Value: to.Ptr("8.1"), - // }, - // { - // DisplayText: to.Ptr("Node 8.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.0"), - // }, - // }, - // Value: to.Ptr("8.0"), - // }}, - // Value: to.Ptr("8"), - // }, - // { - // DisplayText: to.Ptr("Node 7"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 7.10"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-07-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.10.1"), - // }, - // }, - // Value: to.Ptr("7.10"), - // }}, - // Value: to.Ptr("7"), - // }, - // { - // DisplayText: to.Ptr("Node 6"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 6 LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6-lts"), - // }, - // }, - // Value: to.Ptr("6-LTS"), - // }, - // { - // DisplayText: to.Ptr("Node 6.12"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("6.12"), - // }, - // }, - // Value: to.Ptr("6.12"), - // }, - // { - // DisplayText: to.Ptr("Node 6.11"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6.11"), - // }, - // }, - // Value: to.Ptr("6.11"), - // }, - // { - // DisplayText: to.Ptr("Node 6.10"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6.10"), - // }, - // }, - // Value: to.Ptr("6.10"), - // }, - // { - // DisplayText: to.Ptr("Node 6.9"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6.9"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("6.9.5"), - // }, - // }, - // Value: to.Ptr("6.9"), - // }, - // { - // DisplayText: to.Ptr("Node 6.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6.6"), - // }, - // }, - // Value: to.Ptr("6.6"), - // }, - // { - // DisplayText: to.Ptr("Node 6.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("6.5.0"), - // }, - // }, - // Value: to.Ptr("6.5"), - // }, - // { - // DisplayText: to.Ptr("Node 6.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6.2"), - // }, - // }, - // Value: to.Ptr("6.2"), - // }}, - // Value: to.Ptr("6"), - // }, - // { - // DisplayText: to.Ptr("Node 4"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 4.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|4.8"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("4.8"), - // }, - // }, - // Value: to.Ptr("4.8"), - // }, - // { - // DisplayText: to.Ptr("Node 4.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|4.5"), - // }, - // }, - // Value: to.Ptr("4.5"), - // }, - // { - // DisplayText: to.Ptr("Node 4.4"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|4.4"), - // }, - // }, - // Value: to.Ptr("4.4"), - // }}, - // Value: to.Ptr("4"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("node"), - // }, - // }, - // { - // Name: to.Ptr("python"), - // Type: to.Ptr("Microsoft.Web/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/webAppStacks/python"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("Python"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("Python 3"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Python 3.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PYTHON|3.8"), - // }, - // }, - // Value: to.Ptr("3.8"), - // }, - // { - // DisplayText: to.Ptr("Python 3.7"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.7"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PYTHON|3.7"), - // }, - // }, - // Value: to.Ptr("3.7"), - // }, - // { - // DisplayText: to.Ptr("Python 3.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.6"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PYTHON|3.6"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.6"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("3.4.0"), - // }, - // }, - // Value: to.Ptr("3.6"), - // }}, - // Value: to.Ptr("3"), - // }, - // { - // DisplayText: to.Ptr("Python 2"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Python 2.7"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.7"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PYTHON|2.7"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.7"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("2.7.3"), - // }, - // }, - // Value: to.Ptr("2.7"), - // }}, - // Value: to.Ptr("2"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("python"), - // }, - // }, - // { - // Name: to.Ptr("php"), - // Type: to.Ptr("Microsoft.Web/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/webAppStacks/php"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("PHP"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("PHP 7"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("PHP 7.4"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-28T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PHP|7.4"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-28T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.4"), - // }, - // }, - // Value: to.Ptr("7.4"), - // }, - // { - // DisplayText: to.Ptr("PHP 7.3"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-01-06T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PHP|7.3"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-01-06T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.3"), - // }, - // }, - // Value: to.Ptr("7.3"), - // }, - // { - // DisplayText: to.Ptr("PHP 7.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-12-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PHP|7.2"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-12-30T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.2"), - // }, - // }, - // Value: to.Ptr("7.2"), - // }, - // { - // DisplayText: to.Ptr("PHP 7.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.1"), - // }, - // }, - // Value: to.Ptr("7.1"), - // }, - // { - // DisplayText: to.Ptr("7.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PHP|7.0"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.0"), - // }, - // }, - // Value: to.Ptr("7.0"), - // }}, - // Value: to.Ptr("7"), - // }, - // { - // DisplayText: to.Ptr("PHP 5"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("PHP 5.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PHP|5.6"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("5.6"), - // }, - // }, - // Value: to.Ptr("5.6"), - // }}, - // Value: to.Ptr("5"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("php"), - // }, - // }, - // { - // Name: to.Ptr("ruby"), - // Type: to.Ptr("Microsoft.Web/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/webAppStacks/ruby"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("Ruby"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("Ruby 2"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Ruby 2.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.6"), - // }, - // }, - // Value: to.Ptr("2.6"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.6.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.6.2"), - // }, - // }, - // Value: to.Ptr("2.6.2"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.5"), - // }, - // }, - // Value: to.Ptr("2.5"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.5.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.5.5"), - // }, - // }, - // Value: to.Ptr("2.5.5"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.4"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.4"), - // }, - // }, - // Value: to.Ptr("2.4"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.4.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.4.5"), - // }, - // }, - // Value: to.Ptr("2.4.5"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.3"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.3"), - // }, - // }, - // Value: to.Ptr("2.3"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.3.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.3.8"), - // }, - // }, - // Value: to.Ptr("2.3.8"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.3.3"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.3.3"), - // }, - // }, - // Value: to.Ptr("2.3.3"), - // }}, - // Value: to.Ptr("2"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("ruby"), - // }, - // }, - // { - // Name: to.Ptr("java"), - // Type: to.Ptr("Microsoft.Web/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/webAppStacks/java"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("Java"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("Java 11"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java 11"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11"), - // }, - // }, - // Value: to.Ptr("11.0"), - // }, - // { - // DisplayText: to.Ptr("Java 11.0.7"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11.0.7"), - // }, - // }, - // Value: to.Ptr("11.0.7"), - // }, - // { - // DisplayText: to.Ptr("Java 11.0.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11.0.6"), - // }, - // }, - // Value: to.Ptr("11.0.6"), - // }, - // { - // DisplayText: to.Ptr("Java 11.0.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11.0.5_ZULU"), - // }, - // }, - // Value: to.Ptr("11.0.5"), - // }, - // { - // DisplayText: to.Ptr("Java 11.0.3"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11.0.3_ZULU"), - // }, - // }, - // Value: to.Ptr("11.0.3"), - // }, - // { - // DisplayText: to.Ptr("Java 11.0.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11.0.2_ZULU"), - // }, - // }, - // Value: to.Ptr("11.0.2"), - // }}, - // Value: to.Ptr("11"), - // }, - // { - // DisplayText: to.Ptr("Java 8"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java 8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8"), - // }, - // }, - // Value: to.Ptr("8.0"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_252"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_252"), - // }, - // }, - // Value: to.Ptr("8.0.252"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_242"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_242"), - // }, - // }, - // Value: to.Ptr("8.0.242"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_232"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_232_ZULU"), - // }, - // }, - // Value: to.Ptr("8.0.232"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_212"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_212_ZULU"), - // }, - // }, - // Value: to.Ptr("8.0.212"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_202"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_202_ZULU"), - // }, - // }, - // Value: to.Ptr("8.0.202"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_202 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_202"), - // }, - // }, - // Value: to.Ptr("8.0.202 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_181"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_181_ZULU"), - // }, - // }, - // Value: to.Ptr("8.0.181"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_181 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_181"), - // }, - // }, - // Value: to.Ptr("8.0.181 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_172"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_172_ZULU"), - // }, - // }, - // Value: to.Ptr("8.0.172"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_172 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_172"), - // }, - // }, - // Value: to.Ptr("8.0.172 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_144"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_144"), - // }, - // }, - // Value: to.Ptr("8.0.144"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_111 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_111"), - // }, - // }, - // Value: to.Ptr("8.0.111 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_102"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_102"), - // }, - // }, - // Value: to.Ptr("8.0.102"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_92"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_92"), - // }, - // }, - // Value: to.Ptr("8.0.92"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_73 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_73"), - // }, - // }, - // Value: to.Ptr("8.0.73 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_60 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_60"), - // }, - // }, - // Value: to.Ptr("8.0.60 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_25 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_25"), - // }, - // }, - // Value: to.Ptr("8.0.25 (Oracle)"), - // }}, - // Value: to.Ptr("8"), - // }, - // { - // DisplayText: to.Ptr("Java 7"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java 7"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsAutoUpdate: to.Ptr(true), - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7"), - // }, - // }, - // Value: to.Ptr("7.0"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_262"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_262_ZULU"), - // }, - // }, - // Value: to.Ptr("7.0.262"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_242"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_242_ZULU"), - // }, - // }, - // Value: to.Ptr("7.0.242"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_222"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_222_ZULU"), - // }, - // }, - // Value: to.Ptr("7.0.222"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_191"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-01T00:00:00+00:00"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_191_ZULU"), - // }, - // }, - // Value: to.Ptr("7.0.191"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_80 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_80"), - // }, - // }, - // Value: to.Ptr("7.0.80 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_71 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_71"), - // }, - // }, - // Value: to.Ptr("7.0.71 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_51 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_51"), - // }, - // }, - // Value: to.Ptr("7.0.51 (Oracle)"), - // }}, - // Value: to.Ptr("7"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("java"), - // }, - // }, - // { - // Name: to.Ptr("javacontainers"), - // Type: to.Ptr("Microsoft.Web/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/webAppStacks/javacontainers"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("Java Containers"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("Java SE (Embedded Web Server)"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java SE (Embedded Web Server)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // Java11Runtime: to.Ptr("JAVA|11-java11"), - // Java8Runtime: to.Ptr("JAVA|8-jre8"), - // }, - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // JavaContainer: to.Ptr("JAVA"), - // JavaContainerVersion: to.Ptr("SE"), - // }, - // }, - // Value: to.Ptr("SE"), - // }, - // { - // DisplayText: to.Ptr("Java SE 11.0.7"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("JAVA|11.0.7"), - // }, - // }, - // Value: to.Ptr("11.0.7"), - // }, - // { - // DisplayText: to.Ptr("Java SE 11.0.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("JAVA|11.0.6"), - // }, - // }, - // Value: to.Ptr("11.0.6"), - // }, - // { - // DisplayText: to.Ptr("Java SE 11.0.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("JAVA|11.0.5"), - // }, - // }, - // Value: to.Ptr("11.0.5"), - // }, - // { - // DisplayText: to.Ptr("Java SE 8u252"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java8Runtime: to.Ptr("JAVA|8u252"), - // }, - // }, - // Value: to.Ptr("1.8.252"), - // }, - // { - // DisplayText: to.Ptr("Java SE 8u242"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java8Runtime: to.Ptr("JAVA|8u242"), - // }, - // }, - // Value: to.Ptr("1.8.242"), - // }, - // { - // DisplayText: to.Ptr("Java SE 8u232"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java8Runtime: to.Ptr("JAVA|8u232"), - // }, - // }, - // Value: to.Ptr("1.8.232"), - // }}, - // Value: to.Ptr("javase"), - // }, - // { - // DisplayText: to.Ptr("JBoss EAP"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("JBoss EAP 7.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsPreview: to.Ptr(true), - // Java8Runtime: to.Ptr("JBOSSEAP|7.2-java8"), - // }, - // }, - // Value: to.Ptr("7.2"), - // }}, - // Value: to.Ptr("jbosseap"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Tomcat 9.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // Java11Runtime: to.Ptr("TOMCAT|9.0-java11"), - // Java8Runtime: to.Ptr("TOMCAT|9.0-jre8"), - // }, - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0"), - // }, - // }, - // Value: to.Ptr("9.0"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.37"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|9.0.37-java11"), - // Java8Runtime: to.Ptr("TOMCAT|9.0.37-java8"), - // }, - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.37"), - // }, - // }, - // Value: to.Ptr("9.0.37"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.33"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|9.0.33-java11"), - // Java8Runtime: to.Ptr("TOMCAT|9.0.33-java8"), - // }, - // }, - // Value: to.Ptr("9.0.33"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.31"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.31"), - // }, - // }, - // Value: to.Ptr("9.0.31"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.27"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.27"), - // }, - // }, - // Value: to.Ptr("9.0.27"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.21"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.21"), - // }, - // }, - // Value: to.Ptr("9.0.21"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.20"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|9.0.20-java11"), - // Java8Runtime: to.Ptr("TOMCAT|9.0.20-java8"), - // }, - // }, - // Value: to.Ptr("9.0.20"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.14"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.14"), - // }, - // }, - // Value: to.Ptr("9.0.14"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.12"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.12"), - // }, - // }, - // Value: to.Ptr("9.0.12"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.8"), - // }, - // }, - // Value: to.Ptr("9.0.8"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.0"), - // }, - // }, - // Value: to.Ptr("9.0.0"), - // }}, - // Value: to.Ptr("tomcat9.0"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Tomcat 8.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // Java11Runtime: to.Ptr("TOMCAT|8.5-java11"), - // Java8Runtime: to.Ptr("TOMCAT|8.5-jre8"), - // }, - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5"), - // }, - // }, - // Value: to.Ptr("8.5"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.6"), - // }, - // }, - // Value: to.Ptr("8.5.6"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.57"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|8.5.57-java11"), - // Java8Runtime: to.Ptr("TOMCAT|8.5.57-java8"), - // }, - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.57"), - // }, - // }, - // Value: to.Ptr("8.5.57"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.53"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|8.5.53-java11"), - // Java8Runtime: to.Ptr("TOMCAT|8.5.53-java8"), - // }, - // }, - // Value: to.Ptr("8.5.53"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.51"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.51"), - // }, - // }, - // Value: to.Ptr("8.5.51"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.47"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.47"), - // }, - // }, - // Value: to.Ptr("8.5.47"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.42"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.42"), - // }, - // }, - // Value: to.Ptr("8.5.42"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.41"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|8.5.41-java11"), - // Java8Runtime: to.Ptr("TOMCAT|8.5.41-java8"), - // }, - // }, - // Value: to.Ptr("8.5.41"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.37"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.37"), - // }, - // }, - // Value: to.Ptr("8.5.37"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.34"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.34"), - // }, - // }, - // Value: to.Ptr("8.5.34"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.31"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.31"), - // }, - // }, - // Value: to.Ptr("8.5.31"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.20"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.20"), - // }, - // }, - // Value: to.Ptr("8.5.20"), - // }}, - // Value: to.Ptr("tomcat8.5"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.0"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Tomcat 8.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.0"), - // }, - // }, - // Value: to.Ptr("8.0"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.0.53"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.0.53"), - // }, - // }, - // Value: to.Ptr("8.0.53"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.0.46"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.0.46"), - // }, - // }, - // Value: to.Ptr("8.0.46"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.0.23"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.0.23"), - // }, - // }, - // Value: to.Ptr("8.0.23"), - // }}, - // Value: to.Ptr("tomcat8.0"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 7.0"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Tomcat 7.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("7.0"), - // }, - // }, - // Value: to.Ptr("7.0"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 7.0.94"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("7.0.94"), - // }, - // }, - // Value: to.Ptr("7.0.94"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 7.0.81"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("7.0.81"), - // }, - // }, - // Value: to.Ptr("7.0.81"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 7.0.62"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("7.0.62"), - // }, - // }, - // Value: to.Ptr("7.0.62"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 7.0.50"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("7.0.50"), - // }, - // }, - // Value: to.Ptr("7.0.50"), - // }}, - // Value: to.Ptr("tomcat7.0"), - // }, - // { - // DisplayText: to.Ptr("Jetty 9.3"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Jetty 9.3"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // IsDeprecated: to.Ptr(true), - // JavaContainer: to.Ptr("JETTY"), - // JavaContainerVersion: to.Ptr("9.3"), - // }, - // }, - // Value: to.Ptr("9.3"), - // }, - // { - // DisplayText: to.Ptr("Jetty 9.3.25"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsDeprecated: to.Ptr(true), - // JavaContainer: to.Ptr("JETTY"), - // JavaContainerVersion: to.Ptr("9.3.25"), - // }, - // }, - // Value: to.Ptr("9.3.25"), - // }, - // { - // DisplayText: to.Ptr("Jetty 9.3.13"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsDeprecated: to.Ptr(true), - // JavaContainer: to.Ptr("JETTY"), - // JavaContainerVersion: to.Ptr("9.3.13"), - // }, - // }, - // Value: to.Ptr("9.3.13"), - // }}, - // Value: to.Ptr("jetty9.3"), - // }, - // { - // DisplayText: to.Ptr("Jetty 9.1"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Jetty 9.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // IsDeprecated: to.Ptr(true), - // JavaContainer: to.Ptr("JETTY"), - // JavaContainerVersion: to.Ptr("9.1"), - // }, - // }, - // Value: to.Ptr("9.1"), - // }, - // { - // DisplayText: to.Ptr("Jetty 9.1.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsDeprecated: to.Ptr(true), - // JavaContainer: to.Ptr("JETTY"), - // JavaContainerVersion: to.Ptr("9.1.0"), - // }, - // }, - // Value: to.Ptr("9.1.0"), - // }}, - // Value: to.Ptr("jetty9.1"), - // }, - // { - // DisplayText: to.Ptr("WildFly 14"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("WildFly 14"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // IsDeprecated: to.Ptr(true), - // Java8Runtime: to.Ptr("WILDFLY|14-jre8"), - // }, - // }, - // Value: to.Ptr("14"), - // }, - // { - // DisplayText: to.Ptr("WildFly 14.0.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsDeprecated: to.Ptr(true), - // Java8Runtime: to.Ptr("WILDFLY|14.0.1-java8"), - // }, - // }, - // Value: to.Ptr("14.0.1"), - // }}, - // Value: to.Ptr("wildfly14"), - // }}, - // Value: to.Ptr("javacontainers"), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/resourcehealthmetadata_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/resourcehealthmetadata_client_example_test.go deleted file mode 100644 index 28a1ed3395b3..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/resourcehealthmetadata_client_example_test.go +++ /dev/null @@ -1,158 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListResourceHealthMetadataBySubscription.json -func ExampleResourceHealthMetadataClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewResourceHealthMetadataClient().NewListPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ResourceHealthMetadataCollection = armappservice.ResourceHealthMetadataCollection{ - // Value: []*armappservice.ResourceHealthMetadata{ - // { - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/sites/resourceHealthMetadata"), - // ID: to.Ptr("/subscriptions/4adb32ad-8327-4cbb-b775-b84b4465bb38/resourceGroups/Default-Web-NorthCentralUS/providers/Microsoft.Web/sites/newsiteinnewASE-NCUS/resourceHealthMetadata/default"), - // Properties: &armappservice.ResourceHealthMetadataProperties{ - // Category: to.Ptr("Shared"), - // SignalAvailability: to.Ptr(true), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListResourceHealthMetadataByResourceGroup.json -func ExampleResourceHealthMetadataClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewResourceHealthMetadataClient().NewListByResourceGroupPager("Default-Web-NorthCentralUS", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ResourceHealthMetadataCollection = armappservice.ResourceHealthMetadataCollection{ - // Value: []*armappservice.ResourceHealthMetadata{ - // { - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/sites/resourceHealthMetadata"), - // ID: to.Ptr("/subscriptions/4adb32ad-8327-4cbb-b775-b84b4465bb38/resourceGroups/Default-Web-NorthCentralUS/providers/Microsoft.Web/sites/newsiteinnewASE-NCUS/resourceHealthMetadata/default"), - // Properties: &armappservice.ResourceHealthMetadataProperties{ - // Category: to.Ptr("Shared"), - // SignalAvailability: to.Ptr(true), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListResourceHealthMetadataBySite.json -func ExampleResourceHealthMetadataClient_NewListBySitePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewResourceHealthMetadataClient().NewListBySitePager("Default-Web-NorthCentralUS", "newsiteinnewASE-NCUS", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ResourceHealthMetadataCollection = armappservice.ResourceHealthMetadataCollection{ - // Value: []*armappservice.ResourceHealthMetadata{ - // { - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/sites/resourceHealthMetadata"), - // ID: to.Ptr("/subscriptions/4adb32ad-8327-4cbb-b775-b84b4465bb38/resourceGroups/Default-Web-NorthCentralUS/providers/Microsoft.Web/sites/newsiteinnewASE-NCUS/resourceHealthMetadata/default"), - // Properties: &armappservice.ResourceHealthMetadataProperties{ - // Category: to.Ptr("Shared"), - // SignalAvailability: to.Ptr(true), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetResourceHealthMetadataBySite.json -func ExampleResourceHealthMetadataClient_GetBySite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewResourceHealthMetadataClient().GetBySite(ctx, "Default-Web-NorthCentralUS", "newsiteinnewASE-NCUS", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.ResourceHealthMetadata = armappservice.ResourceHealthMetadata{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/sites/resourceHealthMetadata"), - // ID: to.Ptr("/subscriptions/4adb32ad-8327-4cbb-b775-b84b4465bb38/resourceGroups/Default-Web-NorthCentralUS/providers/Microsoft.Web/sites/newsiteinnewASE-NCUS/resourceHealthMetadata/default"), - // Properties: &armappservice.ResourceHealthMetadataProperties{ - // Category: to.Ptr("Shared"), - // SignalAvailability: to.Ptr(true), - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/staticsites_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/staticsites_client_example_test.go deleted file mode 100644 index 6860fdd360b5..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/staticsites_client_example_test.go +++ /dev/null @@ -1,2499 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GenerateStaticSiteWorkflowPreview.json -func ExampleStaticSitesClient_PreviewWorkflow() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().PreviewWorkflow(ctx, "West US 2", armappservice.StaticSitesWorkflowPreviewRequest{ - Properties: &armappservice.StaticSitesWorkflowPreviewRequestProperties{ - Branch: to.Ptr("master"), - BuildProperties: &armappservice.StaticSiteBuildProperties{ - APILocation: to.Ptr("api"), - AppArtifactLocation: to.Ptr("build"), - AppLocation: to.Ptr("app"), - }, - RepositoryURL: to.Ptr("https://github.com/username/RepoName"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSitesWorkflowPreview = armappservice.StaticSitesWorkflowPreview{ - // Properties: &armappservice.StaticSitesWorkflowPreviewProperties{ - // Path: to.Ptr(".github/workflows/azure-static-web-apps-.yml"), - // Contents: to.Ptr("base64encodedworkflowcontentspreview"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetAllStaticSites.json -func ExampleStaticSitesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewListPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteCollection = armappservice.StaticSiteCollection{ - // Value: []*armappservice.StaticSiteARMResource{ - // { - // Name: to.Ptr("testStaticSite0"), - // Type: to.Ptr("Microsoft.Web/staticSites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0"), - // Location: to.Ptr("West US 2"), - // Properties: &armappservice.StaticSite{ - // AllowConfigFileUpdates: to.Ptr(true), - // Branch: to.Ptr("demo"), - // ContentDistributionEndpoint: to.Ptr(""), - // CustomDomains: []*string{ - // }, - // DefaultHostname: to.Ptr("happy-sea-15afae3e.azurestaticwebsites.net"), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // PrivateEndpointConnections: []*armappservice.ResponseMessageEnvelopeRemotePrivateEndpointConnection{ - // }, - // RepositoryURL: to.Ptr("https://github.com/username/repo"), - // StagingEnvironmentPolicy: to.Ptr(armappservice.StagingEnvironmentPolicyEnabled), - // UserProvidedFunctionApps: []*armappservice.StaticSiteUserProvidedFunctionApp{ - // }, - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Standard"), - // Tier: to.Ptr("Standard"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetStaticSites.json -func ExampleStaticSitesClient_NewGetStaticSitesByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetStaticSitesByResourceGroupPager("rg", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteCollection = armappservice.StaticSiteCollection{ - // Value: []*armappservice.StaticSiteARMResource{ - // { - // Name: to.Ptr("testStaticSite0"), - // Type: to.Ptr("Microsoft.Web/staticSites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0"), - // Location: to.Ptr("West US 2"), - // Properties: &armappservice.StaticSite{ - // AllowConfigFileUpdates: to.Ptr(true), - // Branch: to.Ptr("demo"), - // ContentDistributionEndpoint: to.Ptr(""), - // CustomDomains: []*string{ - // }, - // DefaultHostname: to.Ptr("happy-sea-15afae3e.azurestaticwebsites.net"), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LinkedBackends: []*armappservice.StaticSiteLinkedBackend{ - // }, - // PrivateEndpointConnections: []*armappservice.ResponseMessageEnvelopeRemotePrivateEndpointConnection{ - // }, - // RepositoryURL: to.Ptr("https://github.com/username/repo"), - // StagingEnvironmentPolicy: to.Ptr(armappservice.StagingEnvironmentPolicyEnabled), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Standard"), - // Tier: to.Ptr("Standard"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetStaticSite.json -func ExampleStaticSitesClient_GetStaticSite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetStaticSite(ctx, "rg", "testStaticSite0", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteARMResource = armappservice.StaticSiteARMResource{ - // Name: to.Ptr("testStaticSite0"), - // Type: to.Ptr("Microsoft.Web/staticSites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0"), - // Location: to.Ptr("West US 2"), - // Properties: &armappservice.StaticSite{ - // AllowConfigFileUpdates: to.Ptr(true), - // Branch: to.Ptr("demo"), - // ContentDistributionEndpoint: to.Ptr(""), - // CustomDomains: []*string{ - // }, - // DefaultHostname: to.Ptr("happy-sea-15afae3e.azurestaticwebsites.net"), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LinkedBackends: []*armappservice.StaticSiteLinkedBackend{ - // { - // BackendResourceID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.ApiManagement/service/apimService0"), - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-27T04:57:24.8058474"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // }}, - // PrivateEndpointConnections: []*armappservice.ResponseMessageEnvelopeRemotePrivateEndpointConnection{ - // }, - // RepositoryURL: to.Ptr("https://github.com/username/repo"), - // StagingEnvironmentPolicy: to.Ptr(armappservice.StagingEnvironmentPolicyEnabled), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Basic"), - // Tier: to.Ptr("Basic"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/CreateOrUpdateStaticSite.json -func ExampleStaticSitesClient_BeginCreateOrUpdateStaticSite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().BeginCreateOrUpdateStaticSite(ctx, "rg", "testStaticSite0", armappservice.StaticSiteARMResource{ - Location: to.Ptr("West US 2"), - Properties: &armappservice.StaticSite{ - Branch: to.Ptr("master"), - BuildProperties: &armappservice.StaticSiteBuildProperties{ - APILocation: to.Ptr("api"), - AppArtifactLocation: to.Ptr("build"), - AppLocation: to.Ptr("app"), - }, - RepositoryToken: to.Ptr("repoToken123"), - RepositoryURL: to.Ptr("https://github.com/username/RepoName"), - }, - SKU: &armappservice.SKUDescription{ - Name: to.Ptr("Basic"), - Tier: to.Ptr("Basic"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteARMResource = armappservice.StaticSiteARMResource{ - // Name: to.Ptr("testStaticSite0"), - // Type: to.Ptr("Microsoft.Web/staticSites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0"), - // Location: to.Ptr("West US 2"), - // Properties: &armappservice.StaticSite{ - // AllowConfigFileUpdates: to.Ptr(true), - // Branch: to.Ptr("demo"), - // ContentDistributionEndpoint: to.Ptr(""), - // CustomDomains: []*string{ - // }, - // DefaultHostname: to.Ptr("happy-sea-15afae3e.azurestaticwebsites.net"), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LinkedBackends: []*armappservice.StaticSiteLinkedBackend{ - // }, - // PrivateEndpointConnections: []*armappservice.ResponseMessageEnvelopeRemotePrivateEndpointConnection{ - // }, - // RepositoryURL: to.Ptr("https://github.com/username/RepoName"), - // StagingEnvironmentPolicy: to.Ptr(armappservice.StagingEnvironmentPolicyEnabled), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Basic"), - // Tier: to.Ptr("Basic"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/DeleteStaticSite.json -func ExampleStaticSitesClient_BeginDeleteStaticSite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().BeginDeleteStaticSite(ctx, "rg", "testStaticSite0", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/PatchStaticSite.json -func ExampleStaticSitesClient_UpdateStaticSite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().UpdateStaticSite(ctx, "rg", "testStaticSite0", armappservice.StaticSitePatchResource{ - Properties: &armappservice.StaticSite{}, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteARMResource = armappservice.StaticSiteARMResource{ - // Name: to.Ptr("testStaticSite0"), - // Type: to.Ptr("Microsoft.Web/staticSites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0"), - // Location: to.Ptr("West US 2"), - // Properties: &armappservice.StaticSite{ - // AllowConfigFileUpdates: to.Ptr(true), - // Branch: to.Ptr("demo"), - // ContentDistributionEndpoint: to.Ptr(""), - // CustomDomains: []*string{ - // }, - // DefaultHostname: to.Ptr("happy-sea-15afae3e.azurestaticwebsites.net"), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // PrivateEndpointConnections: []*armappservice.ResponseMessageEnvelopeRemotePrivateEndpointConnection{ - // }, - // RepositoryURL: to.Ptr("https://github.com/username/RepoName"), - // StagingEnvironmentPolicy: to.Ptr(armappservice.StagingEnvironmentPolicyEnabled), - // UserProvidedFunctionApps: []*armappservice.StaticSiteUserProvidedFunctionApp{ - // }, - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Basic"), - // Tier: to.Ptr("Basic"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListStaticSiteUsers.json -func ExampleStaticSitesClient_NewListStaticSiteUsersPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewListStaticSiteUsersPager("rg", "testStaticSite0", "all", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteUserCollection = armappservice.StaticSiteUserCollection{ - // Value: []*armappservice.StaticSiteUserARMResource{ - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/authproviders/all/users/1234"), - // Properties: &armappservice.StaticSiteUserARMResourceProperties{ - // DisplayName: to.Ptr("username"), - // Provider: to.Ptr("aad"), - // Roles: to.Ptr("admin,anonymous,authenticated"), - // UserID: to.Ptr("1234"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/DeleteStaticSiteUser.json -func ExampleStaticSitesClient_DeleteStaticSiteUser() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewStaticSitesClient().DeleteStaticSiteUser(ctx, "rg", "testStaticSite0", "aad", "1234", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/UpdateStaticSiteUser.json -func ExampleStaticSitesClient_UpdateStaticSiteUser() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().UpdateStaticSiteUser(ctx, "rg", "testStaticSite0", "aad", "1234", armappservice.StaticSiteUserARMResource{ - Properties: &armappservice.StaticSiteUserARMResourceProperties{ - Roles: to.Ptr("contributor"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteUserARMResource = armappservice.StaticSiteUserARMResource{ - // Properties: &armappservice.StaticSiteUserARMResourceProperties{ - // DisplayName: to.Ptr("username"), - // Provider: to.Ptr("aad"), - // Roles: to.Ptr("contributor,anonymous,authenticated"), - // UserID: to.Ptr("1234"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetStaticSiteBuilds.json -func ExampleStaticSitesClient_NewGetStaticSiteBuildsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetStaticSiteBuildsPager("rg", "testStaticSite0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteBuildCollection = armappservice.StaticSiteBuildCollection{ - // Value: []*armappservice.StaticSiteBuildARMResource{ - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default"), - // Properties: &armappservice.StaticSiteBuildARMResourceProperties{ - // BuildID: to.Ptr("default"), - // CreatedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // Hostname: to.Ptr("happy-sea-15afae3e.azurestaticwebsites.net"), - // LastUpdatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // LinkedBackends: []*armappservice.StaticSiteLinkedBackend{ - // }, - // SourceBranch: to.Ptr("demo"), - // Status: to.Ptr(armappservice.BuildStatusReady), - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/12"), - // Properties: &armappservice.StaticSiteBuildARMResourceProperties{ - // BuildID: to.Ptr("12"), - // CreatedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // Hostname: to.Ptr("happy-sea-15afae3e-12.westus2.azurestaticwebsites.net"), - // LastUpdatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // LinkedBackends: []*armappservice.StaticSiteLinkedBackend{ - // { - // BackendResourceID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.ApiManagement/service/apimService0"), - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-27T04:57:24.8058474"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // }}, - // PullRequestTitle: to.Ptr("Update README.md"), - // SourceBranch: to.Ptr("demo-patch2"), - // Status: to.Ptr(armappservice.BuildStatusReady), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetStaticSiteBuild.json -func ExampleStaticSitesClient_GetStaticSiteBuild() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetStaticSiteBuild(ctx, "rg", "testStaticSite0", "12", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteBuildARMResource = armappservice.StaticSiteBuildARMResource{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/12"), - // Properties: &armappservice.StaticSiteBuildARMResourceProperties{ - // BuildID: to.Ptr("12"), - // CreatedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // Hostname: to.Ptr("happy-sea-15afae3e-12.westus2.azurestaticwebsites.net"), - // LastUpdatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // LinkedBackends: []*armappservice.StaticSiteLinkedBackend{ - // { - // BackendResourceID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.ApiManagement/service/apimService0"), - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-27T04:57:24.8058474"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // }}, - // PullRequestTitle: to.Ptr("Update README.md"), - // SourceBranch: to.Ptr("pr-branch"), - // Status: to.Ptr(armappservice.BuildStatusUploading), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/DeleteStaticSiteBuild.json -func ExampleStaticSitesClient_BeginDeleteStaticSiteBuild() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().BeginDeleteStaticSiteBuild(ctx, "rg", "testStaticSite0", "12", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/CreateOrUpdateStaticSiteBuildAppSettings.json -func ExampleStaticSitesClient_CreateOrUpdateStaticSiteBuildAppSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().CreateOrUpdateStaticSiteBuildAppSettings(ctx, "rg", "testStaticSite0", "12", armappservice.StringDictionary{ - Properties: map[string]*string{ - "setting1": to.Ptr("someval"), - "setting2": to.Ptr("someval2"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/12/config/appSettings"), - // Properties: map[string]*string{ - // "setting1": to.Ptr("someval"), - // "setting2": to.Ptr("someval2"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/CreateOrUpdateStaticSiteBuildFunctionAppSettings.json -func ExampleStaticSitesClient_CreateOrUpdateStaticSiteBuildFunctionAppSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().CreateOrUpdateStaticSiteBuildFunctionAppSettings(ctx, "rg", "testStaticSite0", "12", armappservice.StringDictionary{ - Properties: map[string]*string{ - "setting1": to.Ptr("someval"), - "setting2": to.Ptr("someval2"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/12/config/appSettings"), - // Properties: map[string]*string{ - // "setting1": to.Ptr("someval"), - // "setting2": to.Ptr("someval2"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetStaticSiteBuildDatabaseConnections.json -func ExampleStaticSitesClient_NewGetBuildDatabaseConnectionsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetBuildDatabaseConnectionsPager("rg", "testStaticSite0", "default", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DatabaseConnectionCollection = armappservice.DatabaseConnectionCollection{ - // Value: []*armappservice.DatabaseConnection{ - // { - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetStaticSiteBuildDatabaseConnection.json -func ExampleStaticSitesClient_GetBuildDatabaseConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetBuildDatabaseConnection(ctx, "rg", "testStaticSite0", "default", "default", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DatabaseConnection = armappservice.DatabaseConnection{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/CreateOrUpdateStaticSiteBuildDatabaseConnection.json -func ExampleStaticSitesClient_CreateOrUpdateBuildDatabaseConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().CreateOrUpdateBuildDatabaseConnection(ctx, "rg", "testStaticSite0", "default", "default", armappservice.DatabaseConnection{ - Properties: &armappservice.DatabaseConnectionProperties{ - ConnectionIdentity: to.Ptr("SystemAssigned"), - ConnectionString: to.Ptr("AccountEndpoint=https://exampleDatabaseName.documents.azure.com:443/;Database=mydb;"), - Region: to.Ptr("West US 2"), - ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DatabaseConnection = armappservice.DatabaseConnection{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/DeleteStaticSiteBuildDatabaseConnection.json -func ExampleStaticSitesClient_DeleteBuildDatabaseConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewStaticSitesClient().DeleteBuildDatabaseConnection(ctx, "rg", "testStaticSite0", "default", "default", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/PatchStaticSiteBuildDatabaseConnection.json -func ExampleStaticSitesClient_UpdateBuildDatabaseConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().UpdateBuildDatabaseConnection(ctx, "rg", "testStaticSite0", "default", "default", armappservice.DatabaseConnectionPatchRequest{ - Properties: &armappservice.DatabaseConnectionPatchRequestProperties{}, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DatabaseConnection = armappservice.DatabaseConnection{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetStaticSiteBuildDatabaseConnectionWithDetails.json -func ExampleStaticSitesClient_GetBuildDatabaseConnectionWithDetails() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetBuildDatabaseConnectionWithDetails(ctx, "rg", "testStaticSite0", "default", "default", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DatabaseConnection = armappservice.DatabaseConnection{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConfigurationFiles: []*armappservice.StaticSiteDatabaseConnectionConfigurationFileOverview{ - // { - // Type: to.Ptr("configuration"), - // Contents: to.Ptr("base64encodeddatabaseconfiguration"), - // FileName: to.Ptr("staticwebapp.database.config.json"), - // }, - // { - // Type: to.Ptr("graphqlschema"), - // Contents: to.Ptr("base64encodeddatabasegraphqlschema"), - // FileName: to.Ptr("staticwebapp.database.schema.gql"), - // }}, - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // ConnectionString: to.Ptr("AccountEndpoint=https://exampleDatabaseName.documents.azure.com:443/;Database=mydb;"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListStaticSiteBuildFunctions.json -func ExampleStaticSitesClient_NewListStaticSiteBuildFunctionsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewListStaticSiteBuildFunctionsPager("rg", "testStaticSite0", "default", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteFunctionOverviewCollection = armappservice.StaticSiteFunctionOverviewCollection{ - // Value: []*armappservice.StaticSiteFunctionOverviewARMResource{ - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/functions/GetList"), - // Properties: &armappservice.StaticSiteFunctionOverviewARMResourceProperties{ - // FunctionName: to.Ptr("GetList"), - // TriggerType: to.Ptr(armappservice.TriggerTypesHTTPTrigger), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListStaticSiteBuildAppSettings.json -func ExampleStaticSitesClient_ListStaticSiteBuildAppSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().ListStaticSiteBuildAppSettings(ctx, "rg", "testStaticSite0", "12", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/12/config/appSettings"), - // Properties: map[string]*string{ - // "setting0": to.Ptr("someVal"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListStaticSiteBuildFunctionAppSettings.json -func ExampleStaticSitesClient_ListStaticSiteBuildFunctionAppSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().ListStaticSiteBuildFunctionAppSettings(ctx, "rg", "testStaticSite0", "12", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/12/config/appSettings"), - // Properties: map[string]*string{ - // "setting0": to.Ptr("someVal"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetStaticSiteBuildDatabaseConnectionsWithDetails.json -func ExampleStaticSitesClient_NewGetBuildDatabaseConnectionsWithDetailsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetBuildDatabaseConnectionsWithDetailsPager("rg", "testStaticSite0", "default", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DatabaseConnectionCollection = armappservice.DatabaseConnectionCollection{ - // Value: []*armappservice.DatabaseConnection{ - // { - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConfigurationFiles: []*armappservice.StaticSiteDatabaseConnectionConfigurationFileOverview{ - // { - // Type: to.Ptr("configuration"), - // Contents: to.Ptr("base64encodeddatabaseconfiguration"), - // FileName: to.Ptr("staticwebapp.database.config.json"), - // }, - // { - // Type: to.Ptr("graphqlschema"), - // Contents: to.Ptr("base64encodeddatabasegraphqlschema"), - // FileName: to.Ptr("staticwebapp.database.schema.gql"), - // }}, - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // ConnectionString: to.Ptr("AccountEndpoint=https://exampleDatabaseName.documents.azure.com:443/;Database=mydb;"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetUserProvidedFunctionAppsForStaticSiteBuild.json -func ExampleStaticSitesClient_NewGetUserProvidedFunctionAppsForStaticSiteBuildPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetUserProvidedFunctionAppsForStaticSiteBuildPager("rg", "testStaticSite0", "default", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteUserProvidedFunctionAppsCollection = armappservice.StaticSiteUserProvidedFunctionAppsCollection{ - // Value: []*armappservice.StaticSiteUserProvidedFunctionAppARMResource{ - // { - // Name: to.Ptr("testFunctionApp"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/userProvidedFunctionApps"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/userProvidedFunctionApps/testFunctionApp"), - // Properties: &armappservice.StaticSiteUserProvidedFunctionAppARMResourceProperties{ - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // FunctionAppRegion: to.Ptr("West US 2"), - // FunctionAppResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testFunctionApp"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetUserProvidedFunctionAppForStaticSiteBuild.json -func ExampleStaticSitesClient_GetUserProvidedFunctionAppForStaticSiteBuild() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetUserProvidedFunctionAppForStaticSiteBuild(ctx, "rg", "testStaticSite0", "default", "testFunctionApp", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteUserProvidedFunctionAppARMResource = armappservice.StaticSiteUserProvidedFunctionAppARMResource{ - // Name: to.Ptr("testFunctionApp"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/userProvidedFunctionApps"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/userProvidedFunctionApps/testFunctionApp"), - // Properties: &armappservice.StaticSiteUserProvidedFunctionAppARMResourceProperties{ - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // FunctionAppRegion: to.Ptr("West US 2"), - // FunctionAppResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testFunctionApp"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/RegisterUserProvidedFunctionAppWithStaticSiteBuild.json -func ExampleStaticSitesClient_BeginRegisterUserProvidedFunctionAppWithStaticSiteBuild() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().BeginRegisterUserProvidedFunctionAppWithStaticSiteBuild(ctx, "rg", "testStaticSite0", "default", "testFunctionApp", armappservice.StaticSiteUserProvidedFunctionAppARMResource{ - Properties: &armappservice.StaticSiteUserProvidedFunctionAppARMResourceProperties{ - FunctionAppRegion: to.Ptr("West US 2"), - FunctionAppResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testFunctionApp"), - }, - }, &armappservice.StaticSitesClientBeginRegisterUserProvidedFunctionAppWithStaticSiteBuildOptions{IsForced: to.Ptr(true)}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteUserProvidedFunctionAppARMResource = armappservice.StaticSiteUserProvidedFunctionAppARMResource{ - // Name: to.Ptr("testFunctionApp"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/userProvidedFunctionApps"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/userProvidedFunctionApps/testFunctionApp"), - // Properties: &armappservice.StaticSiteUserProvidedFunctionAppARMResourceProperties{ - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // FunctionAppRegion: to.Ptr("West US 2"), - // FunctionAppResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testFunctionApp"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/DetachUserProvidedFunctionAppFromStaticSiteBuild.json -func ExampleStaticSitesClient_DetachUserProvidedFunctionAppFromStaticSiteBuild() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewStaticSitesClient().DetachUserProvidedFunctionAppFromStaticSiteBuild(ctx, "rg", "testStaticSite0", "12", "testFunctionApp", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/StaticSiteBuildZipDeploy.json -func ExampleStaticSitesClient_BeginCreateZipDeploymentForStaticSiteBuild() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().BeginCreateZipDeploymentForStaticSiteBuild(ctx, "rg", "testStaticSite0", "12", armappservice.StaticSiteZipDeploymentARMResource{ - Properties: &armappservice.StaticSiteZipDeployment{ - APIZipURL: to.Ptr("https://teststorageaccount.net/happy-sea-15afae3e-master-81828877/api-zipdeploy.zip"), - AppZipURL: to.Ptr("https://teststorageaccount.net/happy-sea-15afae3e-master-81828877/app-zipdeploy.zip"), - DeploymentTitle: to.Ptr("Update index.html"), - FunctionLanguage: to.Ptr("testFunctionLanguage"), - Provider: to.Ptr("testProvider"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/CreateOrUpdateStaticSiteAppSettings.json -func ExampleStaticSitesClient_CreateOrUpdateStaticSiteAppSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().CreateOrUpdateStaticSiteAppSettings(ctx, "rg", "testStaticSite0", armappservice.StringDictionary{ - Properties: map[string]*string{ - "setting1": to.Ptr("someval"), - "setting2": to.Ptr("someval2"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/config/appSettings"), - // Properties: map[string]*string{ - // "setting1": to.Ptr("someval"), - // "setting2": to.Ptr("someval2"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListStaticSiteBasicAuth.json -func ExampleStaticSitesClient_NewListBasicAuthPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewListBasicAuthPager("rg", "testStaticSite0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteBasicAuthPropertiesCollection = armappservice.StaticSiteBasicAuthPropertiesCollection{ - // Value: []*armappservice.StaticSiteBasicAuthPropertiesARMResource{ - // { - // Name: to.Ptr("default"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/basicAuth/default"), - // Properties: &armappservice.StaticSiteBasicAuthPropertiesARMResourceProperties{ - // ApplicableEnvironmentsMode: to.Ptr("AllEnvironments"), - // SecretState: to.Ptr("Password"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetStaticSiteBasicAuth.json -func ExampleStaticSitesClient_GetBasicAuth() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetBasicAuth(ctx, "rg", "testStaticSite0", armappservice.BasicAuthNameDefault, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteBasicAuthPropertiesARMResource = armappservice.StaticSiteBasicAuthPropertiesARMResource{ - // Name: to.Ptr("default"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/basicAuth/default"), - // Properties: &armappservice.StaticSiteBasicAuthPropertiesARMResourceProperties{ - // ApplicableEnvironmentsMode: to.Ptr("AllEnvironments"), - // SecretState: to.Ptr("Password"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/CreateOrUpdateStaticSiteBasicAuth.json -func ExampleStaticSitesClient_CreateOrUpdateBasicAuth() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().CreateOrUpdateBasicAuth(ctx, "rg", "testStaticSite0", armappservice.BasicAuthNameDefault, armappservice.StaticSiteBasicAuthPropertiesARMResource{ - Properties: &armappservice.StaticSiteBasicAuthPropertiesARMResourceProperties{ - ApplicableEnvironmentsMode: to.Ptr("AllEnvironments"), - Password: to.Ptr("**********************"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteBasicAuthPropertiesARMResource = armappservice.StaticSiteBasicAuthPropertiesARMResource{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/basicAuth/default"), - // Properties: &armappservice.StaticSiteBasicAuthPropertiesARMResourceProperties{ - // ApplicableEnvironmentsMode: to.Ptr("AllEnvironments"), - // SecretState: to.Ptr("Password"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/CreateOrUpdateStaticSiteFunctionAppSettings.json -func ExampleStaticSitesClient_CreateOrUpdateStaticSiteFunctionAppSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().CreateOrUpdateStaticSiteFunctionAppSettings(ctx, "rg", "testStaticSite0", armappservice.StringDictionary{ - Properties: map[string]*string{ - "setting1": to.Ptr("someval"), - "setting2": to.Ptr("someval2"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/config/appSettings"), - // Properties: map[string]*string{ - // "setting1": to.Ptr("someval"), - // "setting2": to.Ptr("someval2"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/CreateUserRolesInvitationLink.json -func ExampleStaticSitesClient_CreateUserRolesInvitationLink() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().CreateUserRolesInvitationLink(ctx, "rg", "testStaticSite0", armappservice.StaticSiteUserInvitationRequestResource{ - Properties: &armappservice.StaticSiteUserInvitationRequestResourceProperties{ - Domain: to.Ptr("happy-sea-15afae3e.azurestaticwebsites.net"), - NumHoursToExpiration: to.Ptr[int32](1), - Provider: to.Ptr("aad"), - Roles: to.Ptr("admin,contributor"), - UserDetails: to.Ptr("username"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteUserInvitationResponseResource = armappservice.StaticSiteUserInvitationResponseResource{ - // Properties: &armappservice.StaticSiteUserInvitationResponseResourceProperties{ - // ExpiresOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-28T16:53:56.211Z"); return t}()), - // InvitationURL: to.Ptr("https://happy-sea-15afae3e.azurestaticwebsites.net?invite=asdf"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetStaticSiteCustomDomains.json -func ExampleStaticSitesClient_NewListStaticSiteCustomDomainsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewListStaticSiteCustomDomainsPager("rg", "testStaticSite0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteCustomDomainOverviewCollection = armappservice.StaticSiteCustomDomainOverviewCollection{ - // Value: []*armappservice.StaticSiteCustomDomainOverviewARMResource{ - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSitesBuilds/testStaticSite0/customDomains/custom.domain.net"), - // Properties: &armappservice.StaticSiteCustomDomainOverviewARMResourceProperties{ - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // DomainName: to.Ptr("custom.domain.net"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetStaticSiteCustomDomain.json -func ExampleStaticSitesClient_GetStaticSiteCustomDomain() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetStaticSiteCustomDomain(ctx, "rg", "testStaticSite0", "custom.domain.net", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteCustomDomainOverviewARMResource = armappservice.StaticSiteCustomDomainOverviewARMResource{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSitesBuilds/testStaticSite0/customDomains/custom.domain.net"), - // Properties: &armappservice.StaticSiteCustomDomainOverviewARMResourceProperties{ - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // DomainName: to.Ptr("custom.domain.net"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/CreateOrUpdateStaticSiteCustomDomain.json -func ExampleStaticSitesClient_BeginCreateOrUpdateStaticSiteCustomDomain() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().BeginCreateOrUpdateStaticSiteCustomDomain(ctx, "rg", "testStaticSite0", "custom.domain.net", armappservice.StaticSiteCustomDomainRequestPropertiesARMResource{ - Properties: &armappservice.StaticSiteCustomDomainRequestPropertiesARMResourceProperties{}, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteCustomDomainOverviewARMResource = armappservice.StaticSiteCustomDomainOverviewARMResource{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSitesBuilds/testStaticSite0/customDomains/custom.domain.net"), - // Properties: &armappservice.StaticSiteCustomDomainOverviewARMResourceProperties{ - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // DomainName: to.Ptr("custom.domain.net"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/DeleteStaticSiteCustomDomain.json -func ExampleStaticSitesClient_BeginDeleteStaticSiteCustomDomain() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().BeginDeleteStaticSiteCustomDomain(ctx, "rg", "testStaticSite0", "custom.domain.net", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ValidateStaticSiteCustomDomain.json -func ExampleStaticSitesClient_BeginValidateCustomDomainCanBeAddedToStaticSite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().BeginValidateCustomDomainCanBeAddedToStaticSite(ctx, "rg", "testStaticSite0", "custom.domain.net", armappservice.StaticSiteCustomDomainRequestPropertiesARMResource{ - Properties: &armappservice.StaticSiteCustomDomainRequestPropertiesARMResourceProperties{}, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetStaticSiteDatabaseConnections.json -func ExampleStaticSitesClient_NewGetDatabaseConnectionsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetDatabaseConnectionsPager("rg", "testStaticSite0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DatabaseConnectionCollection = armappservice.DatabaseConnectionCollection{ - // Value: []*armappservice.DatabaseConnection{ - // { - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetStaticSiteDatabaseConnection.json -func ExampleStaticSitesClient_GetDatabaseConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetDatabaseConnection(ctx, "rg", "testStaticSite0", "default", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DatabaseConnection = armappservice.DatabaseConnection{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/CreateOrUpdateStaticSiteDatabaseConnection.json -func ExampleStaticSitesClient_CreateOrUpdateDatabaseConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().CreateOrUpdateDatabaseConnection(ctx, "rg", "testStaticSite0", "default", armappservice.DatabaseConnection{ - Properties: &armappservice.DatabaseConnectionProperties{ - ConnectionIdentity: to.Ptr("SystemAssigned"), - ConnectionString: to.Ptr("AccountEndpoint=https://exampleDatabaseName.documents.azure.com:443/;Database=mydb;"), - Region: to.Ptr("West US 2"), - ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DatabaseConnection = armappservice.DatabaseConnection{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/DeleteStaticSiteDatabaseConnection.json -func ExampleStaticSitesClient_DeleteDatabaseConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewStaticSitesClient().DeleteDatabaseConnection(ctx, "rg", "testStaticSite0", "default", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/PatchStaticSiteDatabaseConnection.json -func ExampleStaticSitesClient_UpdateDatabaseConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().UpdateDatabaseConnection(ctx, "rg", "testStaticSite0", "default", armappservice.DatabaseConnectionPatchRequest{ - Properties: &armappservice.DatabaseConnectionPatchRequestProperties{}, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DatabaseConnection = armappservice.DatabaseConnection{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetStaticSiteDatabaseConnectionWithDetails.json -func ExampleStaticSitesClient_GetDatabaseConnectionWithDetails() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetDatabaseConnectionWithDetails(ctx, "rg", "testStaticSite0", "default", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DatabaseConnection = armappservice.DatabaseConnection{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConfigurationFiles: []*armappservice.StaticSiteDatabaseConnectionConfigurationFileOverview{ - // { - // Type: to.Ptr("configuration"), - // Contents: to.Ptr("base64encodeddatabaseconfiguration"), - // FileName: to.Ptr("staticwebapp.database.config.json"), - // }, - // { - // Type: to.Ptr("graphqlschema"), - // Contents: to.Ptr("base64encodeddatabasegraphqlschema"), - // FileName: to.Ptr("staticwebapp.database.schema.gql"), - // }}, - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // ConnectionString: to.Ptr("AccountEndpoint=https://exampleDatabaseName.documents.azure.com:443/;Database=mydb;"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/DetachStaticSite.json -func ExampleStaticSitesClient_BeginDetachStaticSite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().BeginDetachStaticSite(ctx, "rg", "testStaticSite0", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListStaticSiteFunctions.json -func ExampleStaticSitesClient_NewListStaticSiteFunctionsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewListStaticSiteFunctionsPager("rg", "testStaticSite0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteFunctionOverviewCollection = armappservice.StaticSiteFunctionOverviewCollection{ - // Value: []*armappservice.StaticSiteFunctionOverviewARMResource{ - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/functions/GetList"), - // Properties: &armappservice.StaticSiteFunctionOverviewARMResourceProperties{ - // FunctionName: to.Ptr("GetList"), - // TriggerType: to.Ptr(armappservice.TriggerTypesHTTPTrigger), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListStaticSiteAppSettings.json -func ExampleStaticSitesClient_ListStaticSiteAppSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().ListStaticSiteAppSettings(ctx, "rg", "testStaticSite0", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/appSettings"), - // Properties: map[string]*string{ - // "setting0": to.Ptr("someVal"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListStaticSiteConfiguredRoles.json -func ExampleStaticSitesClient_ListStaticSiteConfiguredRoles() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().ListStaticSiteConfiguredRoles(ctx, "rg", "testStaticSite0", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringList = armappservice.StringList{ - // Properties: []*string{ - // to.Ptr("authenticated"), - // to.Ptr("anonymous"), - // to.Ptr("customRole1")}, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListStaticSiteFunctionAppSettings.json -func ExampleStaticSitesClient_ListStaticSiteFunctionAppSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().ListStaticSiteFunctionAppSettings(ctx, "rg", "testStaticSite0", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/config/appsettings"), - // Properties: map[string]*string{ - // "setting0": to.Ptr("someVal"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListStaticSiteSecrets.json -func ExampleStaticSitesClient_ListStaticSiteSecrets() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().ListStaticSiteSecrets(ctx, "rg", "testStaticSite0", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // Properties: map[string]*string{ - // "dnsOwnershipKey": to.Ptr("ownershipKey123123"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetSitePrivateEndpointConnectionList.json -func ExampleStaticSitesClient_NewGetPrivateEndpointConnectionListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetPrivateEndpointConnectionListPager("rg", "testStaticSite0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.PrivateEndpointConnectionCollection = armappservice.PrivateEndpointConnectionCollection{ - // Value: []*armappservice.RemotePrivateEndpointConnectionARMResource{ - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/privateEndpointConnections/connection"), - // Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - // PrivateEndpoint: &armappservice.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - // Description: to.Ptr("Approved by admin."), - // ActionsRequired: to.Ptr(""), - // Status: to.Ptr("Approved"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetSitePrivateEndpointConnection.json -func ExampleStaticSitesClient_GetPrivateEndpointConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetPrivateEndpointConnection(ctx, "rg", "testSite", "connection", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RemotePrivateEndpointConnectionARMResource = armappservice.RemotePrivateEndpointConnectionARMResource{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/privateEndpointConnections/connection"), - // Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - // PrivateEndpoint: &armappservice.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - // Description: to.Ptr("Approved by admin."), - // ActionsRequired: to.Ptr(""), - // Status: to.Ptr("Approved"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ApproveRejectSitePrivateEndpointConnection.json -func ExampleStaticSitesClient_BeginApproveOrRejectPrivateEndpointConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().BeginApproveOrRejectPrivateEndpointConnection(ctx, "rg", "testSite", "connection", armappservice.PrivateLinkConnectionApprovalRequestResource{ - Properties: &armappservice.PrivateLinkConnectionApprovalRequest{ - PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - Description: to.Ptr("Approved by admin."), - ActionsRequired: to.Ptr(""), - Status: to.Ptr("Approved"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RemotePrivateEndpointConnectionARMResource = armappservice.RemotePrivateEndpointConnectionARMResource{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/privateEndpointConnections/connection"), - // Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - // PrivateEndpoint: &armappservice.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - // Description: to.Ptr("Approved by admin."), - // ActionsRequired: to.Ptr(""), - // Status: to.Ptr("Approved"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/DeleteSitePrivateEndpointConnection.json -func ExampleStaticSitesClient_BeginDeletePrivateEndpointConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().BeginDeletePrivateEndpointConnection(ctx, "rg", "testSite", "connection", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Interface = map[string]any{ - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetSitePrivateLinkResources.json -func ExampleStaticSitesClient_GetPrivateLinkResources() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetPrivateLinkResources(ctx, "rg", "testSite", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.PrivateLinkResourcesWrapper = armappservice.PrivateLinkResourcesWrapper{ - // Value: []*armappservice.PrivateLinkResource{ - // { - // Name: to.Ptr("site"), - // Type: to.Ptr("Microsoft.Web/sites/privateLinkResources"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/privateLinkResources/site"), - // Properties: &armappservice.PrivateLinkResourceProperties{ - // GroupID: to.Ptr("sites"), - // RequiredMembers: []*string{ - // to.Ptr("sites")}, - // RequiredZoneNames: []*string{ - // to.Ptr("privatelink.testsite.azurewebsites.net")}, - // }, - // }}, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ResetStaticSiteApiKey.json -func ExampleStaticSitesClient_ResetStaticSiteAPIKey() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewStaticSitesClient().ResetStaticSiteAPIKey(ctx, "rg", "testStaticSite0", armappservice.StaticSiteResetPropertiesARMResource{ - Properties: &armappservice.StaticSiteResetPropertiesARMResourceProperties{ - RepositoryToken: to.Ptr("repoToken123"), - ShouldUpdateRepository: to.Ptr(true), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetStaticSiteDatabaseConnectionsWithDetails.json -func ExampleStaticSitesClient_NewGetDatabaseConnectionsWithDetailsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetDatabaseConnectionsWithDetailsPager("rg", "testStaticSite0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DatabaseConnectionCollection = armappservice.DatabaseConnectionCollection{ - // Value: []*armappservice.DatabaseConnection{ - // { - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConfigurationFiles: []*armappservice.StaticSiteDatabaseConnectionConfigurationFileOverview{ - // { - // Type: to.Ptr("configuration"), - // Contents: to.Ptr("base64encodeddatabaseconfiguration"), - // FileName: to.Ptr("staticwebapp.database.config.json"), - // }, - // { - // Type: to.Ptr("graphqlschema"), - // Contents: to.Ptr("base64encodeddatabasegraphqlschema"), - // FileName: to.Ptr("staticwebapp.database.schema.gql"), - // }}, - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // ConnectionString: to.Ptr("AccountEndpoint=https://exampleDatabaseName.documents.azure.com:443/;Database=mydb;"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetUserProvidedFunctionAppsForStaticSite.json -func ExampleStaticSitesClient_NewGetUserProvidedFunctionAppsForStaticSitePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetUserProvidedFunctionAppsForStaticSitePager("rg", "testStaticSite0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteUserProvidedFunctionAppsCollection = armappservice.StaticSiteUserProvidedFunctionAppsCollection{ - // Value: []*armappservice.StaticSiteUserProvidedFunctionAppARMResource{ - // { - // Name: to.Ptr("testFunctionApp"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/userProvidedFunctionApps"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/userProvidedFunctionApps/testFunctionApp"), - // Properties: &armappservice.StaticSiteUserProvidedFunctionAppARMResourceProperties{ - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // FunctionAppRegion: to.Ptr("West US 2"), - // FunctionAppResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testFunctionApp"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetUserProvidedFunctionAppForStaticSite.json -func ExampleStaticSitesClient_GetUserProvidedFunctionAppForStaticSite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetUserProvidedFunctionAppForStaticSite(ctx, "rg", "testStaticSite0", "testFunctionApp", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteUserProvidedFunctionAppARMResource = armappservice.StaticSiteUserProvidedFunctionAppARMResource{ - // Name: to.Ptr("testFunctionApp"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/userProvidedFunctionApps"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/userProvidedFunctionApps/testFunctionApp"), - // Properties: &armappservice.StaticSiteUserProvidedFunctionAppARMResourceProperties{ - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // FunctionAppRegion: to.Ptr("West US 2"), - // FunctionAppResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testFunctionApp"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/RegisterUserProvidedFunctionAppWithStaticSite.json -func ExampleStaticSitesClient_BeginRegisterUserProvidedFunctionAppWithStaticSite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().BeginRegisterUserProvidedFunctionAppWithStaticSite(ctx, "rg", "testStaticSite0", "testFunctionApp", armappservice.StaticSiteUserProvidedFunctionAppARMResource{ - Properties: &armappservice.StaticSiteUserProvidedFunctionAppARMResourceProperties{ - FunctionAppRegion: to.Ptr("West US 2"), - FunctionAppResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testFunctionApp"), - }, - }, &armappservice.StaticSitesClientBeginRegisterUserProvidedFunctionAppWithStaticSiteOptions{IsForced: to.Ptr(true)}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteUserProvidedFunctionAppARMResource = armappservice.StaticSiteUserProvidedFunctionAppARMResource{ - // Name: to.Ptr("testFunctionApp"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/userProvidedFunctionApps"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/userProvidedFunctionApps/testFunctionApp"), - // Properties: &armappservice.StaticSiteUserProvidedFunctionAppARMResourceProperties{ - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // FunctionAppRegion: to.Ptr("West US 2"), - // FunctionAppResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testFunctionApp"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/DetachUserProvidedFunctionAppFromStaticSite.json -func ExampleStaticSitesClient_DetachUserProvidedFunctionAppFromStaticSite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewStaticSitesClient().DetachUserProvidedFunctionAppFromStaticSite(ctx, "rg", "testStaticSite0", "testFunctionApp", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/StaticSiteZipDeploy.json -func ExampleStaticSitesClient_BeginCreateZipDeploymentForStaticSite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().BeginCreateZipDeploymentForStaticSite(ctx, "rg", "testStaticSite0", armappservice.StaticSiteZipDeploymentARMResource{ - Properties: &armappservice.StaticSiteZipDeployment{ - APIZipURL: to.Ptr("https://teststorageaccount.net/happy-sea-15afae3e-master-81828877/api-zipdeploy.zip"), - AppZipURL: to.Ptr("https://teststorageaccount.net/happy-sea-15afae3e-master-81828877/app-zipdeploy.zip"), - DeploymentTitle: to.Ptr("Update index.html"), - FunctionLanguage: to.Ptr("testFunctionLanguage"), - Provider: to.Ptr("testProvider"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ValidateLinkedBackendForStaticSite.json -func ExampleStaticSitesClient_BeginValidateBackend() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().BeginValidateBackend(ctx, "rg", "testStaticSite0", "testBackend", armappservice.StaticSiteLinkedBackendARMResource{ - Properties: &armappservice.StaticSiteLinkedBackendARMResourceProperties{ - BackendResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend"), - Region: to.Ptr("West US 2"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ValidateLinkedBackendForStaticSiteBuild.json -func ExampleStaticSitesClient_BeginValidateBackendForBuild() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().BeginValidateBackendForBuild(ctx, "rg", "testStaticSite0", "default", "testBackend", armappservice.StaticSiteLinkedBackendARMResource{ - Properties: &armappservice.StaticSiteLinkedBackendARMResourceProperties{ - BackendResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend"), - Region: to.Ptr("West US 2"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetLinkedBackendsForStaticSite.json -func ExampleStaticSitesClient_NewGetLinkedBackendsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetLinkedBackendsPager("rg", "testStaticSite0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteLinkedBackendsCollection = armappservice.StaticSiteLinkedBackendsCollection{ - // Value: []*armappservice.StaticSiteLinkedBackendARMResource{ - // { - // Name: to.Ptr("testBackend"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/linkedBackends"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/linkedBackends/testBackend"), - // Properties: &armappservice.StaticSiteLinkedBackendARMResourceProperties{ - // BackendResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testBackend"), - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Region: to.Ptr("West US 2"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetLinkedBackendsForStaticSiteBuild.json -func ExampleStaticSitesClient_NewGetLinkedBackendsForBuildPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetLinkedBackendsForBuildPager("rg", "testStaticSite0", "default", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteLinkedBackendsCollection = armappservice.StaticSiteLinkedBackendsCollection{ - // Value: []*armappservice.StaticSiteLinkedBackendARMResource{ - // { - // Name: to.Ptr("testBackend"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/linkedBackends"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/linkedBackends/testBackend"), - // Properties: &armappservice.StaticSiteLinkedBackendARMResourceProperties{ - // BackendResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testBackend"), - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Region: to.Ptr("West US 2"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetLinkedBackendForStaticSite.json -func ExampleStaticSitesClient_GetLinkedBackend() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetLinkedBackend(ctx, "rg", "testStaticSite0", "testBackend", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteLinkedBackendARMResource = armappservice.StaticSiteLinkedBackendARMResource{ - // Name: to.Ptr("testBackend"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/linkedBackends"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/linkedBackends/testBackend"), - // Properties: &armappservice.StaticSiteLinkedBackendARMResourceProperties{ - // BackendResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend"), - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-12-24T17:33:11.641Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Region: to.Ptr("West US 2"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/LinkBackendToStaticSite.json -func ExampleStaticSitesClient_BeginLinkBackend() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().BeginLinkBackend(ctx, "rg", "testStaticSite0", "testBackend", armappservice.StaticSiteLinkedBackendARMResource{ - Properties: &armappservice.StaticSiteLinkedBackendARMResourceProperties{ - BackendResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend"), - Region: to.Ptr("West US 2"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteLinkedBackendARMResource = armappservice.StaticSiteLinkedBackendARMResource{ - // Name: to.Ptr("testBackend"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/linkedBackends"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/linkedBackends/testBackend"), - // Properties: &armappservice.StaticSiteLinkedBackendARMResourceProperties{ - // BackendResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend"), - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-12-24T17:33:11.641Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Region: to.Ptr("West US 2"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/UnlinkBackendFromStaticSite.json -func ExampleStaticSitesClient_UnlinkBackend() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewStaticSitesClient().UnlinkBackend(ctx, "rg", "testStaticSite0", "testBackend", &armappservice.StaticSitesClientUnlinkBackendOptions{IsCleaningAuthConfig: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetLinkedBackendForStaticSiteBuild.json -func ExampleStaticSitesClient_GetLinkedBackendForBuild() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetLinkedBackendForBuild(ctx, "rg", "testStaticSite0", "default", "testBackend", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteLinkedBackendARMResource = armappservice.StaticSiteLinkedBackendARMResource{ - // Name: to.Ptr("testBackend"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/linkedBackends"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/linkedBackends/testBackend"), - // Properties: &armappservice.StaticSiteLinkedBackendARMResourceProperties{ - // BackendResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend"), - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-12-24T17:33:11.641Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Region: to.Ptr("West US 2"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/LinkBackendToStaticSiteBuild.json -func ExampleStaticSitesClient_BeginLinkBackendToBuild() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().BeginLinkBackendToBuild(ctx, "rg", "testStaticSite0", "default", "testBackend", armappservice.StaticSiteLinkedBackendARMResource{ - Properties: &armappservice.StaticSiteLinkedBackendARMResourceProperties{ - BackendResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend"), - Region: to.Ptr("West US 2"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteLinkedBackendARMResource = armappservice.StaticSiteLinkedBackendARMResource{ - // Name: to.Ptr("testBackend"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/linkedBackends"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/linkedBackends/testBackend"), - // Properties: &armappservice.StaticSiteLinkedBackendARMResourceProperties{ - // BackendResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend"), - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-12-24T17:33:11.641Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Region: to.Ptr("West US 2"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/UnlinkBackendFromStaticSiteBuild.json -func ExampleStaticSitesClient_UnlinkBackendFromBuild() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewStaticSitesClient().UnlinkBackendFromBuild(ctx, "rg", "testStaticSite0", "12", "testBackend", &armappservice.StaticSitesClientUnlinkBackendFromBuildOptions{IsCleaningAuthConfig: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/topleveldomains_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/topleveldomains_client_example_test.go deleted file mode 100644 index 45f81556d191..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/topleveldomains_client_example_test.go +++ /dev/null @@ -1,190 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-09-01/examples/ListTopLevelDomains.json -func ExampleTopLevelDomainsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewTopLevelDomainsClient().NewListPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.TopLevelDomainCollection = armappservice.TopLevelDomainCollection{ - // Value: []*armappservice.TopLevelDomain{ - // { - // Name: to.Ptr("com"), - // Type: to.Ptr("Microsoft.DomainRegistration/topLevelDomains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.DomainRegistration/topLevelDomains/com"), - // Properties: &armappservice.TopLevelDomainProperties{ - // Privacy: to.Ptr(true), - // }, - // }, - // { - // Name: to.Ptr("net"), - // Type: to.Ptr("Microsoft.DomainRegistration/topLevelDomains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.DomainRegistration/topLevelDomains/net"), - // Properties: &armappservice.TopLevelDomainProperties{ - // Privacy: to.Ptr(true), - // }, - // }, - // { - // Name: to.Ptr("co.uk"), - // Type: to.Ptr("Microsoft.DomainRegistration/topLevelDomains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.DomainRegistration/topLevelDomains/co.uk"), - // Properties: &armappservice.TopLevelDomainProperties{ - // Privacy: to.Ptr(false), - // }, - // }, - // { - // Name: to.Ptr("org"), - // Type: to.Ptr("Microsoft.DomainRegistration/topLevelDomains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.DomainRegistration/topLevelDomains/org"), - // Properties: &armappservice.TopLevelDomainProperties{ - // Privacy: to.Ptr(true), - // }, - // }, - // { - // Name: to.Ptr("nl"), - // Type: to.Ptr("Microsoft.DomainRegistration/topLevelDomains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.DomainRegistration/topLevelDomains/nl"), - // Properties: &armappservice.TopLevelDomainProperties{ - // Privacy: to.Ptr(true), - // }, - // }, - // { - // Name: to.Ptr("in"), - // Type: to.Ptr("Microsoft.DomainRegistration/topLevelDomains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.DomainRegistration/topLevelDomains/in"), - // Properties: &armappservice.TopLevelDomainProperties{ - // Privacy: to.Ptr(false), - // }, - // }, - // { - // Name: to.Ptr("biz"), - // Type: to.Ptr("Microsoft.DomainRegistration/topLevelDomains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.DomainRegistration/topLevelDomains/biz"), - // Properties: &armappservice.TopLevelDomainProperties{ - // Privacy: to.Ptr(true), - // }, - // }, - // { - // Name: to.Ptr("org.uk"), - // Type: to.Ptr("Microsoft.DomainRegistration/topLevelDomains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.DomainRegistration/topLevelDomains/org.uk"), - // Properties: &armappservice.TopLevelDomainProperties{ - // Privacy: to.Ptr(false), - // }, - // }, - // { - // Name: to.Ptr("co.in"), - // Type: to.Ptr("Microsoft.DomainRegistration/topLevelDomains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.DomainRegistration/topLevelDomains/co.in"), - // Properties: &armappservice.TopLevelDomainProperties{ - // Privacy: to.Ptr(false), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-09-01/examples/GetTopLevelDomain.json -func ExampleTopLevelDomainsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewTopLevelDomainsClient().Get(ctx, "com", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.TopLevelDomain = armappservice.TopLevelDomain{ - // Name: to.Ptr("com"), - // Type: to.Ptr("Microsoft.DomainRegistration/topLevelDomains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.DomainRegistration/topLevelDomains/com"), - // Properties: &armappservice.TopLevelDomainProperties{ - // Privacy: to.Ptr(true), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-09-01/examples/ListTopLevelDomainAgreements.json -func ExampleTopLevelDomainsClient_NewListAgreementsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewTopLevelDomainsClient().NewListAgreementsPager("in", armappservice.TopLevelDomainAgreementOption{ - ForTransfer: to.Ptr(false), - IncludePrivacy: to.Ptr(true), - }, nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.TldLegalAgreementCollection = armappservice.TldLegalAgreementCollection{ - // Value: []*armappservice.TldLegalAgreement{ - // { - // AgreementKey: to.Ptr("DNRA"), - // Content: to.Ptr("\n\n\n\n\n
\n\n\n\n\n\n\n
\nDomain Name Registration Agreement\n
\n

Last Revised: October 6, 2017

\n

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

\r\n

1. OVERVIEW

\r\n

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

\r\n

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

\r\n

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

\r\n

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

\r\n

2. PROVISIONS SPECIFIC TO ALL REGISTRATIONS

\r\n

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

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

3. FEES AND PAYMENTS

\r\n

(A) GENERAL TERMS, INCLUDING AUTOMATIC RENEWAL TERMS

\r\n

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

\r\n

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

\r\n

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

\r\n

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

\r\n

(B) DOMAIN NAME RENEWAL TERMS

\r\n

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

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

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

\r\n

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

\r\n

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

\r\n

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

\r\n

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

\r\n

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

\r\n

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

\r\n

\r\n

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

\r\n

\r\n

\r\n

(C) FREE PRODUCT TERMS

\r\n

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

\r\n

4. TERM OF AGREEMENT; TRANSFERS; DOMAIN TASTING

\r\n

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

\r\n

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

\r\n

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

\r\n

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

\r\n

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

\r\n

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

\r\n

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

\r\n

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

\r\n

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

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

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

\r\n

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

\r\n

\r\n

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

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

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

\r\n

6. DISPUTE RESOLUTION POLICY

\r\n

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

\r\n

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

\r\n

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

\r\n

\r\n

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

\r\n

\r\n

7. TRANSFER OF DOMAIN NAMES; RESALE PRACTICES

\r\n

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

\r\n

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

\r\n

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

\r\n

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

\r\n

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

\r\n

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

\r\n

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

\r\n

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

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

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

\r\n

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

\r\n

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

\r\n

9. RESTRICTION OF SERVICES; RIGHT OF REFUSAL

\r\n

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

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

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

\r\n

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

\r\n

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

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

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

\r\n

10. DEFAULT SETTINGS; PARKED PAGE

\r\n

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

\r\n

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

\r\n

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

\r\n

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

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

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

\r\n

11. DOMAIN ADD-ONS

\r\n

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

\r\n

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

\r\n

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

\r\n

\r\n

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

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

\r\n

\r\n

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

\r\n

\r\n

12. PRE-REGISTRATIONS

\r\n

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

\r\n

13. PROVISIONS SPECIFIC TO .BIZ REGISTRATIONS

\r\n

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

\r\n

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

\r\n

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

\r\n

\r\n

14. PROVISIONS SPECIFIC TO .INFO REGISTRATIONS 

\r\n

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

\r\n

15. PROVISIONS SPECIFIC TO .MOBI REGISTRATIONS 

\r\n

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

\r\n

\r\n

16. PROVISIONS SPECIFIC TO .NAME REGISTRATIONS 

\r\n

\r\n

17. PROVISIONS SPECIFIC TO .REISE REGISTRATIONS

\r\n

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

\r\n

18. PROVISIONS SPECIFIC TO .SEXY REGISTRATIONS

\r\n

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

\r\n

19. COUNTRY CODE TOP LEVEL DOMAINS

\r\n

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

\r\n

(A) PROVISIONS SPECIFIC TO .AU REGISTRATIONS 

\r\n

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

\r\n

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

\r\n

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

\r\n

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

\r\n

(B) PROVISIONS SPECIFIC TO .CA REGISTRATIONS

\r\n

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

\r\n

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

\r\n

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

\r\n

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

\r\n

(C) PROVISIONS SPECIFIC TO .CN REGISTRATIONS 

\r\n

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

\r\n

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

\r\n

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

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

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

\r\n

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

\r\n

(D) PROVISIONS SPECIFIC TO .JP REGISTRATIONS

\r\n

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

\r\n

20. ENGLISH LANGUAGE CONTROLS

\r\n

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

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

Last Revised: October 25, 2017

\n

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

\r\n

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

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

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

\r\n

1. description of DBP's private registration services

\r\n

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

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

2. full benefits of domain registration retained by you

\r\n

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

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

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

\r\n

Personal Information and Your Notification Obligations 

\r\n

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

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

You agree to:

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

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

\r\n

Renewals

\r\n

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

\r\n

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

\r\n

Representations and Warranties

\r\n

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

\r\n

Account Security

\r\n

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

\r\n

Designated Agency and Change of Registrant Information

\r\n

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

\r\n

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

\r\n

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

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

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

\r\n

In the event:

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

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

\r\n

5. communications forwarding

\r\n

a. Correspondence Forwarding

\r\n

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

\r\n

b. Email Forwarding

\r\n

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

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

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

\r\n

c. Notifications Regarding Correspondence and Your Obligation to Respond

\r\n

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

\r\n

d. Additional Administrative Fees

\r\n

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

\r\n

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

\r\n

6. limitations of liability

\r\n

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

\r\n

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

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

7. indemnity

\r\n

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

\r\n

8. DBP warranty disclaimer

\r\n

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

\r\n

9. copyright and trademark

\r\n

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

\r\n

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

\r\n

10. miscellaneous provisions

\r\n

a. Severability; Construction; Entire Agreement

\r\n

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

\r\n

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

\r\n

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

\r\n

c. Notices

\r\n

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

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

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

\r\n

d. Insurance

\r\n

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

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

e. Indemnification

\r\n

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

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

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

\r\n

f. Term of Agreement; Survival

\r\n

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

\n
\n
\n\nRevised: 10/25/17
\nCopyright © 2003-2017 All Rights Reserved.\n
\n
\n
"), - // Title: to.Ptr("Domain Name Proxy Agreement"), - // URL: to.Ptr("http://www.secureserver.net/agreements/ShowDoc.aspx?pageid=domain_nameproxy&pl_id=510456"), - // }}, - // } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/webapps_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/webapps_client_example_test.go deleted file mode 100644 index 6e7f3d10393c..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/webapps_client_example_test.go +++ /dev/null @@ -1,4327 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "time" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListWebApps.json -func ExampleWebAppsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WebAppCollection = armappservice.WebAppCollection{ - // Value: []*armappservice.Site{ - // { - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net"), - // to.Ptr("sitef6141.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // }, - // { - // Name: to.Ptr("sitef7252"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef7252"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef7252.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef7252.azurewebsites.net"), - // to.Ptr("sitef7252.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef7252.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef7252.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef7252.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef7252"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListWebAppsByResourceGroup.json -func ExampleWebAppsClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListByResourceGroupPager("testrg123", &armappservice.WebAppsClientListByResourceGroupOptions{IncludeSlots: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WebAppCollection = armappservice.WebAppCollection{ - // Value: []*armappservice.Site{ - // { - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net"), - // to.Ptr("sitef6141.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // }, - // { - // Name: to.Ptr("sitef7252"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef7252"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef7252.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef7252.azurewebsites.net"), - // to.Ptr("sitef7252.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef7252.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef7252.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef7252.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef7252"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetWebApp.json -func ExampleWebAppsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().Get(ctx, "testrg123", "sitef6141", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Site = armappservice.Site{ - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net"), - // to.Ptr("sitef6141.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/CloneWebApp.json -func ExampleWebAppsClient_BeginCreateOrUpdate_cloneWebApp() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().BeginCreateOrUpdate(ctx, "testrg123", "sitef6141", armappservice.Site{ - Kind: to.Ptr("app"), - Location: to.Ptr("East US"), - Properties: &armappservice.SiteProperties{ - CloningInfo: &armappservice.CloningInfo{ - AppSettingsOverrides: map[string]*string{ - "Setting1": to.Ptr("NewValue1"), - "Setting3": to.Ptr("NewValue5"), - }, - CloneCustomHostNames: to.Ptr(true), - CloneSourceControl: to.Ptr(true), - ConfigureLoadBalancing: to.Ptr(false), - HostingEnvironment: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg456/providers/Microsoft.Web/hostingenvironments/aseforsites"), - Overwrite: to.Ptr(false), - SourceWebAppID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg456/providers/Microsoft.Web/sites/srcsiteg478"), - SourceWebAppLocation: to.Ptr("West Europe"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Site = armappservice.Site{ - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net"), - // to.Ptr("sitef6141.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/CreateOrUpdateWebApp.json -func ExampleWebAppsClient_BeginCreateOrUpdate_createOrUpdateWebApp() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().BeginCreateOrUpdate(ctx, "testrg123", "sitef6141", armappservice.Site{ - Kind: to.Ptr("app"), - Location: to.Ptr("East US"), - Properties: &armappservice.SiteProperties{ - ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Site = armappservice.Site{ - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net"), - // to.Ptr("sitef6141.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/DeleteWebApp.json -func ExampleWebAppsClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWebAppsClient().Delete(ctx, "testrg123", "sitef6141", &armappservice.WebAppsClientDeleteOptions{DeleteMetrics: nil, - DeleteEmptyServerFarm: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/UpdateWebApp.json -func ExampleWebAppsClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().Update(ctx, "testrg123", "sitef6141", armappservice.SitePatchResource{ - Properties: &armappservice.SitePatchResourceProperties{ - ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Site = armappservice.Site{ - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net"), - // to.Ptr("sitef6141.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AnalyzeCustomHostName.json -func ExampleWebAppsClient_AnalyzeCustomHostname() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().AnalyzeCustomHostname(ctx, "testrg123", "sitef6141", &armappservice.WebAppsClientAnalyzeCustomHostnameOptions{HostName: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CustomHostnameAnalysisResult = armappservice.CustomHostnameAnalysisResult{ - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141"), - // Properties: &armappservice.CustomHostnameAnalysisResultProperties{ - // CNameRecords: []*string{ - // to.Ptr("siteog.azurewebsites.net")}, - // ConflictingAppResourceID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/siteog"), - // CustomDomainVerificationFailureInfo: &armappservice.ErrorEntity{ - // Code: to.Ptr("07198"), - // Message: to.Ptr("Custom domain verification failed on conflicting CNAMEs."), - // }, - // CustomDomainVerificationTest: to.Ptr(armappservice.DNSVerificationTestResultPassed), - // HasConflictAcrossSubscription: to.Ptr(true), - // HasConflictOnScaleUnit: to.Ptr(false), - // IsHostnameAlreadyVerified: to.Ptr(true), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ApplySlotConfig.json -func ExampleWebAppsClient_ApplySlotConfigToProduction() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWebAppsClient().ApplySlotConfigToProduction(ctx, "testrg123", "sitef6141", armappservice.CsmSlotEntity{ - PreserveVnet: to.Ptr(true), - TargetSlot: to.Ptr("staging"), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/BackupWebApp.json -func ExampleWebAppsClient_Backup() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().Backup(ctx, "testrg123", "sitef6141", armappservice.BackupRequest{ - Properties: &armappservice.BackupRequestProperties{ - BackupName: to.Ptr("abcdwe"), - BackupSchedule: &armappservice.BackupSchedule{ - FrequencyInterval: to.Ptr[int32](7), - FrequencyUnit: to.Ptr(armappservice.FrequencyUnitDay), - KeepAtLeastOneBackup: to.Ptr(true), - RetentionPeriodInDays: to.Ptr[int32](30), - StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-02T17:33:11.641Z"); return t }()), - }, - Databases: []*armappservice.DatabaseBackupSetting{ - { - Name: to.Ptr("backenddb"), - ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - ConnectionStringName: to.Ptr("backend"), - DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - }, - { - Name: to.Ptr("statsdb"), - ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - ConnectionStringName: to.Ptr("stats"), - DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - }}, - Enabled: to.Ptr(true), - StorageAccountURL: to.Ptr("DefaultEndpointsProtocol=https;AccountName=storagesample;AccountKey="), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.BackupItem = armappservice.BackupItem{ - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141"), - // Properties: &armappservice.BackupItemProperties{ - // Name: to.Ptr("sitef6141_2022-09-01"), - // BlobName: to.Ptr("sitef6141_2022-09-01"), - // Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-03T17:33:11.641Z"); return t}()), - // Databases: []*armappservice.DatabaseBackupSetting{ - // { - // Name: to.Ptr("backenddb"), - // ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - // ConnectionStringName: to.Ptr("backend"), - // DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - // }, - // { - // Name: to.Ptr("statsdb"), - // ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - // ConnectionStringName: to.Ptr("stats"), - // DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - // }}, - // FinishedTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-02T17:33:11.641Z"); return t}()), - // BackupID: to.Ptr[int32](12345), - // LastRestoreTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-04T17:33:11.641Z"); return t}()), - // Log: to.Ptr("Succeeded"), - // Scheduled: to.Ptr(true), - // SizeInBytes: to.Ptr[int64](56091883), - // Status: to.Ptr(armappservice.BackupItemStatusInProgress), - // StorageAccountURL: to.Ptr("DefaultEndpointsProtocol=https;AccountName=storagesample;AccountKey="), - // WebsiteSizeInBytes: to.Ptr[int64](56091883), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListWebAppBackups.json -func ExampleWebAppsClient_NewListBackupsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListBackupsPager("testrg123", "sitef6141", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.BackupItemCollection = armappservice.BackupItemCollection{ - // Value: []*armappservice.BackupItem{ - // { - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/backups/12345"), - // Properties: &armappservice.BackupItemProperties{ - // Name: to.Ptr("sitef6141_2022-09-01"), - // BlobName: to.Ptr("sitef6141_2022-09-01"), - // Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-03T17:33:11.641Z"); return t}()), - // Databases: []*armappservice.DatabaseBackupSetting{ - // { - // Name: to.Ptr("backenddb"), - // ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - // ConnectionStringName: to.Ptr("backend"), - // DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - // }, - // { - // Name: to.Ptr("statsdb"), - // ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - // ConnectionStringName: to.Ptr("stats"), - // DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - // }}, - // FinishedTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-05T17:33:11.641Z"); return t}()), - // BackupID: to.Ptr[int32](12345), - // LastRestoreTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-04T17:33:11.641Z"); return t}()), - // Log: to.Ptr("Succeeded"), - // Scheduled: to.Ptr(true), - // SizeInBytes: to.Ptr[int64](56091883), - // Status: to.Ptr(armappservice.BackupItemStatusInProgress), - // StorageAccountURL: to.Ptr("DefaultEndpointsProtocol=https;AccountName=storagesample;AccountKey="), - // WebsiteSizeInBytes: to.Ptr[int64](56091883), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetWebAppBackup.json -func ExampleWebAppsClient_GetBackupStatus() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetBackupStatus(ctx, "testrg123", "sitef6141", "12345", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.BackupItem = armappservice.BackupItem{ - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/backups/12345"), - // Properties: &armappservice.BackupItemProperties{ - // Name: to.Ptr("sitef6141_2022-09-01"), - // BlobName: to.Ptr("sitef6141_2022-09-01"), - // Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-03T17:33:11.641Z"); return t}()), - // Databases: []*armappservice.DatabaseBackupSetting{ - // { - // Name: to.Ptr("backenddb"), - // ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - // ConnectionStringName: to.Ptr("backend"), - // DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - // }, - // { - // Name: to.Ptr("statsdb"), - // ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - // ConnectionStringName: to.Ptr("stats"), - // DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - // }}, - // FinishedTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-05T17:33:11.641Z"); return t}()), - // BackupID: to.Ptr[int32](12345), - // LastRestoreTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-04T17:33:11.641Z"); return t}()), - // Log: to.Ptr("Succeeded"), - // Scheduled: to.Ptr(true), - // SizeInBytes: to.Ptr[int64](56091883), - // Status: to.Ptr(armappservice.BackupItemStatusInProgress), - // StorageAccountURL: to.Ptr("DefaultEndpointsProtocol=https;AccountName=storagesample;AccountKey="), - // WebsiteSizeInBytes: to.Ptr[int64](56091883), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/DeleteWebAppBackup.json -func ExampleWebAppsClient_DeleteBackup() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWebAppsClient().DeleteBackup(ctx, "testrg123", "sitef6141", "12345", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetWebAppBackupWithSecrets.json -func ExampleWebAppsClient_ListBackupStatusSecrets() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().ListBackupStatusSecrets(ctx, "testrg123", "sitef6141", "12345", armappservice.BackupRequest{ - Properties: &armappservice.BackupRequestProperties{ - BackupName: to.Ptr("abcdwe"), - BackupSchedule: &armappservice.BackupSchedule{ - FrequencyInterval: to.Ptr[int32](7), - FrequencyUnit: to.Ptr(armappservice.FrequencyUnitDay), - KeepAtLeastOneBackup: to.Ptr(true), - RetentionPeriodInDays: to.Ptr[int32](30), - StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-02T17:33:11.641Z"); return t }()), - }, - Databases: []*armappservice.DatabaseBackupSetting{ - { - Name: to.Ptr("backenddb"), - ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - ConnectionStringName: to.Ptr("backend"), - DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - }, - { - Name: to.Ptr("statsdb"), - ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - ConnectionStringName: to.Ptr("stats"), - DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - }}, - Enabled: to.Ptr(true), - StorageAccountURL: to.Ptr("DefaultEndpointsProtocol=https;AccountName=storagesample;AccountKey="), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.BackupItem = armappservice.BackupItem{ - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/backups/12345"), - // Properties: &armappservice.BackupItemProperties{ - // Name: to.Ptr("sitef6141_2022-09-01"), - // BlobName: to.Ptr("sitef6141_2022-09-01"), - // Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-03T17:33:11.641Z"); return t}()), - // Databases: []*armappservice.DatabaseBackupSetting{ - // { - // Name: to.Ptr("backenddb"), - // ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - // ConnectionStringName: to.Ptr("backend"), - // DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - // }, - // { - // Name: to.Ptr("statsdb"), - // ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - // ConnectionStringName: to.Ptr("stats"), - // DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - // }}, - // FinishedTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-05T17:33:11.641Z"); return t}()), - // BackupID: to.Ptr[int32](12345), - // LastRestoreTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-04T17:33:11.641Z"); return t}()), - // Log: to.Ptr("Succeeded"), - // Scheduled: to.Ptr(true), - // SizeInBytes: to.Ptr[int64](56091883), - // Status: to.Ptr(armappservice.BackupItemStatusInProgress), - // StorageAccountURL: to.Ptr("DefaultEndpointsProtocol=https;AccountName=storagesample;AccountKey="), - // WebsiteSizeInBytes: to.Ptr[int64](56091883), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/RestoreWebAppBackup.json -func ExampleWebAppsClient_BeginRestore() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().BeginRestore(ctx, "testrg123", "sitef6141", "123244", armappservice.RestoreRequest{ - Properties: &armappservice.RestoreRequestProperties{ - Databases: []*armappservice.DatabaseBackupSetting{ - { - Name: to.Ptr("backenddb"), - ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - ConnectionStringName: to.Ptr("backend"), - DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - }, - { - Name: to.Ptr("statsdb"), - ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - ConnectionStringName: to.Ptr("stats"), - DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - }}, - Overwrite: to.Ptr(true), - SiteName: to.Ptr("sitef6141"), - StorageAccountURL: to.Ptr("DefaultEndpointsProtocol=https;AccountName=storagesample;AccountKey="), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListPublishingCredentialsPolicies.json -func ExampleWebAppsClient_NewListBasicPublishingCredentialsPoliciesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListBasicPublishingCredentialsPoliciesPager("testrg123", "testsite", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.PublishingCredentialsPoliciesCollection = armappservice.PublishingCredentialsPoliciesCollection{ - // Value: []*armappservice.CsmPublishingCredentialsPoliciesEntity{ - // { - // Name: to.Ptr("ftp"), - // Type: to.Ptr("Microsoft.Web/sites/basicPublishingCredentialsPolicies"), - // ID: to.Ptr("/subscriptions/3fb8d758-2e2c-42e9-a528-a8acdfe87237/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite/basicPublishingCredentialsPolicies/ftp"), - // Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - // Allow: to.Ptr(true), - // }, - // }, - // { - // Name: to.Ptr("scm"), - // Type: to.Ptr("Microsoft.Web/sites/basicPublishingCredentialsPolicies"), - // ID: to.Ptr("/subscriptions/3fb8d758-2e2c-42e9-a528-a8acdfe87237/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite/basicPublishingCredentialsPolicies/scm"), - // Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - // Allow: to.Ptr(true), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetPublishingCredentialsPolicy.json -func ExampleWebAppsClient_GetFtpAllowed() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetFtpAllowed(ctx, "rg", "testSite", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CsmPublishingCredentialsPoliciesEntity = armappservice.CsmPublishingCredentialsPoliciesEntity{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/basicPublishingCredentialsPolicies/ftp"), - // Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - // Allow: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/UpdatePublishingCredentialsPolicy.json -func ExampleWebAppsClient_UpdateFtpAllowed() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().UpdateFtpAllowed(ctx, "rg", "testSite", armappservice.CsmPublishingCredentialsPoliciesEntity{ - Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - Allow: to.Ptr(true), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CsmPublishingCredentialsPoliciesEntity = armappservice.CsmPublishingCredentialsPoliciesEntity{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/basicPublishingCredentialsPolicies/ftp"), - // Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - // Allow: to.Ptr(true), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListWebAppConfigurations.json -func ExampleWebAppsClient_NewListConfigurationsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListConfigurationsPager("testrg123", "sitef6141", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.SiteConfigResourceCollection = armappservice.SiteConfigResourceCollection{ - // Value: []*armappservice.SiteConfigResource{ - // { - // Name: to.Ptr("web"), - // Type: to.Ptr("Microsoft.Web/sites/config"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/web"), - // Kind: to.Ptr("app"), - // Properties: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/UpdateAppSettings.json -func ExampleWebAppsClient_UpdateApplicationSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().UpdateApplicationSettings(ctx, "testrg123", "sitef6141", armappservice.StringDictionary{ - Properties: map[string]*string{ - "Setting1": to.Ptr("Value1"), - "Setting2": to.Ptr("Value2"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // Name: to.Ptr("appsettings"), - // Type: to.Ptr("Microsoft.Web/sites/config"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/appsettings"), - // Kind: to.Ptr("app"), - // Properties: map[string]*string{ - // "Setting1": to.Ptr("Value1"), - // "Setting2": to.Ptr("Value2"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListAppSettings.json -func ExampleWebAppsClient_ListApplicationSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().ListApplicationSettings(ctx, "testrg123", "sitef6141", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // Name: to.Ptr("appsettings"), - // Type: to.Ptr("Microsoft.Web/sites/config"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/appsettings"), - // Kind: to.Ptr("app"), - // Properties: map[string]*string{ - // "Setting1": to.Ptr("Value1"), - // "Setting2": to.Ptr("Value2"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/UpdateAuthSettings.json -func ExampleWebAppsClient_UpdateAuthSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().UpdateAuthSettings(ctx, "testrg123", "sitef6141", armappservice.SiteAuthSettings{ - Properties: &armappservice.SiteAuthSettingsProperties{ - AllowedExternalRedirectUrls: []*string{ - to.Ptr("sitef6141.customdomain.net"), - to.Ptr("sitef6141.customdomain.info")}, - ClientID: to.Ptr("42d795a9-8abb-4d06-8534-39528af40f8e.apps.googleusercontent.com"), - DefaultProvider: to.Ptr(armappservice.BuiltInAuthenticationProviderGoogle), - Enabled: to.Ptr(true), - RuntimeVersion: to.Ptr("~1"), - TokenRefreshExtensionHours: to.Ptr[float64](120), - TokenStoreEnabled: to.Ptr(true), - UnauthenticatedClientAction: to.Ptr(armappservice.UnauthenticatedClientActionRedirectToLoginPage), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SiteAuthSettings = armappservice.SiteAuthSettings{ - // Name: to.Ptr("authsettings"), - // Type: to.Ptr("Microsoft.Web/sites/authsettings"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/authsettings"), - // Kind: to.Ptr("app"), - // Properties: &armappservice.SiteAuthSettingsProperties{ - // AllowedExternalRedirectUrls: []*string{ - // to.Ptr("sitef6141.customdomain.net"), - // to.Ptr("sitef6141.customdomain.info")}, - // ClientID: to.Ptr("42d795a9-8abb-4d06-8534-39528af40f8e.apps.googleusercontent.com"), - // DefaultProvider: to.Ptr(armappservice.BuiltInAuthenticationProviderGoogle), - // Enabled: to.Ptr(true), - // RuntimeVersion: to.Ptr("~1"), - // TokenRefreshExtensionHours: to.Ptr[float64](120), - // TokenStoreEnabled: to.Ptr(true), - // UnauthenticatedClientAction: to.Ptr(armappservice.UnauthenticatedClientActionRedirectToLoginPage), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListAuthSettings.json -func ExampleWebAppsClient_GetAuthSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetAuthSettings(ctx, "testrg123", "sitef6141", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SiteAuthSettings = armappservice.SiteAuthSettings{ - // Name: to.Ptr("authsettings"), - // Type: to.Ptr("Microsoft.Web/sites/authsettings"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/authsettings"), - // Kind: to.Ptr("app"), - // Properties: &armappservice.SiteAuthSettingsProperties{ - // AllowedExternalRedirectUrls: []*string{ - // to.Ptr("sitef6141.customdomain.net"), - // to.Ptr("sitef6141.customdomain.info")}, - // ClientID: to.Ptr("42d795a9-8abb-4d06-8534-39528af40f8e.apps.googleusercontent.com"), - // DefaultProvider: to.Ptr(armappservice.BuiltInAuthenticationProviderGoogle), - // Enabled: to.Ptr(true), - // RuntimeVersion: to.Ptr("~1"), - // TokenRefreshExtensionHours: to.Ptr[float64](120), - // TokenStoreEnabled: to.Ptr(true), - // UnauthenticatedClientAction: to.Ptr(armappservice.UnauthenticatedClientActionRedirectToLoginPage), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetAuthSettingsV2WithoutSecrets.json -func ExampleWebAppsClient_GetAuthSettingsV2WithoutSecrets() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetAuthSettingsV2WithoutSecrets(ctx, "testrg123", "sitef6141", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SiteAuthSettingsV2 = armappservice.SiteAuthSettingsV2{ - // Name: to.Ptr("authsettingsv2"), - // Type: to.Ptr("Microsoft.Web/sites/authsettingsv2"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/authsettingsv2"), - // Kind: to.Ptr("app"), - // Properties: &armappservice.SiteAuthSettingsV2Properties{ - // GlobalValidation: &armappservice.GlobalValidation{ - // ExcludedPaths: []*string{ - // to.Ptr("/nosecrets/Path")}, - // RequireAuthentication: to.Ptr(true), - // UnauthenticatedClientAction: to.Ptr(armappservice.UnauthenticatedClientActionV2Return403), - // }, - // HTTPSettings: &armappservice.HTTPSettings{ - // ForwardProxy: &armappservice.ForwardProxy{ - // Convention: to.Ptr(armappservice.ForwardProxyConventionStandard), - // CustomHostHeaderName: to.Ptr("authHeader"), - // CustomProtoHeaderName: to.Ptr("customProtoHeader"), - // }, - // RequireHTTPS: to.Ptr(true), - // Routes: &armappservice.HTTPSettingsRoutes{ - // APIPrefix: to.Ptr("/authv2/"), - // }, - // }, - // IdentityProviders: &armappservice.IdentityProviders{ - // Google: &armappservice.Google{ - // Enabled: to.Ptr(true), - // Login: &armappservice.LoginScopes{ - // Scopes: []*string{ - // to.Ptr("admin")}, - // }, - // Registration: &armappservice.ClientRegistration{ - // ClientID: to.Ptr("42d795a9-8abb-4d06-8534-39528af40f8e.apps.googleusercontent.com"), - // ClientSecretSettingName: to.Ptr("ClientSecret"), - // }, - // Validation: &armappservice.AllowedAudiencesValidation{ - // AllowedAudiences: []*string{ - // to.Ptr("https://example.com")}, - // }, - // }, - // }, - // Login: &armappservice.Login{ - // AllowedExternalRedirectUrls: []*string{ - // to.Ptr("https://someurl.com")}, - // CookieExpiration: &armappservice.CookieExpiration{ - // Convention: to.Ptr(armappservice.CookieExpirationConventionIdentityProviderDerived), - // TimeToExpiration: to.Ptr("2022:09-01T00:00Z"), - // }, - // Nonce: &armappservice.Nonce{ - // ValidateNonce: to.Ptr(true), - // }, - // PreserveURLFragmentsForLogins: to.Ptr(true), - // Routes: &armappservice.LoginRoutes{ - // LogoutEndpoint: to.Ptr("https://app.com/logout"), - // }, - // TokenStore: &armappservice.TokenStore{ - // Enabled: to.Ptr(true), - // FileSystem: &armappservice.FileSystemTokenStore{ - // Directory: to.Ptr("/wwwroot/sites/example"), - // }, - // TokenRefreshExtensionHours: to.Ptr[float64](96), - // }, - // }, - // Platform: &armappservice.AuthPlatform{ - // ConfigFilePath: to.Ptr("/auth/config.json"), - // Enabled: to.Ptr(true), - // RuntimeVersion: to.Ptr("~1"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/UpdateAuthSettingsV2.json -func ExampleWebAppsClient_UpdateAuthSettingsV2() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().UpdateAuthSettingsV2(ctx, "testrg123", "sitef6141", armappservice.SiteAuthSettingsV2{ - Properties: &armappservice.SiteAuthSettingsV2Properties{ - GlobalValidation: &armappservice.GlobalValidation{ - ExcludedPaths: []*string{ - to.Ptr("/nosecrets/Path")}, - RequireAuthentication: to.Ptr(true), - UnauthenticatedClientAction: to.Ptr(armappservice.UnauthenticatedClientActionV2Return403), - }, - HTTPSettings: &armappservice.HTTPSettings{ - ForwardProxy: &armappservice.ForwardProxy{ - Convention: to.Ptr(armappservice.ForwardProxyConventionStandard), - CustomHostHeaderName: to.Ptr("authHeader"), - CustomProtoHeaderName: to.Ptr("customProtoHeader"), - }, - RequireHTTPS: to.Ptr(true), - Routes: &armappservice.HTTPSettingsRoutes{ - APIPrefix: to.Ptr("/authv2/"), - }, - }, - IdentityProviders: &armappservice.IdentityProviders{ - Google: &armappservice.Google{ - Enabled: to.Ptr(true), - Login: &armappservice.LoginScopes{ - Scopes: []*string{ - to.Ptr("admin")}, - }, - Registration: &armappservice.ClientRegistration{ - ClientID: to.Ptr("42d795a9-8abb-4d06-8534-39528af40f8e.apps.googleusercontent.com"), - ClientSecretSettingName: to.Ptr("ClientSecret"), - }, - Validation: &armappservice.AllowedAudiencesValidation{ - AllowedAudiences: []*string{ - to.Ptr("https://example.com")}, - }, - }, - }, - Login: &armappservice.Login{ - AllowedExternalRedirectUrls: []*string{ - to.Ptr("https://someurl.com")}, - CookieExpiration: &armappservice.CookieExpiration{ - Convention: to.Ptr(armappservice.CookieExpirationConventionIdentityProviderDerived), - TimeToExpiration: to.Ptr("2022:09-01T00:00Z"), - }, - Nonce: &armappservice.Nonce{ - ValidateNonce: to.Ptr(true), - }, - PreserveURLFragmentsForLogins: to.Ptr(true), - Routes: &armappservice.LoginRoutes{ - LogoutEndpoint: to.Ptr("https://app.com/logout"), - }, - TokenStore: &armappservice.TokenStore{ - Enabled: to.Ptr(true), - FileSystem: &armappservice.FileSystemTokenStore{ - Directory: to.Ptr("/wwwroot/sites/example"), - }, - TokenRefreshExtensionHours: to.Ptr[float64](96), - }, - }, - Platform: &armappservice.AuthPlatform{ - ConfigFilePath: to.Ptr("/auth/config.json"), - Enabled: to.Ptr(true), - RuntimeVersion: to.Ptr("~1"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SiteAuthSettingsV2 = armappservice.SiteAuthSettingsV2{ - // Name: to.Ptr("authsettingsv2"), - // Type: to.Ptr("Microsoft.Web/sites/authsettingsv2"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/authsettingsv2"), - // Kind: to.Ptr("app"), - // Properties: &armappservice.SiteAuthSettingsV2Properties{ - // GlobalValidation: &armappservice.GlobalValidation{ - // ExcludedPaths: []*string{ - // to.Ptr("/nosecrets/Path")}, - // RequireAuthentication: to.Ptr(true), - // UnauthenticatedClientAction: to.Ptr(armappservice.UnauthenticatedClientActionV2Return403), - // }, - // HTTPSettings: &armappservice.HTTPSettings{ - // ForwardProxy: &armappservice.ForwardProxy{ - // Convention: to.Ptr(armappservice.ForwardProxyConventionStandard), - // CustomHostHeaderName: to.Ptr("authHeader"), - // CustomProtoHeaderName: to.Ptr("customProtoHeader"), - // }, - // RequireHTTPS: to.Ptr(true), - // Routes: &armappservice.HTTPSettingsRoutes{ - // APIPrefix: to.Ptr("/authv2/"), - // }, - // }, - // IdentityProviders: &armappservice.IdentityProviders{ - // Google: &armappservice.Google{ - // Enabled: to.Ptr(true), - // Login: &armappservice.LoginScopes{ - // Scopes: []*string{ - // to.Ptr("admin")}, - // }, - // Registration: &armappservice.ClientRegistration{ - // ClientID: to.Ptr("42d795a9-8abb-4d06-8534-39528af40f8e.apps.googleusercontent.com"), - // ClientSecretSettingName: to.Ptr("ClientSecret"), - // }, - // Validation: &armappservice.AllowedAudiencesValidation{ - // AllowedAudiences: []*string{ - // to.Ptr("https://example.com")}, - // }, - // }, - // }, - // Login: &armappservice.Login{ - // AllowedExternalRedirectUrls: []*string{ - // to.Ptr("https://someurl.com")}, - // CookieExpiration: &armappservice.CookieExpiration{ - // Convention: to.Ptr(armappservice.CookieExpirationConventionIdentityProviderDerived), - // TimeToExpiration: to.Ptr("2022:09-01T00:00Z"), - // }, - // Nonce: &armappservice.Nonce{ - // ValidateNonce: to.Ptr(true), - // }, - // PreserveURLFragmentsForLogins: to.Ptr(true), - // Routes: &armappservice.LoginRoutes{ - // LogoutEndpoint: to.Ptr("https://app.com/logout"), - // }, - // TokenStore: &armappservice.TokenStore{ - // Enabled: to.Ptr(true), - // FileSystem: &armappservice.FileSystemTokenStore{ - // Directory: to.Ptr("/wwwroot/sites/example"), - // }, - // TokenRefreshExtensionHours: to.Ptr[float64](96), - // }, - // }, - // Platform: &armappservice.AuthPlatform{ - // ConfigFilePath: to.Ptr("/auth/config.json"), - // Enabled: to.Ptr(true), - // RuntimeVersion: to.Ptr("~1"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListAuthSettingsV2.json -func ExampleWebAppsClient_GetAuthSettingsV2() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetAuthSettingsV2(ctx, "testrg123", "sitef6141", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SiteAuthSettingsV2 = armappservice.SiteAuthSettingsV2{ - // Name: to.Ptr("authsettingsv2"), - // Type: to.Ptr("Microsoft.Web/sites/authsettingsv2"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/authsettingsv2"), - // Kind: to.Ptr("app"), - // Properties: &armappservice.SiteAuthSettingsV2Properties{ - // GlobalValidation: &armappservice.GlobalValidation{ - // ExcludedPaths: []*string{ - // to.Ptr("/nosecrets/Path")}, - // RequireAuthentication: to.Ptr(true), - // UnauthenticatedClientAction: to.Ptr(armappservice.UnauthenticatedClientActionV2Return403), - // }, - // HTTPSettings: &armappservice.HTTPSettings{ - // ForwardProxy: &armappservice.ForwardProxy{ - // Convention: to.Ptr(armappservice.ForwardProxyConventionStandard), - // CustomHostHeaderName: to.Ptr("authHeader"), - // CustomProtoHeaderName: to.Ptr("customProtoHeader"), - // }, - // RequireHTTPS: to.Ptr(true), - // Routes: &armappservice.HTTPSettingsRoutes{ - // APIPrefix: to.Ptr("/authv2/"), - // }, - // }, - // IdentityProviders: &armappservice.IdentityProviders{ - // Google: &armappservice.Google{ - // Enabled: to.Ptr(true), - // Login: &armappservice.LoginScopes{ - // Scopes: []*string{ - // to.Ptr("admin")}, - // }, - // Registration: &armappservice.ClientRegistration{ - // ClientID: to.Ptr("42d795a9-8abb-4d06-8534-39528af40f8e.apps.googleusercontent.com"), - // ClientSecretSettingName: to.Ptr("ClientSecret"), - // }, - // Validation: &armappservice.AllowedAudiencesValidation{ - // AllowedAudiences: []*string{ - // to.Ptr("https://example.com")}, - // }, - // }, - // }, - // Login: &armappservice.Login{ - // AllowedExternalRedirectUrls: []*string{ - // to.Ptr("https://someurl.com")}, - // CookieExpiration: &armappservice.CookieExpiration{ - // Convention: to.Ptr(armappservice.CookieExpirationConventionIdentityProviderDerived), - // TimeToExpiration: to.Ptr("2022:09-01T00:00Z"), - // }, - // Nonce: &armappservice.Nonce{ - // ValidateNonce: to.Ptr(true), - // }, - // PreserveURLFragmentsForLogins: to.Ptr(true), - // Routes: &armappservice.LoginRoutes{ - // LogoutEndpoint: to.Ptr("https://app.com/logout"), - // }, - // TokenStore: &armappservice.TokenStore{ - // Enabled: to.Ptr(true), - // FileSystem: &armappservice.FileSystemTokenStore{ - // Directory: to.Ptr("/wwwroot/sites/example"), - // }, - // TokenRefreshExtensionHours: to.Ptr[float64](96), - // }, - // }, - // Platform: &armappservice.AuthPlatform{ - // ConfigFilePath: to.Ptr("/auth/config.json"), - // Enabled: to.Ptr(true), - // RuntimeVersion: to.Ptr("~1"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/UpdateAzureStorageAccounts.json -func ExampleWebAppsClient_UpdateAzureStorageAccounts() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().UpdateAzureStorageAccounts(ctx, "testrg123", "sitef6141", armappservice.AzureStoragePropertyDictionaryResource{ - Properties: map[string]*armappservice.AzureStorageInfoValue{ - "account1": { - Type: to.Ptr(armappservice.AzureStorageTypeAzureFiles), - AccessKey: to.Ptr("26515^%@#*"), - AccountName: to.Ptr("testsa"), - MountPath: to.Ptr("/mounts/a/files"), - ShareName: to.Ptr("web"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AzureStoragePropertyDictionaryResource = armappservice.AzureStoragePropertyDictionaryResource{ - // Name: to.Ptr("web"), - // Type: to.Ptr("Microsoft.Web/sites/config"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/web"), - // Kind: to.Ptr("app"), - // Properties: map[string]*armappservice.AzureStorageInfoValue{ - // "account1": &armappservice.AzureStorageInfoValue{ - // Type: to.Ptr(armappservice.AzureStorageTypeAzureFiles), - // AccountName: to.Ptr("testsa"), - // MountPath: to.Ptr("/mounts/a/files"), - // ShareName: to.Ptr("web"), - // State: to.Ptr(armappservice.AzureStorageStateOk), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetKeyVaultReferencesForAppSettings.json -func ExampleWebAppsClient_NewGetAppSettingsKeyVaultReferencesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewGetAppSettingsKeyVaultReferencesPager("testrg123", "testc6282", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.APIKVReferenceCollection = armappservice.APIKVReferenceCollection{ - // Value: []*armappservice.APIKVReference{ - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testc6282/config/configreferences/appsettings/secretName"), - // Properties: &armappservice.APIKVReferenceProperties{ - // SecretName: to.Ptr("secretName"), - // SecretVersion: to.Ptr("secretVersion"), - // VaultName: to.Ptr("keyVaultName"), - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testc6282/config/configreferences/appsettings/secretName2"), - // Properties: &armappservice.APIKVReferenceProperties{ - // SecretName: to.Ptr("secretName2"), - // SecretVersion: to.Ptr("secretVersion2"), - // VaultName: to.Ptr("keyVaultName"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetKeyVaultReferencesForAppSetting.json -func ExampleWebAppsClient_GetAppSettingKeyVaultReference() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetAppSettingKeyVaultReference(ctx, "testrg123", "testc6282", "setting", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.APIKVReference = armappservice.APIKVReference{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testc6282/config/configreferences/appsettings/setting"), - // Properties: &armappservice.APIKVReferenceProperties{ - // SecretName: to.Ptr("secretName"), - // SecretVersion: to.Ptr("secretVersion"), - // VaultName: to.Ptr("keyVaultName"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetSiteConfig.json -func ExampleWebAppsClient_GetConfiguration() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetConfiguration(ctx, "testrg123", "sitef6141", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SiteConfigResource = armappservice.SiteConfigResource{ - // Name: to.Ptr("web"), - // Type: to.Ptr("Microsoft.Web/sites/config"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/web"), - // Kind: to.Ptr("app"), - // Properties: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/UpdateSiteConfig.json -func ExampleWebAppsClient_CreateOrUpdateConfiguration() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().CreateOrUpdateConfiguration(ctx, "testrg123", "sitef6141", armappservice.SiteConfigResource{ - Properties: &armappservice.SiteConfig{ - AcrUseManagedIdentityCreds: to.Ptr(false), - AlwaysOn: to.Ptr(false), - AppCommandLine: to.Ptr(""), - AutoHealEnabled: to.Ptr(false), - AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{}, - DefaultDocuments: []*string{ - to.Ptr("Default.htm"), - to.Ptr("Default.html"), - to.Ptr("Default.asp"), - to.Ptr("index.htm"), - to.Ptr("index.html"), - to.Ptr("iisstart.htm"), - to.Ptr("default.aspx"), - to.Ptr("index.php"), - to.Ptr("hostingstart.html")}, - DetailedErrorLoggingEnabled: to.Ptr(false), - FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - FunctionAppScaleLimit: to.Ptr[int32](0), - FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - Http20Enabled: to.Ptr(false), - HTTPLoggingEnabled: to.Ptr(false), - LinuxFxVersion: to.Ptr(""), - LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - LogsDirectorySizeLimit: to.Ptr[int32](35), - ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - MinimumElasticInstanceCount: to.Ptr[int32](0), - NetFrameworkVersion: to.Ptr("v4.0"), - NodeVersion: to.Ptr(""), - NumberOfWorkers: to.Ptr[int32](1), - PhpVersion: to.Ptr("5.6"), - PowerShellVersion: to.Ptr(""), - PythonVersion: to.Ptr(""), - RemoteDebuggingEnabled: to.Ptr(false), - RequestTracingEnabled: to.Ptr(false), - ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - Use32BitWorkerProcess: to.Ptr(true), - VirtualApplications: []*armappservice.VirtualApplication{ - { - PhysicalPath: to.Ptr("site\\wwwroot"), - PreloadEnabled: to.Ptr(false), - VirtualPath: to.Ptr("/"), - }}, - VnetName: to.Ptr(""), - VnetPrivatePortsCount: to.Ptr[int32](0), - VnetRouteAllEnabled: to.Ptr(false), - WebSocketsEnabled: to.Ptr(false), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SiteConfigResource = armappservice.SiteConfigResource{ - // Name: to.Ptr("web"), - // Type: to.Ptr("Microsoft.Web/sites/config"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/web"), - // Kind: to.Ptr("app"), - // Properties: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListSiteDeploymentStatus.json -func ExampleWebAppsClient_NewListProductionSiteDeploymentStatusesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListProductionSiteDeploymentStatusesPager("rg", "testSite", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CsmDeploymentStatusCollection = armappservice.CsmDeploymentStatusCollection{ - // Value: []*armappservice.CsmDeploymentStatus{ - // }, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetSiteDeploymentStatus.json -func ExampleWebAppsClient_BeginGetProductionSiteDeploymentStatus() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().BeginGetProductionSiteDeploymentStatus(ctx, "rg", "testSite", "eacfd68b-3bbd-4ad9-99c5-98614d89c8e5", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CsmDeploymentStatus = armappservice.CsmDeploymentStatus{ - // Name: to.Ptr("eacfd68b-3bbd-4ad9-99c5-98614d89c8e5"), - // Type: to.Ptr("Microsoft.Web/sites/deploymentStatus"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/deploymentStatus/eacfd68b-3bbd-4ad9-99c5-98614d89c8e5"), - // Properties: &armappservice.CsmDeploymentStatusProperties{ - // DeploymentID: to.Ptr("eacfd68b-3bbd-4ad9-99c5-98614d89c8e5"), - // FailedInstancesLogs: []*string{ - // }, - // NumberOfInstancesFailed: to.Ptr[int32](0), - // NumberOfInstancesInProgress: to.Ptr[int32](0), - // NumberOfInstancesSuccessful: to.Ptr[int32](1), - // Status: to.Ptr(armappservice.DeploymentBuildStatusRuntimeSuccessful), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetSiteInstanceInfo.json -func ExampleWebAppsClient_GetInstanceInfo() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetInstanceInfo(ctx, "testrg123", "tests346", "134987120", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WebSiteInstanceStatus = armappservice.WebSiteInstanceStatus{ - // Name: to.Ptr("134987120"), - // Type: to.Ptr("Microsoft.Web/sites/instances"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/tests346/slot/staging/instances/134987120"), - // Properties: &armappservice.WebSiteInstanceStatusProperties{ - // Containers: map[string]*armappservice.ContainerInfo{ - // "c1": &armappservice.ContainerInfo{ - // CurrentTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2013-10-21T13:28:06.419Z"); return t}()), - // }, - // }, - // DetectorURL: to.Ptr("testsec579"), - // State: to.Ptr(armappservice.SiteRuntimeStateREADY), - // StatusURL: to.Ptr("https://sampleurl"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListSlotBackups.json -func ExampleWebAppsClient_NewListSiteBackupsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListSiteBackupsPager("testrg123", "tests346", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.BackupItemCollection = armappservice.BackupItemCollection{ - // Value: []*armappservice.BackupItem{ - // { - // Name: to.Ptr("tests346/staging"), - // Type: to.Ptr("Microsoft.Web/sites/slots"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/tests346/slot/staging"), - // Properties: &armappservice.BackupItemProperties{ - // BlobName: to.Ptr("blob1"), - // Status: to.Ptr(armappservice.BackupItemStatusInProgress), - // StorageAccountURL: to.Ptr("https://blobstorage.windows.net"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetWebSiteNetworkTraceOperation.json -func ExampleWebAppsClient_GetNetworkTraceOperation() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetNetworkTraceOperation(ctx, "testrg123", "SampleApp", "c291433b-53ad-4c49-8cae-0a293eae1c6d", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.NetworkTraceArray = []*armappservice.NetworkTrace{ - // { - // Path: to.Ptr("D:\\home\\LogFiles\\networktrace\\10.0.0.1_2018_02_01T00_00_00.zip"), - // Message: to.Ptr("Trace file has been saved as D:\\home\\LogFiles\\networktrace\\10.0.0.1_2018_02_01T00_00_00.zip"), - // Status: to.Ptr("Succeeded"), - // }} -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/StartWebSiteNetworkTraceOperation.json -func ExampleWebAppsClient_BeginStartWebSiteNetworkTraceOperation() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().BeginStartWebSiteNetworkTraceOperation(ctx, "testrg123", "SampleApp", &armappservice.WebAppsClientBeginStartWebSiteNetworkTraceOperationOptions{DurationInSeconds: to.Ptr[int32](60), - MaxFrameLength: nil, - SasURL: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.NetworkTraceArray = []*armappservice.NetworkTrace{ - // { - // Path: to.Ptr("D:\\home\\LogFiles\\networktrace\\10.0.0.1_2018_02_01T00_00_00.zip"), - // Message: to.Ptr("Trace file has been saved as D:\\home\\LogFiles\\networktrace\\10.0.0.1_2018_02_01T00_00_00.zip"), - // Status: to.Ptr("Succeeded"), - // }} -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/StopWebSiteNetworkTrace.json -func ExampleWebAppsClient_StopWebSiteNetworkTrace() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWebAppsClient().StopWebSiteNetworkTrace(ctx, "testrg123", "SampleApp", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetWebSiteNetworkTraces.json -func ExampleWebAppsClient_GetNetworkTraces() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetNetworkTraces(ctx, "testrg123", "SampleApp", "c291433b-53ad-4c49-8cae-0a293eae1c6d", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.NetworkTraceArray = []*armappservice.NetworkTrace{ - // { - // Path: to.Ptr("D:\\home\\LogFiles\\networktrace\\10.0.0.1_2018_02_01T00_00_00.zip"), - // Message: to.Ptr("Trace file has been saved as D:\\home\\LogFiles\\networktrace\\10.0.0.1_2018_02_01T00_00_00.zip"), - // Status: to.Ptr("Succeeded"), - // }} -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetSitePrivateEndpointConnection.json -func ExampleWebAppsClient_GetPrivateEndpointConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetPrivateEndpointConnection(ctx, "rg", "testSite", "connection", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RemotePrivateEndpointConnectionARMResource = armappservice.RemotePrivateEndpointConnectionARMResource{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/privateEndpointConnections/connection"), - // Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - // PrivateEndpoint: &armappservice.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - // Description: to.Ptr("Approved by admin."), - // ActionsRequired: to.Ptr(""), - // Status: to.Ptr("Approved"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ApproveRejectSitePrivateEndpointConnection.json -func ExampleWebAppsClient_BeginApproveOrRejectPrivateEndpointConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().BeginApproveOrRejectPrivateEndpointConnection(ctx, "rg", "testSite", "connection", armappservice.PrivateLinkConnectionApprovalRequestResource{ - Properties: &armappservice.PrivateLinkConnectionApprovalRequest{ - PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - Description: to.Ptr("Approved by admin."), - ActionsRequired: to.Ptr(""), - Status: to.Ptr("Approved"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RemotePrivateEndpointConnectionARMResource = armappservice.RemotePrivateEndpointConnectionARMResource{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/privateEndpointConnections/connection"), - // Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - // PrivateEndpoint: &armappservice.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - // Description: to.Ptr("Approved by admin."), - // ActionsRequired: to.Ptr(""), - // Status: to.Ptr("Approved"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/DeleteSitePrivateEndpointConnection.json -func ExampleWebAppsClient_BeginDeletePrivateEndpointConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().BeginDeletePrivateEndpointConnection(ctx, "rg", "testSite", "connection", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Interface = map[string]any{ - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetSitePrivateLinkResources.json -func ExampleWebAppsClient_GetPrivateLinkResources() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetPrivateLinkResources(ctx, "rg", "testSite", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.PrivateLinkResourcesWrapper = armappservice.PrivateLinkResourcesWrapper{ - // Value: []*armappservice.PrivateLinkResource{ - // { - // Name: to.Ptr("site"), - // Type: to.Ptr("Microsoft.Web/sites/privateLinkResources"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/privateLinkResources/site"), - // Properties: &armappservice.PrivateLinkResourceProperties{ - // GroupID: to.Ptr("sites"), - // RequiredMembers: []*string{ - // to.Ptr("sites")}, - // RequiredZoneNames: []*string{ - // to.Ptr("privatelink.testsite.azurewebsites.net")}, - // }, - // }}, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListWebAppSlots.json -func ExampleWebAppsClient_NewListSlotsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListSlotsPager("testrg123", "sitef6141", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WebAppCollection = armappservice.WebAppCollection{ - // Value: []*armappservice.Site{ - // { - // Name: to.Ptr("sitef6141/staging"), - // Type: to.Ptr("Microsoft.Web/sites/slots"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/slots/staging"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141-staging.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net"), - // to.Ptr("sitef6141-staging.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141-staging.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141-staging.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // }, - // { - // Name: to.Ptr("sitef6141/qa"), - // Type: to.Ptr("Microsoft.Web/sites/slots"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/slots/qa"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141-qa.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net"), - // to.Ptr("sitef6141-staging.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141-qa.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141-qa.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141-qa.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetWebAppSlot.json -func ExampleWebAppsClient_GetSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetSlot(ctx, "testrg123", "sitef6141", "staging", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Site = armappservice.Site{ - // Name: to.Ptr("sitef6141/staging"), - // Type: to.Ptr("Microsoft.Web/sites/slots"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/slots/staging"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141-staging.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net"), - // to.Ptr("sitef6141-staging.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141-staging.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141-staging.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/CloneWebAppSlot.json -func ExampleWebAppsClient_BeginCreateOrUpdateSlot_cloneWebAppSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().BeginCreateOrUpdateSlot(ctx, "testrg123", "sitef6141", "staging", armappservice.Site{ - Kind: to.Ptr("app"), - Location: to.Ptr("East US"), - Properties: &armappservice.SiteProperties{ - CloningInfo: &armappservice.CloningInfo{ - AppSettingsOverrides: map[string]*string{ - "Setting1": to.Ptr("NewValue1"), - "Setting3": to.Ptr("NewValue5"), - }, - CloneCustomHostNames: to.Ptr(true), - CloneSourceControl: to.Ptr(true), - ConfigureLoadBalancing: to.Ptr(false), - HostingEnvironment: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg456/providers/Microsoft.Web/hostingenvironments/aseforsites"), - Overwrite: to.Ptr(false), - SourceWebAppID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg456/providers/Microsoft.Web/sites/srcsiteg478/slot/qa"), - SourceWebAppLocation: to.Ptr("West Europe"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Site = armappservice.Site{ - // Name: to.Ptr("sitef6141/staging"), - // Type: to.Ptr("Microsoft.Web/sites/slots"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/slots/staging"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141-staging.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net"), - // to.Ptr("sitef6141-staging.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141-staging.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141-staging.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/CreateOrUpdateWebAppSlot.json -func ExampleWebAppsClient_BeginCreateOrUpdateSlot_createOrUpdateWebAppSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().BeginCreateOrUpdateSlot(ctx, "testrg123", "sitef6141", "staging", armappservice.Site{ - Kind: to.Ptr("app"), - Location: to.Ptr("East US"), - Properties: &armappservice.SiteProperties{ - ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Site = armappservice.Site{ - // Name: to.Ptr("sitef6141/staging"), - // Type: to.Ptr("Microsoft.Web/sites/slots"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/slots/staging"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net"), - // to.Ptr("sitef6141-staging.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141-staging.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141-staging.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/DeleteWebAppSlot.json -func ExampleWebAppsClient_DeleteSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWebAppsClient().DeleteSlot(ctx, "testrg123", "sitef6141", "staging", &armappservice.WebAppsClientDeleteSlotOptions{DeleteMetrics: nil, - DeleteEmptyServerFarm: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/UpdateWebAppSlot.json -func ExampleWebAppsClient_UpdateSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().UpdateSlot(ctx, "testrg123", "sitef6141", "staging", armappservice.SitePatchResource{ - Properties: &armappservice.SitePatchResourceProperties{ - ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Site = armappservice.Site{ - // Name: to.Ptr("sitef6141/staging"), - // Type: to.Ptr("Microsoft.Web/sites/slots"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/slots/staging"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net"), - // to.Ptr("sitef6141-staging.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141-staging.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141-staging.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/AnalyzeCustomHostNameSlot.json -func ExampleWebAppsClient_AnalyzeCustomHostnameSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().AnalyzeCustomHostnameSlot(ctx, "testrg123", "sitef6141", "staging", &armappservice.WebAppsClientAnalyzeCustomHostnameSlotOptions{HostName: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CustomHostnameAnalysisResult = armappservice.CustomHostnameAnalysisResult{ - // Name: to.Ptr("sitef6141/staging"), - // Type: to.Ptr("Microsoft.Web/sites/stagings"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/slots/staging"), - // Properties: &armappservice.CustomHostnameAnalysisResultProperties{ - // CNameRecords: []*string{ - // to.Ptr("siteog.azurewebsites.net")}, - // ConflictingAppResourceID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/siteog/slots/qa"), - // CustomDomainVerificationFailureInfo: &armappservice.ErrorEntity{ - // Code: to.Ptr("07198"), - // Message: to.Ptr("Custom domain verification failed on conflicting CNAMEs."), - // }, - // CustomDomainVerificationTest: to.Ptr(armappservice.DNSVerificationTestResultPassed), - // HasConflictAcrossSubscription: to.Ptr(true), - // HasConflictOnScaleUnit: to.Ptr(false), - // IsHostnameAlreadyVerified: to.Ptr(true), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListPublishingCredentialsPoliciesSlot.json -func ExampleWebAppsClient_NewListBasicPublishingCredentialsPoliciesSlotPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListBasicPublishingCredentialsPoliciesSlotPager("testrg123", "testsite", "staging", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.PublishingCredentialsPoliciesCollection = armappservice.PublishingCredentialsPoliciesCollection{ - // Value: []*armappservice.CsmPublishingCredentialsPoliciesEntity{ - // { - // Name: to.Ptr("ftp"), - // Type: to.Ptr("Microsoft.Web/sites/slots/basicPublishingCredentialsPolicies"), - // ID: to.Ptr("/subscriptions/3fb8d758-2e2c-42e9-a528-a8acdfe87237/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite/slots/staging/basicPublishingCredentialsPolicies/ftp"), - // Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - // Allow: to.Ptr(true), - // }, - // }, - // { - // Name: to.Ptr("scm"), - // Type: to.Ptr("Microsoft.Web/sites/slots/basicPublishingCredentialsPolicies"), - // ID: to.Ptr("/subscriptions/3fb8d758-2e2c-42e9-a528-a8acdfe87237/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite/slots/staging/basicPublishingCredentialsPolicies/scm"), - // Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - // Allow: to.Ptr(true), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetPublishingCredentialsPolicySlot.json -func ExampleWebAppsClient_GetFtpAllowedSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetFtpAllowedSlot(ctx, "rg", "testSite", "stage", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CsmPublishingCredentialsPoliciesEntity = armappservice.CsmPublishingCredentialsPoliciesEntity{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/slots/stage/basicPublishingCredentialsPolicies/ftp"), - // Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - // Allow: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/UpdatePublishingCredentialsPolicySlot.json -func ExampleWebAppsClient_UpdateFtpAllowedSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().UpdateFtpAllowedSlot(ctx, "rg", "testSite", "stage", armappservice.CsmPublishingCredentialsPoliciesEntity{ - Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - Allow: to.Ptr(true), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CsmPublishingCredentialsPoliciesEntity = armappservice.CsmPublishingCredentialsPoliciesEntity{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/slots/stage/basicPublishingCredentialsPolicies/ftp"), - // Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - // Allow: to.Ptr(true), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetKeyVaultReferencesForAppSettingsSlot.json -func ExampleWebAppsClient_NewGetAppSettingsKeyVaultReferencesSlotPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewGetAppSettingsKeyVaultReferencesSlotPager("testrg123", "testc6282", "stage", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.APIKVReferenceCollection = armappservice.APIKVReferenceCollection{ - // Value: []*armappservice.APIKVReference{ - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testc6282/slots/stage/config/configreferences/appsettings/secretName"), - // Properties: &armappservice.APIKVReferenceProperties{ - // SecretName: to.Ptr("secretName"), - // SecretVersion: to.Ptr("secretVersion"), - // VaultName: to.Ptr("keyVaultName"), - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testc6282/slots/stage/config/configreferences/appsettings/secretName2"), - // Properties: &armappservice.APIKVReferenceProperties{ - // SecretName: to.Ptr("secretName2"), - // SecretVersion: to.Ptr("secretVersion2"), - // VaultName: to.Ptr("keyVaultName"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetKeyVaultReferencesForAppSettingSlot.json -func ExampleWebAppsClient_GetAppSettingKeyVaultReferenceSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetAppSettingKeyVaultReferenceSlot(ctx, "testrg123", "testc6282", "setting", "stage", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.APIKVReference = armappservice.APIKVReference{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testc6282/slots/stage/config/configreferences/appsettings/setting"), - // Properties: &armappservice.APIKVReferenceProperties{ - // SecretName: to.Ptr("secretName"), - // SecretVersion: to.Ptr("secretVersion"), - // VaultName: to.Ptr("keyVaultName"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListSiteDeploymentStatusSlot.json -func ExampleWebAppsClient_NewListSlotSiteDeploymentStatusesSlotPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListSlotSiteDeploymentStatusesSlotPager("rg", "testSite", "stage", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CsmDeploymentStatusCollection = armappservice.CsmDeploymentStatusCollection{ - // Value: []*armappservice.CsmDeploymentStatus{ - // }, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetSiteDeploymentStatusSlot.json -func ExampleWebAppsClient_BeginGetSlotSiteDeploymentStatusSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().BeginGetSlotSiteDeploymentStatusSlot(ctx, "rg", "testSite", "stage", "eacfd68b-3bbd-4ad9-99c5-98614d89c8e5", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CsmDeploymentStatus = armappservice.CsmDeploymentStatus{ - // Name: to.Ptr("eacfd68b-3bbd-4ad9-99c5-98614d89c8e5"), - // Type: to.Ptr("Microsoft.Web/sites/slots/deploymentStatus"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/slots/stage/deploymentStatus/eacfd68b-3bbd-4ad9-99c5-98614d89c8e5"), - // Properties: &armappservice.CsmDeploymentStatusProperties{ - // DeploymentID: to.Ptr("eacfd68b-3bbd-4ad9-99c5-98614d89c8e5"), - // FailedInstancesLogs: []*string{ - // }, - // NumberOfInstancesFailed: to.Ptr[int32](0), - // NumberOfInstancesInProgress: to.Ptr[int32](0), - // NumberOfInstancesSuccessful: to.Ptr[int32](1), - // Status: to.Ptr(armappservice.DeploymentBuildStatusRuntimeSuccessful), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetSitePrivateEndpointConnectionSlot.json -func ExampleWebAppsClient_GetPrivateEndpointConnectionSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetPrivateEndpointConnectionSlot(ctx, "rg", "testSite", "connection", "stage", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RemotePrivateEndpointConnectionARMResource = armappservice.RemotePrivateEndpointConnectionARMResource{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/slot/stage/privateEndpointConnections/connection"), - // Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - // PrivateEndpoint: &armappservice.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - // Description: to.Ptr("Approved by admin."), - // ActionsRequired: to.Ptr(""), - // Status: to.Ptr("Approved"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ApproveRejectSitePrivateEndpointConnectionSlot.json -func ExampleWebAppsClient_BeginApproveOrRejectPrivateEndpointConnectionSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().BeginApproveOrRejectPrivateEndpointConnectionSlot(ctx, "rg", "testSite", "connection", "stage", armappservice.PrivateLinkConnectionApprovalRequestResource{ - Properties: &armappservice.PrivateLinkConnectionApprovalRequest{ - PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - Description: to.Ptr("Approved by admin."), - ActionsRequired: to.Ptr(""), - Status: to.Ptr("Approved"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RemotePrivateEndpointConnectionARMResource = armappservice.RemotePrivateEndpointConnectionARMResource{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/slots/stage/privateEndpointConnections/connection"), - // Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - // PrivateEndpoint: &armappservice.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - // Description: to.Ptr("Approved by admin."), - // ActionsRequired: to.Ptr(""), - // Status: to.Ptr("Approved"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/DeleteSitePrivateEndpointConnectionSlot.json -func ExampleWebAppsClient_BeginDeletePrivateEndpointConnectionSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().BeginDeletePrivateEndpointConnectionSlot(ctx, "rg", "testSite", "connection", "stage", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Interface = map[string]any{ - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetSitePrivateLinkResourcesSlot.json -func ExampleWebAppsClient_GetPrivateLinkResourcesSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetPrivateLinkResourcesSlot(ctx, "rg", "testSite", "stage", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.PrivateLinkResourcesWrapper = armappservice.PrivateLinkResourcesWrapper{ - // Value: []*armappservice.PrivateLinkResource{ - // { - // Name: to.Ptr("site"), - // Type: to.Ptr("Microsoft.Web/sites/privateLinkResources"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/privateLinkResources/site"), - // Properties: &armappservice.PrivateLinkResourceProperties{ - // GroupID: to.Ptr("sites"), - // RequiredMembers: []*string{ - // to.Ptr("sites")}, - // RequiredZoneNames: []*string{ - // to.Ptr("privatelink.testsite.azurewebsites.net")}, - // }, - // }}, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/DeleteDeployWorkflowArtifacts.json -func ExampleWebAppsClient_DeployWorkflowArtifacts_deleteWorkflowArtifacts() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWebAppsClient().DeployWorkflowArtifacts(ctx, "testrg123", "testsite2", &armappservice.WebAppsClientDeployWorkflowArtifactsOptions{WorkflowArtifacts: &armappservice.WorkflowArtifacts{ - FilesToDelete: []*string{ - to.Ptr("test/workflow.json"), - to.Ptr("test/")}, - }, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/PostDeployWorkflowArtifacts.json -func ExampleWebAppsClient_DeployWorkflowArtifacts_deploysWorkflowArtifacts() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWebAppsClient().DeployWorkflowArtifacts(ctx, "testrg123", "testsite2", &armappservice.WebAppsClientDeployWorkflowArtifactsOptions{WorkflowArtifacts: &armappservice.WorkflowArtifacts{ - AppSettings: map[string]any{ - "eventHub_connectionString": "Endpoint=sb://example.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=EXAMPLE1a2b3c4d5e6fEXAMPLE=", - }, - Files: map[string]any{ - "connections.json": map[string]any{ - "managedApiConnections": map[string]any{}, - "serviceProviderConnections": map[string]any{ - "eventHub": map[string]any{ - "displayName": "example1", - "parameterValues": map[string]any{ - "connectionString": "@appsetting('eventHub_connectionString')", - }, - "serviceProvider": map[string]any{ - "id": "/serviceProviders/eventHub", - }, - }, - }, - }, - "test1/workflow.json": map[string]any{ - "definition": map[string]any{ - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "actions": map[string]any{}, - "contentVersion": "1.0.0.0", - "outputs": map[string]any{}, - "triggers": map[string]any{ - "When_events_are_available_in_Event_hub": map[string]any{ - "type": "ServiceProvider", - "inputs": map[string]any{ - "parameters": map[string]any{ - "eventHubName": "test123", - }, - "serviceProviderConfiguration": map[string]any{ - "operationId": "receiveEvents", - "connectionName": "eventHub", - "serviceProviderId": "/serviceProviders/eventHub", - }, - }, - "splitOn": "@triggerOutputs()?['body']", - }, - }, - }, - "kind": "Stateful", - }, - }, - }, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/PostDeployWorkflowArtifactsSlot.json -func ExampleWebAppsClient_DeployWorkflowArtifactsSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWebAppsClient().DeployWorkflowArtifactsSlot(ctx, "testrg123", "testsite2", "testsSlot", &armappservice.WebAppsClientDeployWorkflowArtifactsSlotOptions{WorkflowArtifacts: &armappservice.WorkflowArtifacts{ - AppSettings: map[string]any{ - "eventHub_connectionString": "Endpoint=sb://example.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=EXAMPLE1a2b3c4d5e6fEXAMPLE=", - }, - Files: map[string]any{ - "connections.json": map[string]any{ - "managedApiConnections": map[string]any{}, - "serviceProviderConnections": map[string]any{ - "eventHub": map[string]any{ - "displayName": "example1", - "parameterValues": map[string]any{ - "connectionString": "@appsetting('eventHub_connectionString')", - }, - "serviceProvider": map[string]any{ - "id": "/serviceProviders/eventHub", - }, - }, - }, - }, - "test1/workflow.json": map[string]any{ - "definition": map[string]any{ - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "actions": map[string]any{}, - "contentVersion": "1.0.0.0", - "outputs": map[string]any{}, - "triggers": map[string]any{ - "When_events_are_available_in_Event_hub": map[string]any{ - "type": "ServiceProvider", - "inputs": map[string]any{ - "parameters": map[string]any{ - "eventHubName": "test123", - }, - "serviceProviderConfiguration": map[string]any{ - "operationId": "receiveEvents", - "connectionName": "eventHub", - "serviceProviderId": "/serviceProviders/eventHub", - }, - }, - "splitOn": "@triggerOutputs()?['body']", - }, - }, - }, - "kind": "Stateful", - }, - }, - }, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListWorkflows.json -func ExampleWebAppsClient_NewListInstanceWorkflowsSlotPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListInstanceWorkflowsSlotPager("testrg123", "testsite2", "staging", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WorkflowEnvelopeCollection = armappservice.WorkflowEnvelopeCollection{ - // Value: []*armappservice.WorkflowEnvelope{ - // { - // Name: to.Ptr("testsite2/a1"), - // Type: to.Ptr("Microsoft.Web/sites/workflows"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite2/workflows/a1"), - // Kind: to.Ptr("Stateful"), - // Location: to.Ptr("USAAnywhere"), - // Properties: &armappservice.WorkflowEnvelopeProperties{ - // FlowState: to.Ptr(armappservice.WorkflowStateEnabled), - // Health: &armappservice.WorkflowHealth{ - // State: to.Ptr(armappservice.WorkflowHealthStateHealthy), - // }, - // }, - // }, - // { - // Name: to.Ptr("testsite2/stateful2"), - // Type: to.Ptr("Microsoft.Web/sites/workflows"), - // ID: to.Ptr("/subscriptions/testsub/resourceGroups/testrg/providers/Microsoft.Web/sites/testsite2/workflows/stateful2"), - // Kind: to.Ptr("Stateful"), - // Location: to.Ptr("USAAnywhere"), - // Properties: &armappservice.WorkflowEnvelopeProperties{ - // FlowState: to.Ptr(armappservice.WorkflowStateEnabled), - // Health: &armappservice.WorkflowHealth{ - // Error: &armappservice.ErrorEntity{ - // Code: to.Ptr("InvalidWorkflowJson"), - // Message: to.Ptr("Invalid character after parsing property name. Expected ':' but got: \". Path '', line 2, position 2."), - // }, - // State: to.Ptr(armappservice.WorkflowHealthStateUnhealthy), - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/GetWorkflow.json -func ExampleWebAppsClient_GetInstanceWorkflowSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetInstanceWorkflowSlot(ctx, "testrg123", "testsite2", "staging", "stateful1", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkflowEnvelope = armappservice.WorkflowEnvelope{ - // Name: to.Ptr("testsite2/stateful1"), - // Type: to.Ptr("Microsoft.Web/sites/workflows"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite2/workflows/stateful1"), - // Kind: to.Ptr("Stateful"), - // Location: to.Ptr("USAAnywhere"), - // Properties: &armappservice.WorkflowEnvelopeProperties{ - // Files: map[string]any{ - // "connections.json": map[string]any{ - // "managedApiConnections":map[string]any{ - // "office365":map[string]any{ - // "api":map[string]any{ - // "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.Web/locations/brazilsouth/managedApis/office365", - // }, - // "authentication":map[string]any{ - // "type": "Raw", - // "parameter": "@appsetting('office365-connectionKey')", - // "scheme": "Key", - // }, - // "connection":map[string]any{ - // "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/connections/office365-1", - // }, - // "connectionRuntimeUrl": "string", - // }, - // }, - // }, - // "workflow.json": map[string]any{ - // "definition":map[string]any{ - // "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - // "actions":map[string]any{ - // }, - // "contentVersion": "1.0.0.0", - // "outputs":map[string]any{ - // }, - // "parameters":map[string]any{ - // }, - // "triggers":map[string]any{ - // }, - // }, - // }, - // }, - // FlowState: to.Ptr(armappservice.WorkflowStateEnabled), - // Health: &armappservice.WorkflowHealth{ - // State: to.Ptr(armappservice.WorkflowHealthStateHealthy), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListWorkflowsConfigurationConnections.json -func ExampleWebAppsClient_ListWorkflowsConnectionsSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().ListWorkflowsConnectionsSlot(ctx, "testrg123", "testsite2", "staging", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkflowEnvelope = armappservice.WorkflowEnvelope{ - // Name: to.Ptr("testsite2/connections"), - // Type: to.Ptr("Microsoft.Web/sites/workflowsconfiguration"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite2/workflowconfigurations/connections"), - // Location: to.Ptr("USAAnywhere"), - // Properties: &armappservice.WorkflowEnvelopeProperties{ - // Files: map[string]any{ - // "connections.json": map[string]any{ - // "managedApiConnections":map[string]any{ - // "office365":map[string]any{ - // "api":map[string]any{ - // "id": "string", - // }, - // "authentication":map[string]any{ - // "type": "Raw", - // "parameter": "@appsetting('office365-connectionKey')", - // "scheme": "Key", - // }, - // "connection":map[string]any{ - // "id": "string", - // }, - // "connectionRuntimeUrl": "string", - // }, - // }, - // }, - // }, - // Health: &armappservice.WorkflowHealth{ - // State: to.Ptr(armappservice.WorkflowHealthStateHealthy), - // }, - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/websitemanagement_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/websitemanagement_client_example_test.go deleted file mode 100644 index 5fb9ba2840bc..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/websitemanagement_client_example_test.go +++ /dev/null @@ -1,160 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListCustomHostNameSites.json -func ExampleWebSiteManagementClient_NewListCustomHostNameSitesPager_getCustomHostnamesUnderSubscription() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebSiteManagementClient().NewListCustomHostNameSitesPager(&armappservice.WebSiteManagementClientListCustomHostNameSitesOptions{Hostname: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CustomHostnameSitesCollection = armappservice.CustomHostnameSitesCollection{ - // Value: []*armappservice.CustomHostnameSites{ - // { - // Name: to.Ptr("mywebapp.azurewebsites.net"), - // Type: to.Ptr("Microsoft.Web/customhostnameSites"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/customhostnameSites/mywebapp.azurewebsites.net"), - // Properties: &armappservice.CustomHostnameSitesProperties{ - // CustomHostname: to.Ptr("mywebapp.azurewebsites.net"), - // Region: to.Ptr("West US"), - // SiteResourceIDs: []*armappservice.Identifier{ - // { - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westus-rg/providers/Microsoft.Web/sites/mywebapp"), - // }}, - // }, - // }, - // { - // Name: to.Ptr("www.example.com"), - // Type: to.Ptr("Microsoft.Web/customhostnameSites"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/customhostnameSites/www.example.com"), - // Properties: &armappservice.CustomHostnameSitesProperties{ - // CustomHostname: to.Ptr("www.example.com"), - // Region: to.Ptr("West US 2"), - // SiteResourceIDs: []*armappservice.Identifier{ - // { - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westus2-rg/providers/Microsoft.Web/sites/westus2app1"), - // }, - // { - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westus2-rg/providers/Microsoft.Web/sites/westus2app2"), - // }, - // { - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westus2-rg/providers/Microsoft.Web/sites/westus2app3"), - // }}, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/ListCustomSpecificHostNameSites.json -func ExampleWebSiteManagementClient_NewListCustomHostNameSitesPager_getSpecificCustomHostnameUnderSubscription() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebSiteManagementClient().NewListCustomHostNameSitesPager(&armappservice.WebSiteManagementClientListCustomHostNameSitesOptions{Hostname: to.Ptr("www.example.com")}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CustomHostnameSitesCollection = armappservice.CustomHostnameSitesCollection{ - // Value: []*armappservice.CustomHostnameSites{ - // { - // Name: to.Ptr("www.example.com"), - // Type: to.Ptr("Microsoft.Web/customhostnameSites"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/customhostnameSites/www.example.com"), - // Properties: &armappservice.CustomHostnameSitesProperties{ - // CustomHostname: to.Ptr("www.example.com"), - // Region: to.Ptr("West US 2"), - // SiteResourceIDs: []*armappservice.Identifier{ - // { - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westus2-rg/providers/Microsoft.Web/sites/westus2app1"), - // }, - // { - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westus2-rg/providers/Microsoft.Web/sites/westus2app2"), - // }, - // { - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westus2-rg/providers/Microsoft.Web/sites/westus2app3"), - // }}, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/VerifyHostingEnvironmentVnet.json -func ExampleWebSiteManagementClient_VerifyHostingEnvironmentVnet() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebSiteManagementClient().VerifyHostingEnvironmentVnet(ctx, armappservice.VnetParameters{ - Properties: &armappservice.VnetParametersProperties{ - VnetName: to.Ptr("vNet123"), - VnetResourceGroup: to.Ptr("vNet123rg"), - VnetSubnetName: to.Ptr("vNet123SubNet"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.VnetValidationFailureDetails = armappservice.VnetValidationFailureDetails{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.Web/verifyHostingEnvironmentVnet"), - // Properties: &armappservice.VnetValidationFailureDetailsProperties{ - // Failed: to.Ptr(false), - // FailedTests: []*armappservice.VnetValidationTestFailure{ - // }, - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client_example_test.go deleted file mode 100644 index 3766c8f09834..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client_example_test.go +++ /dev/null @@ -1,216 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowRunActionRepetitions_List.json -func ExampleWorkflowRunActionRepetitionsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWorkflowRunActionRepetitionsClient().NewListPager("testResourceGroup", "test-name", "testFlow", "08586776228332053161046300351", "testAction", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WorkflowRunActionRepetitionDefinitionCollection = armappservice.WorkflowRunActionRepetitionDefinitionCollection{ - // Value: []*armappservice.WorkflowRunActionRepetitionDefinition{ - // { - // Name: to.Ptr("000000"), - // Type: to.Ptr("/workflows/runs/actions/repetitions"), - // ID: to.Ptr("/workflows/testFlow/runs/08586776228332053161046300351/actions/testAction/repetitions/000000"), - // Properties: &armappservice.WorkflowRunActionRepetitionProperties{ - // Code: to.Ptr("OK"), - // Correlation: &armappservice.RunActionCorrelation{ - // ClientTrackingID: to.Ptr("08586775357427610445444523191"), - // ActionTrackingID: to.Ptr("0d8152bb-e198-44a9-bde8-5138eea16dd4"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.2264835Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.217991Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // InputsLink: &armappservice.ContentLink{ - // ContentHash: &armappservice.ContentHash{ - // Algorithm: to.Ptr("md5"), - // Value: to.Ptr("8q1zMKS5ZyHBrPF+qF1xXw=="), - // }, - // ContentSize: to.Ptr[int64](8), - // ContentVersion: to.Ptr("8q1zMKS5ZyHBrPF+qF1xXw=="), - // URI: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/2dfde2fce2584c49bea17ef0b04c95f4/runs/08586776228332053161046300351/actions/testAction/repetitions/000000/contents/ActionInputs?api-version=2016-10-01&se=2018-04-18T21%3A00%3A00.0000000Z&sp=%2Fruns%2F08586776228332053161046300351%2Factions%2FtestAction%2Frepetitions%2F000000%2Fcontents%2FActionInputs%2Fread&sv=1.0&sig=vw4BDdYp4Ap5RXdM7tY_wl9C38DeAHfnixLBEOpideA"), - // }, - // OutputsLink: &armappservice.ContentLink{ - // ContentHash: &armappservice.ContentHash{ - // Algorithm: to.Ptr("md5"), - // Value: to.Ptr("8q1zMKS5ZyHBrPF+qF1xXw=="), - // }, - // ContentSize: to.Ptr[int64](8), - // ContentVersion: to.Ptr("8q1zMKS5ZyHBrPF+qF1xXw=="), - // URI: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/2dfde2fce2584c49bea17ef0b04c95f4/runs/08586776228332053161046300351/actions/testAction/repetitions/000000/contents/ActionOutputs?api-version=2016-10-01&se=2018-04-18T21%3A00%3A00.0000000Z&sp=%2Fruns%2F08586776228332053161046300351%2Factions%2FtestAction%2Frepetitions%2F000000%2Fcontents%2FActionOutputs%2Fread&sv=1.0&sig=y8Wq7jbu85tmlMo_1zpRyqNJuoCaQCFQtZ3bgSovLY0"), - // }, - // TrackingID: to.Ptr("0d8152bb-e198-44a9-bde8-5138eea16dd4"), - // RepetitionIndexes: []*armappservice.RepetitionIndex{ - // { - // ItemIndex: to.Ptr[int32](0), - // ScopeName: to.Ptr("For_each"), - // }}, - // }, - // }, - // { - // Name: to.Ptr("000001"), - // Type: to.Ptr("/workflows/runs/actions/repetitions"), - // ID: to.Ptr("/workflows/testFlow/runs/08586776228332053161046300351/actions/testAction/repetitions/000001"), - // Properties: &armappservice.WorkflowRunActionRepetitionProperties{ - // Code: to.Ptr("OK"), - // Correlation: &armappservice.RunActionCorrelation{ - // ClientTrackingID: to.Ptr("08586775357427610445444523191"), - // ActionTrackingID: to.Ptr("f84f23eb-b331-4772-9f39-cc307fa83bc3"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.1015421Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.0929911Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // InputsLink: &armappservice.ContentLink{ - // ContentHash: &armappservice.ContentHash{ - // Algorithm: to.Ptr("md5"), - // Value: to.Ptr("OA3i83YHGYVch+N8BQJIRQ=="), - // }, - // ContentSize: to.Ptr[int64](6), - // ContentVersion: to.Ptr("OA3i83YHGYVch+N8BQJIRQ=="), - // URI: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/2dfde2fce2584c49bea17ef0b04c95f4/runs/08586776228332053161046300351/actions/testAction/repetitions/000001/contents/ActionInputs?api-version=2016-10-01&se=2018-04-18T21%3A00%3A00.0000000Z&sp=%2Fruns%2F08586776228332053161046300351%2Factions%2FtestAction%2Frepetitions%2F000001%2Fcontents%2FActionInputs%2Fread&sv=1.0&sig=dLmnt50joimEMK4k9rR6njHQh94iSFJ9rrDxFbkEg5M"), - // }, - // OutputsLink: &armappservice.ContentLink{ - // ContentHash: &armappservice.ContentHash{ - // Algorithm: to.Ptr("md5"), - // Value: to.Ptr("OA3i83YHGYVch+N8BQJIRQ=="), - // }, - // ContentSize: to.Ptr[int64](6), - // ContentVersion: to.Ptr("OA3i83YHGYVch+N8BQJIRQ=="), - // URI: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/2dfde2fce2584c49bea17ef0b04c95f4/runs/08586776228332053161046300351/actions/testAction/repetitions/000001/contents/ActionOutputs?api-version=2016-10-01&se=2018-04-18T21%3A00%3A00.0000000Z&sp=%2Fruns%2F08586776228332053161046300351%2Factions%2FtestAction%2Frepetitions%2F000001%2Fcontents%2FActionOutputs%2Fread&sv=1.0&sig=B3-X5sqIAv1Lb31GOD34ZgIRUXGuiM2QllWiNwXFYAw"), - // }, - // TrackingID: to.Ptr("f84f23eb-b331-4772-9f39-cc307fa83bc3"), - // RepetitionIndexes: []*armappservice.RepetitionIndex{ - // { - // ItemIndex: to.Ptr[int32](1), - // ScopeName: to.Ptr("For_each"), - // }}, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowRunActionRepetitions_Get.json -func ExampleWorkflowRunActionRepetitionsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWorkflowRunActionRepetitionsClient().Get(ctx, "testResourceGroup", "test-name", "testFlow", "08586776228332053161046300351", "testAction", "000001", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkflowRunActionRepetitionDefinition = armappservice.WorkflowRunActionRepetitionDefinition{ - // Name: to.Ptr("000001"), - // Type: to.Ptr("/workflows/runs/actions/repetitions"), - // ID: to.Ptr("/workflows/testFlow/runs/08586776228332053161046300351/actions/testAction/repetitions/000001"), - // Properties: &armappservice.WorkflowRunActionRepetitionProperties{ - // Code: to.Ptr("OK"), - // Correlation: &armappservice.RunActionCorrelation{ - // ClientTrackingID: to.Ptr("08586775357427610445444523191"), - // ActionTrackingID: to.Ptr("f84f23eb-b331-4772-9f39-cc307fa83bc3"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.1015421Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.0929911Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // InputsLink: &armappservice.ContentLink{ - // ContentHash: &armappservice.ContentHash{ - // Algorithm: to.Ptr("md5"), - // Value: to.Ptr("OA3i83YHGYVch+N8BQJIRQ=="), - // }, - // ContentSize: to.Ptr[int64](6), - // ContentVersion: to.Ptr("OA3i83YHGYVch+N8BQJIRQ=="), - // URI: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/2dfde2fce2584c49bea17ef0b04c95f4/runs/08586776228332053161046300351/actions/testAction/repetitions/000001/contents/ActionInputs?api-version=2016-10-01&se=2018-04-18T21%3A00%3A00.0000000Z&sp=%2Fruns%2F08586776228332053161046300351%2Factions%2FtestAction%2Frepetitions%2F000001%2Fcontents%2FActionInputs%2Fread&sv=1.0&sig=dLmnt50joimEMK4k9rR6njHQh94iSFJ9rrDxFbkEg5M"), - // }, - // OutputsLink: &armappservice.ContentLink{ - // ContentHash: &armappservice.ContentHash{ - // Algorithm: to.Ptr("md5"), - // Value: to.Ptr("OA3i83YHGYVch+N8BQJIRQ=="), - // }, - // ContentSize: to.Ptr[int64](6), - // ContentVersion: to.Ptr("OA3i83YHGYVch+N8BQJIRQ=="), - // URI: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/2dfde2fce2584c49bea17ef0b04c95f4/runs/08586776228332053161046300351/actions/testAction/repetitions/000001/contents/ActionOutputs?api-version=2016-10-01&se=2018-04-18T21%3A00%3A00.0000000Z&sp=%2Fruns%2F08586776228332053161046300351%2Factions%2FtestAction%2Frepetitions%2F000001%2Fcontents%2FActionOutputs%2Fread&sv=1.0&sig=B3-X5sqIAv1Lb31GOD34ZgIRUXGuiM2QllWiNwXFYAw"), - // }, - // TrackingID: to.Ptr("f84f23eb-b331-4772-9f39-cc307fa83bc3"), - // RepetitionIndexes: []*armappservice.RepetitionIndex{ - // { - // ItemIndex: to.Ptr[int32](1), - // ScopeName: to.Ptr("For_each"), - // }}, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowRunActionRepetitions_ListExpressionTraces.json -func ExampleWorkflowRunActionRepetitionsClient_NewListExpressionTracesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWorkflowRunActionRepetitionsClient().NewListExpressionTracesPager("testResourceGroup", "test-name", "testFlow", "08586776228332053161046300351", "testAction", "000001", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Inputs { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ExpressionTraces = armappservice.ExpressionTraces{ - // Inputs: []*armappservice.ExpressionRoot{ - // { - // Text: to.Ptr("items('For_each')?['OccuringLocation']?['Environment']"), - // Value: "PROD", - // Path: to.Ptr(""), - // }}, - // } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client_example_test.go deleted file mode 100644 index f4a81175ac1d..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client_example_test.go +++ /dev/null @@ -1,172 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowRunActionRepetitionsRequestHistories_List.json -func ExampleWorkflowRunActionRepetitionsRequestHistoriesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWorkflowRunActionRepetitionsRequestHistoriesClient().NewListPager("test-resource-group", "test-name", "test-workflow", "08586776228332053161046300351", "HTTP_Webhook", "000001", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.RequestHistoryListResult = armappservice.RequestHistoryListResult{ - // Value: []*armappservice.RequestHistory{ - // { - // Name: to.Ptr("08586611142732800686"), - // Type: to.Ptr("/workflows/runs/actions/requestHistories"), - // ID: to.Ptr("/workflows/test-workflow/runs/08586611142736787787412824395CU21/actions/HTTP_Webhook/requestHistories/08586611142732800686"), - // Properties: &armappservice.RequestHistoryProperties{ - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-10-25T18:36:52.1863033Z"); return t}()), - // Response: &armappservice.Response{ - // BodyLink: &armappservice.ContentLink{ - // ContentHash: &armappservice.ContentHash{ - // Algorithm: to.Ptr("md5"), - // Value: to.Ptr("2LOOAR8Eh2pd7AvRHXUhRg=="), - // }, - // ContentSize: to.Ptr[int64](137), - // ContentVersion: to.Ptr("2LOOAR8Eh2pd7AvRHXUhRg=="), - // URI: to.Ptr("https://tempuri.org"), - // }, - // Headers: map[string]any{ - // "Cache-Control": "private", - // "Date": "Thu, 25 Oct 2018 18:36:51 GMT", - // "Location": "http://www.bing.com/", - // "Server": "Microsoft-IIS/10.0", - // "X-AspNet-Version": "4.0.30319", - // "X-Powered-By": "ASP.NET", - // }, - // StatusCode: to.Ptr[int32](302), - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-10-25T18:36:51.9206732Z"); return t}()), - // Request: &armappservice.Request{ - // Method: to.Ptr("GET"), - // Headers: map[string]any{ - // "Accept-Language": "en-US", - // "User-Agent": "azure-logic-apps/1.0,(workflow 80244732be3648f59d2084fd979cdd56; version 08586611142904036539)", - // "x-ms-action-tracking-id": "ad27f634-6523-492f-924e-9a75e28619c8", - // "x-ms-client-request-id": "ad484925-4148-4dd0-9488-07aed418b256", - // "x-ms-client-tracking-id": "08586611142736787787412824395CU21", - // "x-ms-correlation-id": "ad484925-4148-4dd0-9488-07aed418b256", - // "x-ms-execution-location": "brazilsouth", - // "x-ms-tracking-id": "ad484925-4148-4dd0-9488-07aed418b256", - // "x-ms-workflow-id": "80244732be3648f59d2084fd979cdd56", - // "x-ms-workflow-name": "test-workflow", - // "x-ms-workflow-operation-name": "HTTP_Webhook", - // "x-ms-workflow-resourcegroup-name": "test-resource-group", - // "x-ms-workflow-run-id": "08586611142736787787412824395CU21", - // "x-ms-workflow-run-tracking-id": "b4cd2e77-f949-4d8c-8753-791407aebde8", - // "x-ms-workflow-subscription-capacity": "Large", - // "x-ms-workflow-subscription-id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - // "x-ms-workflow-system-id": "/locations/brazilsouth/scaleunits/prod-17/workflows/80244732be3648f59d2084fd979cdd56", - // "x-ms-workflow-version": "08586611142904036539", - // }, - // URI: to.Ptr("http://tempuri.org"), - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowRunActionRepetitionsRequestHistories_Get.json -func ExampleWorkflowRunActionRepetitionsRequestHistoriesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWorkflowRunActionRepetitionsRequestHistoriesClient().Get(ctx, "test-resource-group", "test-name", "test-workflow", "08586776228332053161046300351", "HTTP_Webhook", "000001", "08586611142732800686", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RequestHistory = armappservice.RequestHistory{ - // Name: to.Ptr("08586611142732800686"), - // Type: to.Ptr("/workflows/runs/actions/requestHistories"), - // ID: to.Ptr("/workflows/test-workflow/runs/08586611142736787787412824395CU21/actions/HTTP_Webhook/requestHistories/08586611142732800686"), - // Properties: &armappservice.RequestHistoryProperties{ - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-10-25T18:36:52.1863033Z"); return t}()), - // Response: &armappservice.Response{ - // BodyLink: &armappservice.ContentLink{ - // ContentHash: &armappservice.ContentHash{ - // Algorithm: to.Ptr("md5"), - // Value: to.Ptr("2LOOAR8Eh2pd7AvRHXUhRg=="), - // }, - // ContentSize: to.Ptr[int64](137), - // ContentVersion: to.Ptr("2LOOAR8Eh2pd7AvRHXUhRg=="), - // URI: to.Ptr("https://tempuri.org"), - // }, - // Headers: map[string]any{ - // "Cache-Control": "private", - // "Date": "Thu, 25 Oct 2018 18:36:51 GMT", - // "Location": "http://www.bing.com/", - // "Server": "Microsoft-IIS/10.0", - // "X-AspNet-Version": "4.0.30319", - // "X-Powered-By": "ASP.NET", - // }, - // StatusCode: to.Ptr[int32](302), - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-10-25T18:36:51.9206732Z"); return t}()), - // Request: &armappservice.Request{ - // Method: to.Ptr("GET"), - // Headers: map[string]any{ - // "Accept-Language": "en-US", - // "User-Agent": "azure-logic-apps/1.0,(workflow 80244732be3648f59d2084fd979cdd56; version 08586611142904036539)", - // "x-ms-action-tracking-id": "ad27f634-6523-492f-924e-9a75e28619c8", - // "x-ms-client-request-id": "ad484925-4148-4dd0-9488-07aed418b256", - // "x-ms-client-tracking-id": "08586611142736787787412824395CU21", - // "x-ms-correlation-id": "ad484925-4148-4dd0-9488-07aed418b256", - // "x-ms-execution-location": "brazilsouth", - // "x-ms-tracking-id": "ad484925-4148-4dd0-9488-07aed418b256", - // "x-ms-workflow-id": "80244732be3648f59d2084fd979cdd56", - // "x-ms-workflow-name": "test-workflow", - // "x-ms-workflow-operation-name": "HTTP_Webhook", - // "x-ms-workflow-resourcegroup-name": "test-resource-group", - // "x-ms-workflow-run-id": "08586611142736787787412824395CU21", - // "x-ms-workflow-run-tracking-id": "b4cd2e77-f949-4d8c-8753-791407aebde8", - // "x-ms-workflow-subscription-capacity": "Large", - // "x-ms-workflow-subscription-id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - // "x-ms-workflow-system-id": "/locations/brazilsouth/scaleunits/prod-17/workflows/80244732be3648f59d2084fd979cdd56", - // "x-ms-workflow-version": "08586611142904036539", - // }, - // URI: to.Ptr("http://tempuri.org"), - // }, - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client_example_test.go deleted file mode 100644 index 20548a2ba49f..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client_example_test.go +++ /dev/null @@ -1,147 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowRunActions_List.json -func ExampleWorkflowRunActionsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWorkflowRunActionsClient().NewListPager("test-resource-group", "test-name", "test-workflow", "08586676746934337772206998657CU22", &armappservice.WorkflowRunActionsClientListOptions{Top: nil, - Filter: nil, - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WorkflowRunActionListResult = armappservice.WorkflowRunActionListResult{ - // Value: []*armappservice.WorkflowRunAction{ - // { - // ID: to.Ptr("/workflows/test-workflow/runs/08586676746934337772206998657CU22/actions/HTTP"), - // Name: to.Ptr("HTTP"), - // Type: to.Ptr("/workflows/runs/actions"), - // Properties: &armappservice.WorkflowRunActionProperties{ - // Code: to.Ptr("OK"), - // Correlation: &armappservice.RunActionCorrelation{ - // ClientTrackingID: to.Ptr("08586676746934337772206998657CU22"), - // ActionTrackingID: to.Ptr("56063357-45dd-4278-9be5-8220ce0cc9ca"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.5450625Z"); return t}()), - // InputsLink: &armappservice.ContentLink{ - // ContentSize: to.Ptr[int64](138), - // URI: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/000012345678900000000056a41a/runs/00000aaaabbbbccccddddeeeeffff/actions/HTTP/contents/ActionInputs?api-version=2018-11-01&code=examplecode=2022-04-13T03%3A00%3A00.0000000Z&sp=%2Fruns%2F00000aaaabbbbccccddddeeeeffff%2Factions%2FHTTP%2Fcontents%2FActionInputs%2Fread&sv=1.0&sig=dJ6F00000aaaabbbbccccddddeeeeffff78co"), - // }, - // OutputsLink: &armappservice.ContentLink{ - // ContentSize: to.Ptr[int64](15660), - // URI: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/000012345678900000000056a41a/runs/00000aaaabbbbccccddddeeeeffff/actions/HTTP/contents/ActionOutputs?api-version=2018-11-01&code=examplecode=2022-04-13T03%3A00%3A00.0000000Z&sp=%2Fruns%2F00000aaaabbbbccccddddeeeeffff%2Factions%2FHTTP%2Fcontents%2FActionOutputs%2Fread&sv=1.0&sig=fIIgF00000aaaabbbbccccddddeeeeffffWRU0"), - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.305236Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowRunActions_Get.json -func ExampleWorkflowRunActionsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWorkflowRunActionsClient().Get(ctx, "test-resource-group", "test-name", "test-workflow", "08586676746934337772206998657CU22", "HTTP", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkflowRunAction = armappservice.WorkflowRunAction{ - // ID: to.Ptr("/workflows/test-workflow/runs/08586676746934337772206998657CU22/actions/HTTP"), - // Name: to.Ptr("HTTP"), - // Type: to.Ptr("/workflows/runs/actions"), - // Properties: &armappservice.WorkflowRunActionProperties{ - // Code: to.Ptr("OK"), - // Correlation: &armappservice.RunActionCorrelation{ - // ClientTrackingID: to.Ptr("08586676746934337772206998657CU22"), - // ActionTrackingID: to.Ptr("56063357-45dd-4278-9be5-8220ce0cc9ca"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.5450625Z"); return t}()), - // InputsLink: &armappservice.ContentLink{ - // ContentSize: to.Ptr[int64](138), - // URI: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/000012345678900000000056a41a/runs/00000aaaabbbbccccddddeeeeffff/actions/HTTP/contents/ActionInputs?api-version=2018-11-01&code=examplecode=2022-04-13T03%3A00%3A00.0000000Z&sp=%2Fruns%2F00000aaaabbbbccccddddeeeeffff%2Factions%2FHTTP%2Fcontents%2FActionInputs%2Fread&sv=1.0&sig=dJ6F00000aaaabbbbccccddddeeeeffff78co"), - // }, - // OutputsLink: &armappservice.ContentLink{ - // ContentSize: to.Ptr[int64](15660), - // URI: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/000012345678900000000056a41a/runs/00000aaaabbbbccccddddeeeeffff/actions/HTTP/contents/ActionOutputs?api-version=2018-11-01&code=examplecode=2022-04-13T03%3A00%3A00.0000000Z&sp=%2Fruns%2F00000aaaabbbbccccddddeeeeffff%2Factions%2FHTTP%2Fcontents%2FActionOutputs%2Fread&sv=1.0&sig=fIIgF00000aaaabbbbccccddddeeeeffffWRU0"), - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.305236Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowRunActions_ListExpressionTraces.json -func ExampleWorkflowRunActionsClient_NewListExpressionTracesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWorkflowRunActionsClient().NewListExpressionTracesPager("testResourceGroup", "test-name", "testFlow", "08586776228332053161046300351", "testAction", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Inputs { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ExpressionTraces = armappservice.ExpressionTraces{ - // Inputs: []*armappservice.ExpressionRoot{ - // { - // Text: to.Ptr("add(4, 4)"), - // Value: float64(8), - // Path: to.Ptr(""), - // }}, - // } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client_example_test.go deleted file mode 100644 index 7d51f24ad507..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client_example_test.go +++ /dev/null @@ -1,126 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowRunActionScopeRepetitions_List.json -func ExampleWorkflowRunActionScopeRepetitionsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWorkflowRunActionScopeRepetitionsClient().NewListPager("testResourceGroup", "test-name", "testFlow", "08586776228332053161046300351", "for_each", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WorkflowRunActionRepetitionDefinitionCollection = armappservice.WorkflowRunActionRepetitionDefinitionCollection{ - // Value: []*armappservice.WorkflowRunActionRepetitionDefinition{ - // { - // Name: to.Ptr("000000"), - // Type: to.Ptr("/workflows/runs/actions/scopeRepetitions"), - // ID: to.Ptr("/workflows/testFlow/runs/08586776228332053161046300351/actions/for_each/scopeRepetitions/000000"), - // Properties: &armappservice.WorkflowRunActionRepetitionProperties{ - // Code: to.Ptr("NotSpecified"), - // Correlation: &armappservice.RunActionCorrelation{ - // ClientTrackingID: to.Ptr("08586775357427610445444523191"), - // ActionTrackingID: to.Ptr("5c0e7c24-4891-44e8-b631-8084c5531dd5"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.6240967Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.209588Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // RepetitionIndexes: []*armappservice.RepetitionIndex{ - // { - // ItemIndex: to.Ptr[int32](0), - // ScopeName: to.Ptr("For_each"), - // }}, - // }, - // }, - // { - // Name: to.Ptr("000001"), - // Type: to.Ptr("/workflows/runs/actions/scopeRepetitions"), - // ID: to.Ptr("/workflows/testFlow/runs/08586776228332053161046300351/actions/for_each/scopeRepetitions/000001"), - // Properties: &armappservice.WorkflowRunActionRepetitionProperties{ - // Code: to.Ptr("NotSpecified"), - // Correlation: &armappservice.RunActionCorrelation{ - // ClientTrackingID: to.Ptr("08586775357427610445444523191"), - // ActionTrackingID: to.Ptr("1682d0bd-7189-4478-b333-fe364a80bd69"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.2272796Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.0686808Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // RepetitionIndexes: []*armappservice.RepetitionIndex{ - // { - // ItemIndex: to.Ptr[int32](1), - // ScopeName: to.Ptr("For_each"), - // }}, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowRunActionScopeRepetitions_Get.json -func ExampleWorkflowRunActionScopeRepetitionsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWorkflowRunActionScopeRepetitionsClient().Get(ctx, "testResourceGroup", "test-name", "testFlow", "08586776228332053161046300351", "for_each", "000000", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkflowRunActionRepetitionDefinition = armappservice.WorkflowRunActionRepetitionDefinition{ - // Name: to.Ptr("000000"), - // Type: to.Ptr("/workflows/runs/actions/scopeRepetitions"), - // ID: to.Ptr("/workflows/testFlow/runs/08586776228332053161046300351/actions/for_each/scopeRepetitions/000000"), - // Properties: &armappservice.WorkflowRunActionRepetitionProperties{ - // Code: to.Ptr("NotSpecified"), - // Correlation: &armappservice.RunActionCorrelation{ - // ClientTrackingID: to.Ptr("08586775357427610445444523191"), - // ActionTrackingID: to.Ptr("5c0e7c24-4891-44e8-b631-8084c5531dd5"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.6240967Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.209588Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // RepetitionIndexes: []*armappservice.RepetitionIndex{ - // { - // ItemIndex: to.Ptr[int32](0), - // ScopeName: to.Ptr("For_each"), - // }}, - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowruns_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/workflowruns_client_example_test.go deleted file mode 100644 index f8ddbb208d46..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowruns_client_example_test.go +++ /dev/null @@ -1,149 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowRuns_List.json -func ExampleWorkflowRunsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWorkflowRunsClient().NewListPager("test-resource-group", "test-name", "test-workflow", &armappservice.WorkflowRunsClientListOptions{Top: nil, - Filter: nil, - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WorkflowRunListResult = armappservice.WorkflowRunListResult{ - // Value: []*armappservice.WorkflowRun{ - // { - // ID: to.Ptr("workflows/test-workflow/runs/08586676746934337772206998657CU22"), - // Name: to.Ptr("08586676746934337772206998657CU22"), - // Type: to.Ptr("workflows/runs"), - // Properties: &armappservice.WorkflowRunProperties{ - // Correlation: &armappservice.Correlation{ - // ClientTrackingID: to.Ptr("08586676746934337772206998657CU22"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.5779999Z"); return t}()), - // Outputs: map[string]*armappservice.WorkflowOutputParameter{ - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.044238Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // Trigger: &armappservice.WorkflowRunTrigger{ - // Name: to.Ptr("Recurrence"), - // Code: to.Ptr("OK"), - // Correlation: &armappservice.Correlation{ - // ClientTrackingID: to.Ptr("08586676746934337772206998657CU22"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.0387927Z"); return t}()), - // ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:31.6344174Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.0387927Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // }, - // WaitEndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.044238Z"); return t}()), - // Workflow: &armappservice.ResourceReference{ - // Name: to.Ptr("08586676754160363885"), - // Type: to.Ptr("workflows/versions"), - // ID: to.Ptr("workflows/test-workflow/versions/08586676754160363885"), - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowRuns_Get.json -func ExampleWorkflowRunsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWorkflowRunsClient().Get(ctx, "test-resource-group", "test-name", "test-workflow", "08586676746934337772206998657CU22", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkflowRun = armappservice.WorkflowRun{ - // ID: to.Ptr("/workflows/test-workflow/runs/08586676746934337772206998657CU22"), - // Name: to.Ptr("08586676746934337772206998657CU22"), - // Type: to.Ptr("workflows/runs"), - // Properties: &armappservice.WorkflowRunProperties{ - // Correlation: &armappservice.Correlation{ - // ClientTrackingID: to.Ptr("08586676746934337772206998657CU22"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.5779999Z"); return t}()), - // Outputs: map[string]*armappservice.WorkflowOutputParameter{ - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.044238Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // Trigger: &armappservice.WorkflowRunTrigger{ - // Name: to.Ptr("Recurrence"), - // Code: to.Ptr("OK"), - // Correlation: &armappservice.Correlation{ - // ClientTrackingID: to.Ptr("08586676746934337772206998657CU22"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.0387927Z"); return t}()), - // ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:31.6344174Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.0387927Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // }, - // WaitEndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.044238Z"); return t}()), - // Workflow: &armappservice.ResourceReference{ - // Name: to.Ptr("08586676754160363885"), - // Type: to.Ptr("workflows/versions"), - // ID: to.Ptr("/workflows/test-workflow/versions/08586676754160363885"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowRuns_Cancel.json -func ExampleWorkflowRunsClient_Cancel() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWorkflowRunsClient().Cancel(ctx, "test-resource-group", "test-name", "test-workflow", "08586676746934337772206998657CU22", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflows_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/workflows_client_example_test.go deleted file mode 100644 index 55e57de8bf83..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflows_client_example_test.go +++ /dev/null @@ -1,67 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Workflows_RegenerateAccessKey.json -func ExampleWorkflowsClient_RegenerateAccessKey() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWorkflowsClient().RegenerateAccessKey(ctx, "testResourceGroup", "test-name", "testWorkflowName", armappservice.RegenerateActionParameter{ - KeyType: to.Ptr(armappservice.KeyTypePrimary), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/Workflows_Validate.json -func ExampleWorkflowsClient_Validate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWorkflowsClient().Validate(ctx, "test-resource-group", "test-name", "test-workflow", armappservice.Workflow{ - Properties: &armappservice.WorkflowProperties{ - Definition: map[string]any{ - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "actions": map[string]any{}, - "contentVersion": "1.0.0.0", - "outputs": map[string]any{}, - "parameters": map[string]any{}, - "triggers": map[string]any{}, - }, - Kind: to.Ptr(armappservice.KindStateful), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client_example_test.go deleted file mode 100644 index d53d4b6d549b..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client_example_test.go +++ /dev/null @@ -1,131 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowTriggerHistories_List.json -func ExampleWorkflowTriggerHistoriesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWorkflowTriggerHistoriesClient().NewListPager("testResourceGroup", "test-name", "testWorkflowName", "testTriggerName", &armappservice.WorkflowTriggerHistoriesClientListOptions{Top: nil, - Filter: nil, - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WorkflowTriggerHistoryListResult = armappservice.WorkflowTriggerHistoryListResult{ - // Value: []*armappservice.WorkflowTriggerHistory{ - // { - // ID: to.Ptr("/workflows/testWorkflowName/triggers/testTriggerName/histories/08586676746934337772206998657CU22"), - // Name: to.Ptr("08586676746934337772206998657CU22"), - // Type: to.Ptr("/workflows/triggers/histories"), - // Properties: &armappservice.WorkflowTriggerHistoryProperties{ - // Code: to.Ptr("OK"), - // Correlation: &armappservice.Correlation{ - // ClientTrackingID: to.Ptr("08586676746934337772206998657CU22"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.2987996Z"); return t}()), - // Fired: to.Ptr(true), - // Run: &armappservice.ResourceReference{ - // Name: to.Ptr("08586676746934337772206998657CU22"), - // Type: to.Ptr("/workflows/runs"), - // ID: to.Ptr("/workflows/testWorkflowName/runs/08586676746934337772206998657CU22"), - // }, - // ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:31.6344174Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.0387927Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowTriggerHistories_Get.json -func ExampleWorkflowTriggerHistoriesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWorkflowTriggerHistoriesClient().Get(ctx, "testResourceGroup", "test-name", "testWorkflowName", "testTriggerName", "08586676746934337772206998657CU22", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkflowTriggerHistory = armappservice.WorkflowTriggerHistory{ - // ID: to.Ptr("/workflows/testWorkflowName/triggers/testTriggerName/histories/08586676746934337772206998657CU22"), - // Name: to.Ptr("08586676746934337772206998657CU22"), - // Type: to.Ptr("/workflows/triggers/histories"), - // Properties: &armappservice.WorkflowTriggerHistoryProperties{ - // Code: to.Ptr("OK"), - // Correlation: &armappservice.Correlation{ - // ClientTrackingID: to.Ptr("08586676746934337772206998657CU22"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.2987996Z"); return t}()), - // Fired: to.Ptr(true), - // Run: &armappservice.ResourceReference{ - // Name: to.Ptr("08586676746934337772206998657CU22"), - // Type: to.Ptr("/workflows/runs"), - // ID: to.Ptr("/workflows/testWorkflowName/runs/08586676746934337772206998657CU22"), - // }, - // ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:31.6344174Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.0387927Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowTriggerHistories_Resubmit.json -func ExampleWorkflowTriggerHistoriesClient_BeginResubmit() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWorkflowTriggerHistoriesClient().BeginResubmit(ctx, "testResourceGroup", "test-name", "testWorkflowName", "testTriggerName", "testHistoryName", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowtriggers_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/workflowtriggers_client_example_test.go deleted file mode 100644 index d829cc6c51a9..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowtriggers_client_example_test.go +++ /dev/null @@ -1,176 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowTriggers_List.json -func ExampleWorkflowTriggersClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWorkflowTriggersClient().NewListPager("test-resource-group", "test-name", "test-workflow", &armappservice.WorkflowTriggersClientListOptions{Top: nil, - Filter: nil, - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WorkflowTriggerListResult = armappservice.WorkflowTriggerListResult{ - // Value: []*armappservice.WorkflowTrigger{ - // { - // ID: to.Ptr("/workflows/test-workflow/triggers/manual"), - // Name: to.Ptr("manual"), - // Type: to.Ptr("/workflows/triggers"), - // Properties: &armappservice.WorkflowTriggerProperties{ - // ChangedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T18:47:49.5288666Z"); return t}()), - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T17:32:30.2496336Z"); return t}()), - // ProvisioningState: to.Ptr(armappservice.WorkflowTriggerProvisioningStateSucceeded), - // State: to.Ptr(armappservice.WorkflowStateEnabled), - // Workflow: &armappservice.ResourceReference{ - // Name: to.Ptr("08586676800160476478"), - // Type: to.Ptr("/workflows/versions"), - // ID: to.Ptr("/workflows/test-workflow/versions/08586676800160476478"), - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowTriggers_Get.json -func ExampleWorkflowTriggersClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWorkflowTriggersClient().Get(ctx, "test-resource-group", "test-name", "test-workflow", "manual", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkflowTrigger = armappservice.WorkflowTrigger{ - // ID: to.Ptr("/workflows/test-workflow/triggers/manual"), - // Name: to.Ptr("manual"), - // Type: to.Ptr("/workflows/triggers"), - // Properties: &armappservice.WorkflowTriggerProperties{ - // ChangedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T18:47:49.5288666Z"); return t}()), - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T17:32:30.2496336Z"); return t}()), - // ProvisioningState: to.Ptr(armappservice.WorkflowTriggerProvisioningStateSucceeded), - // State: to.Ptr(armappservice.WorkflowStateEnabled), - // Workflow: &armappservice.ResourceReference{ - // Name: to.Ptr("08586676800160476478"), - // Type: to.Ptr("/workflows/versions"), - // ID: to.Ptr("/workflows/test-workflow/versions/08586676800160476478"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowTriggers_ListCallbackUrl.json -func ExampleWorkflowTriggersClient_ListCallbackURL() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWorkflowTriggersClient().ListCallbackURL(ctx, "test-resource-group", "test-name", "test-workflow", "manual", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkflowTriggerCallbackURL = armappservice.WorkflowTriggerCallbackURL{ - // Method: to.Ptr("POST"), - // BasePath: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/fb9c8d79b15f41ce9b12861862f43546/versions/08587100027316071865/triggers/manualTrigger/paths/invoke"), - // Queries: &armappservice.WorkflowTriggerListCallbackURLQueries{ - // APIVersion: to.Ptr("2018-07-01-preview"), - // Sig: to.Ptr("IxEQ_ygZf6WNEQCbjV0Vs6p6Y4DyNEJVAa86U5B4xhk"), - // Sp: to.Ptr("/versions/08587100027316071865/triggers/manualTrigger/run"), - // Sv: to.Ptr("1.0"), - // }, - // Value: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/fb9c8d79b15f41ce9b12861862f43546/versions/08587100027316071865/triggers/manualTrigger/paths/invoke?api-version=2015-08-01-preview&sp=%2Fversions%2F08587100027316071865%2Ftriggers%2FmanualTrigger%2Frun&sv=1.0&sig=IxEQ_ygZf6WNEQCbjV0Vs6p6Y4DyNEJVAa86U5B4xhk"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowTriggers_Run.json -func ExampleWorkflowTriggersClient_BeginRun() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWorkflowTriggersClient().BeginRun(ctx, "test-resource-group", "test-name", "test-workflow", "recurrence", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowTriggers_GetSchemaJson.json -func ExampleWorkflowTriggersClient_GetSchemaJSON() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWorkflowTriggersClient().GetSchemaJSON(ctx, "testResourceGroup", "test-name", "testWorkflow", "testTrigger", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.JSONSchema = armappservice.JSONSchema{ - // Content: to.Ptr("JsonContent"), - // Title: to.Ptr("JsonTitle"), - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowversions_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/workflowversions_client_example_test.go deleted file mode 100644 index de8ad75b4204..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowversions_client_example_test.go +++ /dev/null @@ -1,138 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowVersions_List.json -func ExampleWorkflowVersionsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWorkflowVersionsClient().NewListPager("test-resource-group", "test-name", "test-workflow", &armappservice.WorkflowVersionsClientListOptions{Top: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WorkflowVersionListResult = armappservice.WorkflowVersionListResult{ - // Value: []*armappservice.WorkflowVersion{ - // { - // Name: to.Ptr("test-workflow"), - // Type: to.Ptr("/workflows/versions"), - // ID: to.Ptr("/workflows/test-workflow"), - // Properties: &armappservice.WorkflowVersionProperties{ - // ChangedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-09T22:54:54.3533634Z"); return t}()), - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-25T01:39:21.4365247Z"); return t}()), - // Definition: map[string]any{ - // "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - // "actions":map[string]any{ - // }, - // "contentVersion": "1.0.0.0", - // "outputs":map[string]any{ - // }, - // "parameters":map[string]any{ - // }, - // "triggers":map[string]any{ - // }, - // }, - // EndpointsConfiguration: &armappservice.FlowEndpointsConfiguration{ - // Connector: &armappservice.FlowEndpoints{ - // OutgoingIPAddresses: []*armappservice.IPAddress{ - // }, - // }, - // Workflow: &armappservice.FlowEndpoints{ - // AccessEndpointIPAddresses: []*armappservice.IPAddress{ - // }, - // OutgoingIPAddresses: []*armappservice.IPAddress{ - // }, - // }, - // }, - // Parameters: map[string]*armappservice.WorkflowParameter{ - // }, - // Version: to.Ptr("08586677515911718341"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10c740b7224771c889cfb92f128168f5a0568c26/specification/web/resource-manager/Microsoft.Web/stable/2022-09-01/examples/WorkflowVersions_Get.json -func ExampleWorkflowVersionsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWorkflowVersionsClient().Get(ctx, "test-resource-group", "test-name", "test-workflow", "08586676824806722526", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkflowVersion = armappservice.WorkflowVersion{ - // Name: to.Ptr("test-workflow"), - // Type: to.Ptr("/workflows/versions"), - // ID: to.Ptr("/workflows/test-workflow"), - // Properties: &armappservice.WorkflowVersionProperties{ - // ChangedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-09T22:54:54.3533634Z"); return t}()), - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-25T01:39:21.4365247Z"); return t}()), - // Definition: map[string]any{ - // "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - // "actions":map[string]any{ - // }, - // "contentVersion": "1.0.0.0", - // "outputs":map[string]any{ - // }, - // "parameters":map[string]any{ - // }, - // "triggers":map[string]any{ - // }, - // }, - // EndpointsConfiguration: &armappservice.FlowEndpointsConfiguration{ - // Connector: &armappservice.FlowEndpoints{ - // OutgoingIPAddresses: []*armappservice.IPAddress{ - // }, - // }, - // Workflow: &armappservice.FlowEndpoints{ - // AccessEndpointIPAddresses: []*armappservice.IPAddress{ - // }, - // OutgoingIPAddresses: []*armappservice.IPAddress{ - // }, - // }, - // }, - // Parameters: map[string]*armappservice.WorkflowParameter{ - // }, - // Version: to.Ptr("08586677515911718341"), - // }, - // } -}