From 7b18fa65eaa364d2e970d0d6651a3af26b6a5bd9 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 19 Dec 2024 14:03:41 +0000 Subject: [PATCH] CodeGen from PR 31855 in Azure/azure-rest-api-specs Merge c28011532d39265e56754d50b375b0ac9cab15ce into c335551e028d88eccf20a474944392438136bebc --- .../armplaywrighttesting/CHANGELOG.md | 4 + .../accountquotas_client_example_test.go | 111 ------ .../accounts_client_example_test.go | 328 ------------------ .../armplaywrighttesting/autorest.md | 7 +- .../armplaywrighttesting/constants.go | 2 +- .../armplaywrighttesting/go.mod | 12 +- .../armplaywrighttesting/go.sum | 23 -- .../armplaywrighttesting/models.go | 4 +- .../operations_client_example_test.go | 76 ---- .../quotas_client_example_test.go | 105 ------ 10 files changed, 11 insertions(+), 661 deletions(-) delete mode 100644 sdk/resourcemanager/playwrighttesting/armplaywrighttesting/accountquotas_client_example_test.go delete mode 100644 sdk/resourcemanager/playwrighttesting/armplaywrighttesting/accounts_client_example_test.go delete mode 100644 sdk/resourcemanager/playwrighttesting/armplaywrighttesting/operations_client_example_test.go delete mode 100644 sdk/resourcemanager/playwrighttesting/armplaywrighttesting/quotas_client_example_test.go diff --git a/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/CHANGELOG.md b/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/CHANGELOG.md index 714bb7420d4a..36ac02a209c3 100644 --- a/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/CHANGELOG.md +++ b/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/CHANGELOG.md @@ -1,5 +1,9 @@ # Release History +## 1.0.1 (2024-12-19) +### Other Changes + + ## 1.0.0 (2024-12-26) ### Breaking Changes diff --git a/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/accountquotas_client_example_test.go b/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/accountquotas_client_example_test.go deleted file mode 100644 index 6c1287505870..000000000000 --- a/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/accountquotas_client_example_test.go +++ /dev/null @@ -1,111 +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 armplaywrighttesting_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/playwrighttesting/armplaywrighttesting" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/2bde125befabb21807a2021765901f20e3e74ec8/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/AccountQuotas_ListByAccount.json -func ExampleAccountQuotasClient_NewListByAccountPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armplaywrighttesting.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewAccountQuotasClient().NewListByAccountPager("dummyrg", "myPlaywrightAccount", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.AccountQuotaListResult = armplaywrighttesting.AccountQuotaListResult{ - // Value: []*armplaywrighttesting.AccountQuota{ - // { - // Name: to.Ptr("ScalableExecution"), - // Type: to.Ptr("Microsoft.AzurePlaywrightService/Accounts/Quotas"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount/quotas/ScalableExecution"), - // Properties: &armplaywrighttesting.AccountQuotaProperties{ - // FreeTrial: &armplaywrighttesting.AccountFreeTrialProperties{ - // AllocatedValue: to.Ptr[int32](0), - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-31T10:19:36.081Z"); return t}()), - // ExpiryAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-31T10:19:36.081Z"); return t}()), - // PercentageUsed: to.Ptr[float32](100), - // UsedValue: to.Ptr[int32](0), - // }, - // ProvisioningState: to.Ptr(armplaywrighttesting.ProvisioningStateSucceeded), - // }, - // }, - // { - // Name: to.Ptr("Reporting"), - // Type: to.Ptr("Microsoft.AzurePlaywrightService/Accounts/Quotas"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount/quotas/Reporting"), - // Properties: &armplaywrighttesting.AccountQuotaProperties{ - // FreeTrial: &armplaywrighttesting.AccountFreeTrialProperties{ - // AllocatedValue: to.Ptr[int32](0), - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-31T10:19:36.081Z"); return t}()), - // ExpiryAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-31T10:19:36.081Z"); return t}()), - // PercentageUsed: to.Ptr[float32](100), - // UsedValue: to.Ptr[int32](0), - // }, - // ProvisioningState: to.Ptr(armplaywrighttesting.ProvisioningStateSucceeded), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/2bde125befabb21807a2021765901f20e3e74ec8/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/AccountQuotas_Get.json -func ExampleAccountQuotasClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armplaywrighttesting.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewAccountQuotasClient().Get(ctx, "dummyrg", "myPlaywrightAccount", armplaywrighttesting.QuotaNamesScalableExecution, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AccountQuota = armplaywrighttesting.AccountQuota{ - // Name: to.Ptr("ScalableExecution"), - // Type: to.Ptr("Microsoft.AzurePlaywrightService/Accounts/Quotas"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount/quotas/ScalableExecution"), - // Properties: &armplaywrighttesting.AccountQuotaProperties{ - // FreeTrial: &armplaywrighttesting.AccountFreeTrialProperties{ - // AllocatedValue: to.Ptr[int32](0), - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-31T10:19:36.081Z"); return t}()), - // ExpiryAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-31T10:19:36.081Z"); return t}()), - // PercentageUsed: to.Ptr[float32](100), - // UsedValue: to.Ptr[int32](0), - // }, - // ProvisioningState: to.Ptr(armplaywrighttesting.ProvisioningStateSucceeded), - // }, - // } -} diff --git a/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/accounts_client_example_test.go b/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/accounts_client_example_test.go deleted file mode 100644 index 4da7390342c2..000000000000 --- a/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/accounts_client_example_test.go +++ /dev/null @@ -1,328 +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 armplaywrighttesting_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/playwrighttesting/armplaywrighttesting" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/2bde125befabb21807a2021765901f20e3e74ec8/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/Accounts_ListBySubscription.json -func ExampleAccountsClient_NewListBySubscriptionPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armplaywrighttesting.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewAccountsClient().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.AccountListResult = armplaywrighttesting.AccountListResult{ - // Value: []*armplaywrighttesting.Account{ - // { - // Name: to.Ptr("myPlaywrightAccount"), - // Type: to.Ptr("Microsoft.AzurePlaywrightService/accounts"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount"), - // SystemData: &armplaywrighttesting.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-28T12:32:33.000Z"); return t}()), - // CreatedBy: to.Ptr("userId1001"), - // CreatedByType: to.Ptr(armplaywrighttesting.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-28T12:32:33.000Z"); return t}()), - // LastModifiedBy: to.Ptr("userId1001"), - // LastModifiedByType: to.Ptr(armplaywrighttesting.CreatedByTypeUser), - // }, - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "Team": to.Ptr("Dev Exp"), - // }, - // Properties: &armplaywrighttesting.AccountProperties{ - // DashboardURI: to.Ptr("https://dashboard.00000000-0000-0000-0000-000000000000.domain.com"), - // LocalAuth: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - // ProvisioningState: to.Ptr(armplaywrighttesting.ProvisioningStateSucceeded), - // RegionalAffinity: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - // Reporting: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - // ScalableExecution: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/2bde125befabb21807a2021765901f20e3e74ec8/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/Accounts_CheckNameAvailability.json -func ExampleAccountsClient_CheckNameAvailability() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armplaywrighttesting.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewAccountsClient().CheckNameAvailability(ctx, armplaywrighttesting.CheckNameAvailabilityRequest{ - Name: to.Ptr("dummyName"), - Type: to.Ptr("Microsoft.AzurePlaywrightService/Accounts"), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CheckNameAvailabilityResponse = armplaywrighttesting.CheckNameAvailabilityResponse{ - // Message: to.Ptr("Test message."), - // NameAvailable: to.Ptr(true), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/2bde125befabb21807a2021765901f20e3e74ec8/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/Accounts_ListByResourceGroup.json -func ExampleAccountsClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armplaywrighttesting.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewAccountsClient().NewListByResourceGroupPager("dummyrg", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.AccountListResult = armplaywrighttesting.AccountListResult{ - // Value: []*armplaywrighttesting.Account{ - // { - // Name: to.Ptr("myPlaywrightAccount"), - // Type: to.Ptr("Microsoft.AzurePlaywrightService/accounts"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount"), - // SystemData: &armplaywrighttesting.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-28T12:32:33.000Z"); return t}()), - // CreatedBy: to.Ptr("userId1001"), - // CreatedByType: to.Ptr(armplaywrighttesting.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-28T12:32:33.000Z"); return t}()), - // LastModifiedBy: to.Ptr("userId1001"), - // LastModifiedByType: to.Ptr(armplaywrighttesting.CreatedByTypeUser), - // }, - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "Team": to.Ptr("Dev Exp"), - // }, - // Properties: &armplaywrighttesting.AccountProperties{ - // DashboardURI: to.Ptr("https://dashboard.00000000-0000-0000-0000-000000000000.domain.com"), - // LocalAuth: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - // ProvisioningState: to.Ptr(armplaywrighttesting.ProvisioningStateSucceeded), - // RegionalAffinity: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - // Reporting: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - // ScalableExecution: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/2bde125befabb21807a2021765901f20e3e74ec8/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/Accounts_Get.json -func ExampleAccountsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armplaywrighttesting.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewAccountsClient().Get(ctx, "dummyrg", "myPlaywrightAccount", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Account = armplaywrighttesting.Account{ - // Name: to.Ptr("myPlaywrightAccount"), - // Type: to.Ptr("Microsoft.AzurePlaywrightService/accounts"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount"), - // SystemData: &armplaywrighttesting.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-28T12:32:33.000Z"); return t}()), - // CreatedBy: to.Ptr("userId1001"), - // CreatedByType: to.Ptr(armplaywrighttesting.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-28T12:32:33.000Z"); return t}()), - // LastModifiedBy: to.Ptr("userId1001"), - // LastModifiedByType: to.Ptr(armplaywrighttesting.CreatedByTypeUser), - // }, - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "Team": to.Ptr("Dev Exp"), - // }, - // Properties: &armplaywrighttesting.AccountProperties{ - // DashboardURI: to.Ptr("https://dashboard.00000000-0000-0000-0000-000000000000.domain.com"), - // LocalAuth: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - // ProvisioningState: to.Ptr(armplaywrighttesting.ProvisioningStateSucceeded), - // RegionalAffinity: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - // Reporting: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - // ScalableExecution: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/2bde125befabb21807a2021765901f20e3e74ec8/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/Accounts_CreateOrUpdate.json -func ExampleAccountsClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armplaywrighttesting.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewAccountsClient().BeginCreateOrUpdate(ctx, "dummyrg", "myPlaywrightAccount", armplaywrighttesting.Account{ - Location: to.Ptr("westus"), - Tags: map[string]*string{ - "Team": to.Ptr("Dev Exp"), - }, - Properties: &armplaywrighttesting.AccountProperties{ - RegionalAffinity: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - }, - }, 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.Account = armplaywrighttesting.Account{ - // Name: to.Ptr("myPlaywrightAccount"), - // Type: to.Ptr("Microsoft.AzurePlaywrightService/accounts"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount"), - // SystemData: &armplaywrighttesting.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-28T12:32:33.000Z"); return t}()), - // CreatedBy: to.Ptr("userId1001"), - // CreatedByType: to.Ptr(armplaywrighttesting.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-28T12:32:33.000Z"); return t}()), - // LastModifiedBy: to.Ptr("userId1001"), - // LastModifiedByType: to.Ptr(armplaywrighttesting.CreatedByTypeUser), - // }, - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "Team": to.Ptr("Dev Exp"), - // }, - // Properties: &armplaywrighttesting.AccountProperties{ - // DashboardURI: to.Ptr("https://dashboard.00000000-0000-0000-0000-000000000000.domain.com"), - // LocalAuth: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - // ProvisioningState: to.Ptr(armplaywrighttesting.ProvisioningStateSucceeded), - // RegionalAffinity: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - // Reporting: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - // ScalableExecution: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/2bde125befabb21807a2021765901f20e3e74ec8/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/Accounts_Update.json -func ExampleAccountsClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armplaywrighttesting.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewAccountsClient().Update(ctx, "dummyrg", "myPlaywrightAccount", armplaywrighttesting.AccountUpdate{ - Properties: &armplaywrighttesting.AccountUpdateProperties{ - RegionalAffinity: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - }, - Tags: map[string]*string{ - "Division": to.Ptr("LT"), - "Team": to.Ptr("Dev Exp"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Account = armplaywrighttesting.Account{ - // Name: to.Ptr("myPlaywrightAccount"), - // Type: to.Ptr("Microsoft.AzurePlaywrightService/accounts"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.AzurePlaywrightService/accounts/myPlaywrightAccount"), - // SystemData: &armplaywrighttesting.SystemData{ - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-28T12:32:33.000Z"); return t}()), - // CreatedBy: to.Ptr("userId1001"), - // CreatedByType: to.Ptr(armplaywrighttesting.CreatedByTypeUser), - // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-28T12:32:33.000Z"); return t}()), - // LastModifiedBy: to.Ptr("userId1001"), - // LastModifiedByType: to.Ptr(armplaywrighttesting.CreatedByTypeUser), - // }, - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "Team": to.Ptr("Dev Exp"), - // }, - // Properties: &armplaywrighttesting.AccountProperties{ - // DashboardURI: to.Ptr("https://dashboard.00000000-0000-0000-0000-000000000000.domain.com"), - // LocalAuth: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - // ProvisioningState: to.Ptr(armplaywrighttesting.ProvisioningStateSucceeded), - // RegionalAffinity: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - // Reporting: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - // ScalableExecution: to.Ptr(armplaywrighttesting.EnablementStatusEnabled), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/2bde125befabb21807a2021765901f20e3e74ec8/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/Accounts_Delete.json -func ExampleAccountsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armplaywrighttesting.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewAccountsClient().BeginDelete(ctx, "dummyrg", "myPlaywrightAccount", 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/playwrighttesting/armplaywrighttesting/autorest.md b/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/autorest.md index 1479dec27fae..bb3facbaba0d 100644 --- a/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/autorest.md +++ b/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/autorest.md @@ -5,9 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/2bde125befabb21807a2021765901f20e3e74ec8/specification/playwrighttesting/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/2bde125befabb21807a2021765901f20e3e74ec8/specification/playwrighttesting/resource-manager/readme.go.md +- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/playwrighttesting/resource-manager/readme.md +- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/playwrighttesting/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.0.0 -tag: package-2024-12-01 +module-version: 1.0.1 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/constants.go b/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/constants.go index c5d9a632c800..011477ba7c0d 100644 --- a/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/constants.go +++ b/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/constants.go @@ -10,7 +10,7 @@ package armplaywrighttesting const ( moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/playwrighttesting/armplaywrighttesting" - moduleVersion = "v1.0.0" + moduleVersion = "v1.0.1" ) // ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. diff --git a/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/go.mod b/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/go.mod index a9912b5e7b5e..eaf1128ae3ec 100644 --- a/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/go.mod +++ b/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/go.mod @@ -2,20 +2,10 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/playwrighttesting/a go 1.18 -require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.0 -) +require github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0 require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v1.3.2 // indirect - github.com/golang-jwt/jwt/v5 v5.2.1 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/kylelemons/godebug v1.1.0 // indirect - github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect - golang.org/x/crypto v0.31.0 // indirect golang.org/x/net v0.32.0 // indirect - golang.org/x/sys v0.28.0 // indirect golang.org/x/text v0.21.0 // indirect ) diff --git a/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/go.sum b/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/go.sum index 5a15625c8c87..147da7454bac 100644 --- a/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/go.sum +++ b/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/go.sum @@ -1,35 +1,12 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0 h1:JZg6HRh6W6U4OLl6lk7BZ7BLisIzM9dG1R50zUk9C/M= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0/go.mod h1:YL1xnZ6QejvQHWJrX/AvhFl4WW4rqHVoKspWNVwFk0M= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.0 h1:B/dfvscEQtew9dVuoxqxrUKKv8Ih2f55PydknDamU+g= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.0/go.mod h1:fiPSssYvltE08HJchL04dOy+RD4hgrjph0cwGGMntdI= -github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.3.0 h1:+m0M/LFxN43KvULkDNfdXOgrjtg6UYJPFBJyuEcRCAw= github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 h1:ywEEhmNahHBihViHepv3xPBn1663uRv2t2q/ESv9seY= github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0/go.mod h1:iZDifYGJTIgIIkYRNWPENUnqx6bJ2xnSDFI2tjwZNuY= -github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1 h1:WJTmL004Abzc5wDB5VtZG2PJk5ndYDgVacGqfirKxjM= -github.com/AzureAD/microsoft-authentication-library-for-go v1.3.2 h1:kYRSnvJju5gYVyhkij+RTJ/VR6QIUaCfWeaFm2ycsjQ= -github.com/AzureAD/microsoft-authentication-library-for-go v1.3.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78= -github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= -github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/keybase/go-keychain v0.0.0-20231219164618-57a3676c3af6 h1:IsMZxCuZqKuao2vNdfD82fjjgPLfyHLpR41Z88viRWs= -github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= -github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= -github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= -github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/redis/go-redis/v9 v9.6.1 h1:HHDteefn6ZkTtY5fGUE8tj8uy85AHk6zP7CpzIAM0y4= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= -golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/net v0.32.0 h1:ZqPmj8Kzc+Y6e0+skZsuACbx+wzMgo5MQsJh9Qd6aYI= golang.org/x/net v0.32.0/go.mod h1:CwU0IoeOlnQQWJ6ioyFrfRuomB8GKF6KbYXZVyeXNfs= -golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= -golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/models.go b/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/models.go index 44bdcd0a6936..f6cbea08c215 100644 --- a/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/models.go +++ b/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/models.go @@ -63,7 +63,7 @@ type AccountListResult struct { // AccountProperties - Account resource properties. type AccountProperties struct { - // When enabled, this feature allows the workspace to use local auth(through access key) for authentication of test runs. + // When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations. LocalAuth *EnablementStatus // This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect @@ -134,7 +134,7 @@ type AccountUpdate struct { // AccountUpdateProperties - The updatable properties of the Account. type AccountUpdateProperties struct { - // When enabled, this feature allows the workspace to use local auth(through access key) for authentication of test runs. + // When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations. LocalAuth *EnablementStatus // This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect diff --git a/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/operations_client_example_test.go b/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/operations_client_example_test.go deleted file mode 100644 index 67eb9ee70a76..000000000000 --- a/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/operations_client_example_test.go +++ /dev/null @@ -1,76 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armplaywrighttesting_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/playwrighttesting/armplaywrighttesting" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/2bde125befabb21807a2021765901f20e3e74ec8/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/Operations_List.json -func ExampleOperationsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armplaywrighttesting.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewOperationsClient().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.OperationListResult = armplaywrighttesting.OperationListResult{ - // Value: []*armplaywrighttesting.Operation{ - // { - // Name: to.Ptr("Microsoft.AzurePlaywrightService/accounts/Write"), - // Display: &armplaywrighttesting.OperationDisplay{ - // Description: to.Ptr("Set PlaywrightAccounts"), - // Operation: to.Ptr("Creates or updates the PlaywrightAccounts"), - // Provider: to.Ptr("Microsoft.AzurePlaywrightService"), - // Resource: to.Ptr("accounts"), - // }, - // IsDataAction: to.Ptr(false), - // }, - // { - // Name: to.Ptr("Microsoft.AzurePlaywrightService/accounts/Delete"), - // Display: &armplaywrighttesting.OperationDisplay{ - // Description: to.Ptr("Delete PlaywrightAccounts"), - // Operation: to.Ptr("Deletes the PlaywrightAccounts"), - // Provider: to.Ptr("Microsoft.AzurePlaywrightService"), - // Resource: to.Ptr("accounts"), - // }, - // IsDataAction: to.Ptr(false), - // }, - // { - // Name: to.Ptr("Microsoft.AzurePlaywrightService/accounts/Read"), - // Display: &armplaywrighttesting.OperationDisplay{ - // Description: to.Ptr("Read PlaywrightAccounts"), - // Operation: to.Ptr("Reads the PlaywrightAccounts"), - // Provider: to.Ptr("Microsoft.AzurePlaywrightService"), - // Resource: to.Ptr("accounts"), - // }, - // IsDataAction: to.Ptr(false), - // }}, - // } - } -} diff --git a/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/quotas_client_example_test.go b/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/quotas_client_example_test.go deleted file mode 100644 index a04917a4089d..000000000000 --- a/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/quotas_client_example_test.go +++ /dev/null @@ -1,105 +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 armplaywrighttesting_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/playwrighttesting/armplaywrighttesting" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/2bde125befabb21807a2021765901f20e3e74ec8/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/Quotas_ListBySubscription.json -func ExampleQuotasClient_NewListBySubscriptionPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armplaywrighttesting.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewQuotasClient().NewListBySubscriptionPager("eastus", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.QuotaListResult = armplaywrighttesting.QuotaListResult{ - // Value: []*armplaywrighttesting.Quota{ - // { - // Name: to.Ptr("ScalableExecution"), - // Type: to.Ptr("Microsoft.AzurePlaywrightService/Locations/Quotas"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AzurePlaywrightService/locations/eastus/quotas/ScalableExecution"), - // Properties: &armplaywrighttesting.QuotaProperties{ - // FreeTrial: &armplaywrighttesting.FreeTrialProperties{ - // AccountID: to.Ptr("3fa85f64-5717-4562-b3fc-2c963f66afa6"), - // State: to.Ptr(armplaywrighttesting.FreeTrialStateActive), - // }, - // OfferingType: to.Ptr(armplaywrighttesting.OfferingTypeNotApplicable), - // ProvisioningState: to.Ptr(armplaywrighttesting.ProvisioningStateSucceeded), - // }, - // }, - // { - // Name: to.Ptr("Reporting"), - // Type: to.Ptr("Microsoft.AzurePlaywrightService/Locations/Quotas"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AzurePlaywrightService/locations/eastus/quotas/Reporting"), - // Properties: &armplaywrighttesting.QuotaProperties{ - // FreeTrial: &armplaywrighttesting.FreeTrialProperties{ - // AccountID: to.Ptr("3fa85f64-5717-4562-b3fc-2c963f66afa6"), - // State: to.Ptr(armplaywrighttesting.FreeTrialStateActive), - // }, - // OfferingType: to.Ptr(armplaywrighttesting.OfferingTypePrivatePreview), - // ProvisioningState: to.Ptr(armplaywrighttesting.ProvisioningStateSucceeded), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/2bde125befabb21807a2021765901f20e3e74ec8/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/stable/2024-12-01/examples/Quotas_Get.json -func ExampleQuotasClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armplaywrighttesting.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewQuotasClient().Get(ctx, "eastus", armplaywrighttesting.QuotaNamesScalableExecution, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Quota = armplaywrighttesting.Quota{ - // Name: to.Ptr("ScalableExecution"), - // Type: to.Ptr("Microsoft.AzurePlaywrightService/Locations/Quotas"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AzurePlaywrightService/locations/eastus/quotas/ScalableExecution"), - // Properties: &armplaywrighttesting.QuotaProperties{ - // FreeTrial: &armplaywrighttesting.FreeTrialProperties{ - // AccountID: to.Ptr("3fa85f64-5717-4562-b3fc-2c963f66afa6"), - // State: to.Ptr(armplaywrighttesting.FreeTrialStateActive), - // }, - // OfferingType: to.Ptr(armplaywrighttesting.OfferingTypeNotApplicable), - // ProvisioningState: to.Ptr(armplaywrighttesting.ProvisioningStateSucceeded), - // }, - // } -}