diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/AvailableOSGet.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/AvailableOSGet.md index befa16a4d3..23a401776c 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/AvailableOSGet.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/AvailableOSGet.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,22 +16,19 @@ func ExampleAvailableOSClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewAvailableOSClient("", cred, nil) + client, err := armtestbase.NewAvailableOSClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } res, err := client.Get(ctx, - "", - "", - "", + "contoso-rg", + "contoso-testBaseAccount", + "Windows-10-2004", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/AvailableOSsList.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/AvailableOSsList.md index d00151465d..37d0f931a9 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/AvailableOSsList.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/AvailableOSsList.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,23 +16,20 @@ func ExampleAvailableOSClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewAvailableOSClient("", cred, nil) + client, err := armtestbase.NewAvailableOSClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } - pager := client.NewListPager("", - "", + pager := client.NewListPager("contoso-rg", + "contoso-testBaseAccount", armtestbase.OsUpdateTypeSecurityUpdate, nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) - return } for _, v := range nextResult.Value { // TODO: use page item diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CPURegressionAnalysisResultGet.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CPURegressionAnalysisResultGet.md index 1c93b779e6..340a6dffc3 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CPURegressionAnalysisResultGet.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CPURegressionAnalysisResultGet.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,24 +16,21 @@ func ExampleAnalysisResultsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewAnalysisResultsClient("", cred, nil) + client, err := armtestbase.NewAnalysisResultsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } res, err := client.Get(ctx, - "", - "", - "", - "", + "contoso-rg1", + "contoso-testBaseAccount1", + "contoso-package2", + "Windows-10-1909-Test-Id", armtestbase.AnalysisResultNameCPURegression, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CPURegressionAnalysisResultsList.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CPURegressionAnalysisResultsList.md index ee960f0e33..0c8e45deec 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CPURegressionAnalysisResultsList.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CPURegressionAnalysisResultsList.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,25 +16,22 @@ func ExampleAnalysisResultsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewAnalysisResultsClient("", cred, nil) + client, err := armtestbase.NewAnalysisResultsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } - pager := client.NewListPager("", - "", - "", - "", + pager := client.NewListPager("contoso-rg1", + "contoso-testBaseAccount1", + "contoso-package2", + "Windows-10-1909-Test-Id", armtestbase.AnalysisResultTypeCPURegression, nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) - return } for _, v := range nextResult.Value { // TODO: use page item diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CheckPackageNameAvailability.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CheckPackageNameAvailability.md index 0418efc197..b7d0f5f3d8 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CheckPackageNameAvailability.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CheckPackageNameAvailability.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -17,27 +17,24 @@ func ExampleAccountsClient_CheckPackageNameAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewAccountsClient("", cred, nil) + client, err := armtestbase.NewAccountsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } res, err := client.CheckPackageNameAvailability(ctx, - "", - "", + "contoso-rg1", + "contoso-testBaseAccount1", armtestbase.PackageCheckNameAvailabilityParameters{ - Name: to.Ptr(""), - Type: to.Ptr(""), - ApplicationName: to.Ptr(""), - Version: to.Ptr(""), + Name: to.Ptr("testApp"), + Type: to.Ptr("Microsoft.TestBase/testBaseAccounts/packages"), + ApplicationName: to.Ptr("testApp"), + Version: to.Ptr("1.0.0"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CustomerEventCreate.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CustomerEventCreate.md index e48d8c897c..d7c830727e 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CustomerEventCreate.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CustomerEventCreate.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -7,8 +7,6 @@ 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/testbase/armtestbase" @@ -19,24 +17,22 @@ func ExampleCustomerEventsClient_BeginCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewCustomerEventsClient("", cred, nil) + client, err := armtestbase.NewCustomerEventsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } poller, err := client.BeginCreate(ctx, - "", - "", - "", + "contoso-rg1", + "contoso-testBaseAccount1", + "WeeklySummary", armtestbase.CustomerEventResource{ Properties: &armtestbase.CustomerEventProperties{ - EventName: to.Ptr(""), + EventName: to.Ptr("WeeklySummary"), Receivers: []*armtestbase.NotificationEventReceiver{ { - ReceiverType: to.Ptr(""), + ReceiverType: to.Ptr("UserObjects"), ReceiverValue: &armtestbase.NotificationReceiverValue{ UserObjectReceiverValue: &armtestbase.UserObjectReceiverValue{ UserObjectIDs: []*string{ @@ -46,7 +42,7 @@ func ExampleCustomerEventsClient_BeginCreate() { }, }, { - ReceiverType: to.Ptr(""), + ReceiverType: to.Ptr("DistributionGroup"), ReceiverValue: &armtestbase.NotificationReceiverValue{ DistributionGroupListReceiverValue: &armtestbase.DistributionGroupListReceiverValue{ DistributionGroups: []*string{ @@ -56,15 +52,13 @@ func ExampleCustomerEventsClient_BeginCreate() { }}, }, }, - &armtestbase.CustomerEventsClientBeginCreateOptions{ResumeToken: ""}) + nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } - res, err := poller.PollUntilDone(ctx, 30*time.Second) + res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CustomerEventDelete.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CustomerEventDelete.md index e702e2abbe..fd546bca63 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CustomerEventDelete.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CustomerEventDelete.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -7,8 +7,6 @@ import ( "context" "log" - "time" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/testbase/armtestbase" ) @@ -18,27 +16,23 @@ func ExampleCustomerEventsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewCustomerEventsClient("", cred, nil) + client, err := armtestbase.NewCustomerEventsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } poller, err := client.BeginDelete(ctx, - "", - "", - "", - &armtestbase.CustomerEventsClientBeginDeleteOptions{ResumeToken: ""}) + "contoso-rg1", + "contoso-testBaseAccount1", + "WeeklySummary", + nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } - _, err = poller.PollUntilDone(ctx, 30*time.Second) + _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) - return } } ``` diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CustomerEventGet.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CustomerEventGet.md index 1634c43799..45248db11c 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CustomerEventGet.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CustomerEventGet.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,22 +16,19 @@ func ExampleCustomerEventsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewCustomerEventsClient("", cred, nil) + client, err := armtestbase.NewCustomerEventsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } res, err := client.Get(ctx, - "", - "", - "", + "contoso-rg1", + "contoso-testBaseAccount1", + "WeeklySummary", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CustomerEventsList.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CustomerEventsList.md index de387aa266..0ae8fab8f1 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CustomerEventsList.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/CustomerEventsList.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,22 +16,19 @@ func ExampleCustomerEventsClient_NewListByTestBaseAccountPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewCustomerEventsClient("", cred, nil) + client, err := armtestbase.NewCustomerEventsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } - pager := client.NewListByTestBaseAccountPager("", - "", + pager := client.NewListByTestBaseAccountPager("contoso-rg1", + "contoso-testBaseAccount1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) - return } for _, v := range nextResult.Value { // TODO: use page item diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/EmailEventGet.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/EmailEventGet.md index 9e13f15519..9c5b7046d6 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/EmailEventGet.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/EmailEventGet.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,22 +16,19 @@ func ExampleEmailEventsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewEmailEventsClient("", cred, nil) + client, err := armtestbase.NewEmailEventsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } res, err := client.Get(ctx, - "", - "", - "", + "contoso-rg", + "contoso-testBaseAccount", + "weekly-summary", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/EmailEventsList.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/EmailEventsList.md index 2b1129ebee..ddd0f1719d 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/EmailEventsList.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/EmailEventsList.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,22 +16,19 @@ func ExampleEmailEventsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewEmailEventsClient("", cred, nil) + client, err := armtestbase.NewEmailEventsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } - pager := client.NewListPager("", - "", + pager := client.NewListPager("contoso-rg", + "contoso-testBaseAccount", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) - return } for _, v := range nextResult.Value { // TODO: use page item diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FavoriteProcessCreate.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FavoriteProcessCreate.md index a998ca2bb8..9303b29849 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FavoriteProcessCreate.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FavoriteProcessCreate.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -17,28 +17,25 @@ func ExampleFavoriteProcessesClient_Create() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewFavoriteProcessesClient("", cred, nil) + client, err := armtestbase.NewFavoriteProcessesClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } res, err := client.Create(ctx, - "", - "", - "", - "", + "contoso-rg1", + "contoso-testBaseAccount1", + "contoso-package2", + "testAppProcess", armtestbase.FavoriteProcessResource{ Properties: &armtestbase.FavoriteProcessProperties{ - ActualProcessName: to.Ptr(""), + ActualProcessName: to.Ptr("testApp&.exe"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FavoriteProcessDelete.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FavoriteProcessDelete.md index 13f4ac9572..96bbfb2c67 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FavoriteProcessDelete.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FavoriteProcessDelete.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,23 +16,20 @@ func ExampleFavoriteProcessesClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewFavoriteProcessesClient("", cred, nil) + client, err := armtestbase.NewFavoriteProcessesClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } _, err = client.Delete(ctx, - "", - "", - "", - "", + "contoso-rg1", + "contoso-testBaseAccount1", + "contoso-package2", + "testAppProcess", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } } ``` diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FavoriteProcessGet.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FavoriteProcessGet.md index 85a6b3e4d5..9a04628d55 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FavoriteProcessGet.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FavoriteProcessGet.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,23 +16,20 @@ func ExampleFavoriteProcessesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewFavoriteProcessesClient("", cred, nil) + client, err := armtestbase.NewFavoriteProcessesClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } res, err := client.Get(ctx, - "", - "", - "", - "", + "contoso-rg1", + "contoso-testBaseAccount1", + "contoso-package2", + "testAppProcess", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FavoriteProcessesList.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FavoriteProcessesList.md index 4cf07f6580..a9e053e75f 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FavoriteProcessesList.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FavoriteProcessesList.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,23 +16,20 @@ func ExampleFavoriteProcessesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewFavoriteProcessesClient("", cred, nil) + client, err := armtestbase.NewFavoriteProcessesClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } - pager := client.NewListPager("", - "", - "", + pager := client.NewListPager("contoso-rg1", + "contoso-testBaseAccount1", + "contoso-package2", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) - return } for _, v := range nextResult.Value { // TODO: use page item diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FlightingRingGet.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FlightingRingGet.md index 2520051440..2c41cf8a42 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FlightingRingGet.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FlightingRingGet.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,22 +16,19 @@ func ExampleFlightingRingsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewFlightingRingsClient("", cred, nil) + client, err := armtestbase.NewFlightingRingsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } res, err := client.Get(ctx, - "", - "", - "", + "contoso-rg", + "contoso-testBaseAccount", + "Insider-Beta-Channel", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FlightingRingsList.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FlightingRingsList.md index 18be7a184d..5658be39be 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FlightingRingsList.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/FlightingRingsList.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,22 +16,19 @@ func ExampleFlightingRingsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewFlightingRingsClient("", cred, nil) + client, err := armtestbase.NewFlightingRingsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } - pager := client.NewListPager("", - "", + pager := client.NewListPager("contoso-rg", + "contoso-testBaseAccount", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) - return } for _, v := range nextResult.Value { // TODO: use page item diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/OSUpdateGet.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/OSUpdateGet.md index ef482dab23..d89ce378ca 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/OSUpdateGet.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/OSUpdateGet.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,23 +16,20 @@ func ExampleOSUpdatesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewOSUpdatesClient("", cred, nil) + client, err := armtestbase.NewOSUpdatesClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } res, err := client.Get(ctx, - "", - "", - "", - "", + "contoso-rg1", + "contoso-testBaseAccount1", + "contoso-package2", + "Windows-10-2004-2020-12-B-505", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/OSUpdatesList.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/OSUpdatesList.md index 20d3e05b3f..1b436805fa 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/OSUpdatesList.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/OSUpdatesList.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,24 +16,21 @@ func ExampleOSUpdatesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewOSUpdatesClient("", cred, nil) + client, err := armtestbase.NewOSUpdatesClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } - pager := client.NewListPager("", - "", - "", + pager := client.NewListPager("contoso-rg1", + "contoso-testBaseAccount1", + "contoso-package2", armtestbase.OsUpdateTypeSecurityUpdate, nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) - return } for _, v := range nextResult.Value { // TODO: use page item diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/OperationsList.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/OperationsList.md index c35018c4fd..0dfb7da1b5 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/OperationsList.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/OperationsList.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,20 +16,17 @@ func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() client, err := armtestbase.NewOperationsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) - return } for _, v := range nextResult.Value { // TODO: use page item diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageCreate.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageCreate.md index a180648c62..ee3c64f441 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageCreate.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageCreate.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -7,8 +7,6 @@ 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/testbase/armtestbase" @@ -19,28 +17,26 @@ func ExamplePackagesClient_BeginCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewPackagesClient("", cred, nil) + client, err := armtestbase.NewPackagesClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } poller, err := client.BeginCreate(ctx, - "", - "", - "", + "contoso-rg1", + "contoso-testBaseAccount1", + "contoso-package2", armtestbase.PackageResource{ - Location: to.Ptr(""), + Location: to.Ptr("westus"), Tags: map[string]*string{}, Properties: &armtestbase.PackageProperties{ - ApplicationName: to.Ptr(""), - BlobPath: to.Ptr(""), - FlightingRing: to.Ptr(""), + ApplicationName: to.Ptr("contoso-package2"), + BlobPath: to.Ptr("storageAccountPath/package.zip"), + FlightingRing: to.Ptr("Insider Beta Channel"), TargetOSList: []*armtestbase.TargetOSInfo{ { - OSUpdateType: to.Ptr(""), + OSUpdateType: to.Ptr("Security updates"), TargetOSs: []*string{ to.Ptr("Windows 10 2004"), to.Ptr("Windows 10 1903")}, @@ -51,11 +47,11 @@ func ExamplePackagesClient_BeginCreate() { TestType: to.Ptr(armtestbase.TestTypeOutOfBoxTest), Commands: []*armtestbase.Command{ { - Name: to.Ptr(""), + Name: to.Ptr("Install"), Action: to.Ptr(armtestbase.ActionInstall), AlwaysRun: to.Ptr(true), ApplyUpdateBefore: to.Ptr(false), - Content: to.Ptr(""), + Content: to.Ptr("app/scripts/install/job.ps1"), ContentType: to.Ptr(armtestbase.ContentTypePath), MaxRunTime: to.Ptr[int32](1800), RestartAfter: to.Ptr(true), @@ -63,11 +59,11 @@ func ExamplePackagesClient_BeginCreate() { RunElevated: to.Ptr(true), }, { - Name: to.Ptr(""), + Name: to.Ptr("Launch"), Action: to.Ptr(armtestbase.ActionLaunch), AlwaysRun: to.Ptr(false), ApplyUpdateBefore: to.Ptr(true), - Content: to.Ptr(""), + Content: to.Ptr("app/scripts/launch/job.ps1"), ContentType: to.Ptr(armtestbase.ContentTypePath), MaxRunTime: to.Ptr[int32](1800), RestartAfter: to.Ptr(false), @@ -75,11 +71,11 @@ func ExamplePackagesClient_BeginCreate() { RunElevated: to.Ptr(true), }, { - Name: to.Ptr(""), + Name: to.Ptr("Close"), Action: to.Ptr(armtestbase.ActionClose), AlwaysRun: to.Ptr(false), ApplyUpdateBefore: to.Ptr(false), - Content: to.Ptr(""), + Content: to.Ptr("app/scripts/close/job.ps1"), ContentType: to.Ptr(armtestbase.ContentTypePath), MaxRunTime: to.Ptr[int32](1800), RestartAfter: to.Ptr(false), @@ -87,11 +83,11 @@ func ExamplePackagesClient_BeginCreate() { RunElevated: to.Ptr(true), }, { - Name: to.Ptr(""), + Name: to.Ptr("Uninstall"), Action: to.Ptr(armtestbase.ActionUninstall), AlwaysRun: to.Ptr(true), ApplyUpdateBefore: to.Ptr(false), - Content: to.Ptr(""), + Content: to.Ptr("app/scripts/uninstall/job.ps1"), ContentType: to.Ptr(armtestbase.ContentTypePath), MaxRunTime: to.Ptr[int32](1800), RestartAfter: to.Ptr(false), @@ -99,18 +95,16 @@ func ExamplePackagesClient_BeginCreate() { RunElevated: to.Ptr(true), }}, }}, - Version: to.Ptr(""), + Version: to.Ptr("1.0.0"), }, }, - &armtestbase.PackagesClientBeginCreateOptions{ResumeToken: ""}) + nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } - res, err := poller.PollUntilDone(ctx, 30*time.Second) + res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageDelete.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageDelete.md index 82f91286e2..e1afaf6d77 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageDelete.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageDelete.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -7,8 +7,6 @@ import ( "context" "log" - "time" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/testbase/armtestbase" ) @@ -18,27 +16,23 @@ func ExamplePackagesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewPackagesClient("", cred, nil) + client, err := armtestbase.NewPackagesClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } poller, err := client.BeginDelete(ctx, - "", - "", - "", - &armtestbase.PackagesClientBeginDeleteOptions{ResumeToken: ""}) + "contoso-rg1", + "contoso-testBaseAccount1", + "contoso-package2", + nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } - _, err = poller.PollUntilDone(ctx, 30*time.Second) + _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) - return } } ``` diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageGet.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageGet.md index 013865c88e..64c39416fe 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageGet.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageGet.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,22 +16,19 @@ func ExamplePackagesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewPackagesClient("", cred, nil) + client, err := armtestbase.NewPackagesClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } res, err := client.Get(ctx, - "", - "", - "", + "contoso-rg1", + "contoso-testBaseAccount1", + "contoso-package2", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageGetDownloadURL.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageGetDownloadURL.md index 14cc55f31e..e0a6a0f289 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageGetDownloadURL.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageGetDownloadURL.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,22 +16,19 @@ func ExamplePackagesClient_GetDownloadURL() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewPackagesClient("", cred, nil) + client, err := armtestbase.NewPackagesClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } res, err := client.GetDownloadURL(ctx, - "", - "", - "", + "contoso-rg1", + "contoso-testBaseAccount1", + "contoso-package2", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageHardDelete.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageHardDelete.md index c649b05ab3..625fbbae9e 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageHardDelete.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageHardDelete.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -7,8 +7,6 @@ import ( "context" "log" - "time" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/testbase/armtestbase" ) @@ -18,27 +16,23 @@ func ExamplePackagesClient_BeginHardDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewPackagesClient("", cred, nil) + client, err := armtestbase.NewPackagesClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } poller, err := client.BeginHardDelete(ctx, - "", - "", - "", - &armtestbase.PackagesClientBeginHardDeleteOptions{ResumeToken: ""}) + "contoso-rg1", + "contoso-testBaseAccount1", + "contoso-package2", + nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } - _, err = poller.PollUntilDone(ctx, 30*time.Second) + _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) - return } } ``` diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageUpdate.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageUpdate.md index acee42fb45..739850c5ee 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageUpdate.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackageUpdate.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -7,8 +7,6 @@ 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/testbase/armtestbase" @@ -19,26 +17,24 @@ func ExamplePackagesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewPackagesClient("", cred, nil) + client, err := armtestbase.NewPackagesClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } poller, err := client.BeginUpdate(ctx, - "", - "", - "", + "contoso-rg1", + "contoso-testBaseAccount1", + "contoso-package2", armtestbase.PackageUpdateParameters{ Properties: &armtestbase.PackageUpdateParameterProperties{ - BlobPath: to.Ptr(""), - FlightingRing: to.Ptr(""), + BlobPath: to.Ptr("storageAccountPath/package.zip"), + FlightingRing: to.Ptr("Insider Beta Channel"), IsEnabled: to.Ptr(false), TargetOSList: []*armtestbase.TargetOSInfo{ { - OSUpdateType: to.Ptr(""), + OSUpdateType: to.Ptr("Security updates"), TargetOSs: []*string{ to.Ptr("Windows 10 2004"), to.Ptr("Windows 10 1903")}, @@ -49,11 +45,11 @@ func ExamplePackagesClient_BeginUpdate() { TestType: to.Ptr(armtestbase.TestTypeOutOfBoxTest), Commands: []*armtestbase.Command{ { - Name: to.Ptr(""), + Name: to.Ptr("Install"), Action: to.Ptr(armtestbase.ActionInstall), AlwaysRun: to.Ptr(true), ApplyUpdateBefore: to.Ptr(false), - Content: to.Ptr(""), + Content: to.Ptr("app/scripts/install/job.ps1"), ContentType: to.Ptr(armtestbase.ContentTypePath), MaxRunTime: to.Ptr[int32](1800), RestartAfter: to.Ptr(true), @@ -61,11 +57,11 @@ func ExamplePackagesClient_BeginUpdate() { RunElevated: to.Ptr(true), }, { - Name: to.Ptr(""), + Name: to.Ptr("Launch"), Action: to.Ptr(armtestbase.ActionLaunch), AlwaysRun: to.Ptr(false), ApplyUpdateBefore: to.Ptr(true), - Content: to.Ptr(""), + Content: to.Ptr("app/scripts/launch/job.ps1"), ContentType: to.Ptr(armtestbase.ContentTypePath), MaxRunTime: to.Ptr[int32](1800), RestartAfter: to.Ptr(false), @@ -73,11 +69,11 @@ func ExamplePackagesClient_BeginUpdate() { RunElevated: to.Ptr(true), }, { - Name: to.Ptr(""), + Name: to.Ptr("Close"), Action: to.Ptr(armtestbase.ActionClose), AlwaysRun: to.Ptr(false), ApplyUpdateBefore: to.Ptr(false), - Content: to.Ptr(""), + Content: to.Ptr("app/scripts/close/job.ps1"), ContentType: to.Ptr(armtestbase.ContentTypePath), MaxRunTime: to.Ptr[int32](1800), RestartAfter: to.Ptr(false), @@ -85,11 +81,11 @@ func ExamplePackagesClient_BeginUpdate() { RunElevated: to.Ptr(true), }, { - Name: to.Ptr(""), + Name: to.Ptr("Uninstall"), Action: to.Ptr(armtestbase.ActionUninstall), AlwaysRun: to.Ptr(true), ApplyUpdateBefore: to.Ptr(false), - Content: to.Ptr(""), + Content: to.Ptr("app/scripts/uninstall/job.ps1"), ContentType: to.Ptr(armtestbase.ContentTypePath), MaxRunTime: to.Ptr[int32](1800), RestartAfter: to.Ptr(false), @@ -100,15 +96,13 @@ func ExamplePackagesClient_BeginUpdate() { }, Tags: map[string]*string{}, }, - &armtestbase.PackagesClientBeginUpdateOptions{ResumeToken: ""}) + nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } - res, err := poller.PollUntilDone(ctx, 30*time.Second) + res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackagesList.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackagesList.md index 59a75214de..ea6ca09871 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackagesList.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/PackagesList.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,22 +16,19 @@ func ExamplePackagesClient_NewListByTestBaseAccountPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewPackagesClient("", cred, nil) + client, err := armtestbase.NewPackagesClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } - pager := client.NewListByTestBaseAccountPager("", - "", + pager := client.NewListByTestBaseAccountPager("contoso-rg1", + "contoso-testBaseAccount1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) - return } for _, v := range nextResult.Value { // TODO: use page item diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountCreate.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountCreate.md index 66a64ecd92..22e6ef8e00 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountCreate.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountCreate.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -7,8 +7,6 @@ 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/testbase/armtestbase" @@ -19,37 +17,31 @@ func ExampleAccountsClient_BeginCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewAccountsClient("", cred, nil) + client, err := armtestbase.NewAccountsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } poller, err := client.BeginCreate(ctx, - "", - "", + "contoso-rg1", + "contoso-testBaseAccount1", armtestbase.AccountResource{ - Location: to.Ptr(""), + Location: to.Ptr("westus"), Properties: &armtestbase.AccountResourceProperties{ SKU: &armtestbase.AccountSKU{ - Name: to.Ptr(""), + Name: to.Ptr("S0"), Tier: to.Ptr(armtestbase.TierStandard), }, }, }, - &armtestbase.AccountsClientBeginCreateOptions{Restore: nil, - ResumeToken: "", - }) + &armtestbase.AccountsClientBeginCreateOptions{Restore: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } - res, err := poller.PollUntilDone(ctx, 30*time.Second) + res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountDelete.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountDelete.md index 5da234a581..473e77e13c 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountDelete.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountDelete.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -7,8 +7,6 @@ import ( "context" "log" - "time" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/testbase/armtestbase" ) @@ -18,26 +16,22 @@ func ExampleAccountsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewAccountsClient("", cred, nil) + client, err := armtestbase.NewAccountsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } poller, err := client.BeginDelete(ctx, - "", - "", - &armtestbase.AccountsClientBeginDeleteOptions{ResumeToken: ""}) + "contoso-rg1", + "contoso-testBaseAccount1", + nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } - _, err = poller.PollUntilDone(ctx, 30*time.Second) + _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) - return } } ``` diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountGet.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountGet.md index d75d133be8..fe8b0963c3 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountGet.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountGet.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,21 +16,18 @@ func ExampleAccountsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewAccountsClient("", cred, nil) + client, err := armtestbase.NewAccountsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } res, err := client.Get(ctx, - "", - "", + "contoso-rg1", + "contoso-testBaseAccount1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountOffboard.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountOffboard.md index 057e8fc287..0407e1c217 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountOffboard.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountOffboard.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -7,8 +7,6 @@ import ( "context" "log" - "time" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/testbase/armtestbase" ) @@ -18,26 +16,22 @@ func ExampleAccountsClient_BeginOffboard() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewAccountsClient("", cred, nil) + client, err := armtestbase.NewAccountsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } poller, err := client.BeginOffboard(ctx, - "", - "", - &armtestbase.AccountsClientBeginOffboardOptions{ResumeToken: ""}) + "contoso-rg1", + "contoso-testBaseAccount1", + nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } - _, err = poller.PollUntilDone(ctx, 30*time.Second) + _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) - return } } ``` diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountSKUsList.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountSKUsList.md index c23349d333..c03c414ed0 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountSKUsList.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountSKUsList.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,20 +16,17 @@ func ExampleSKUsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewSKUsClient("", cred, nil) + client, err := armtestbase.NewSKUsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) - return } for _, v := range nextResult.Value { // TODO: use page item diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountUpdate.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountUpdate.md index 3beff39b23..308a8ac30a 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountUpdate.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountUpdate.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -7,8 +7,6 @@ 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/testbase/armtestbase" @@ -19,34 +17,30 @@ func ExampleAccountsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewAccountsClient("", cred, nil) + client, err := armtestbase.NewAccountsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } poller, err := client.BeginUpdate(ctx, - "", - "", + "contoso-rg1", + "contoso-testBaseAccount1", armtestbase.AccountUpdateParameters{ Properties: &armtestbase.AccountUpdateParameterProperties{ SKU: &armtestbase.AccountSKU{ - Name: to.Ptr(""), + Name: to.Ptr("S0"), Tier: to.Ptr(armtestbase.TierStandard), }, }, }, - &armtestbase.AccountsClientBeginUpdateOptions{ResumeToken: ""}) + nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } - res, err := poller.PollUntilDone(ctx, 30*time.Second) + res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountUsagesList.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountUsagesList.md index 028aaf3b2f..b174290c48 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountUsagesList.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountUsagesList.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,22 +16,19 @@ func ExampleUsageClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewUsageClient("", cred, nil) + client, err := armtestbase.NewUsageClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } - pager := client.NewListPager("", - "", + pager := client.NewListPager("contoso-rg1", + "contoso-testBaseAccount1", &armtestbase.UsageClientListOptions{Filter: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) - return } for _, v := range nextResult.Value { // TODO: use page item diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountsList.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountsList.md index dcec669500..ed002bf13c 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountsList.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountsList.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,21 +16,18 @@ func ExampleAccountsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewAccountsClient("", cred, nil) + client, err := armtestbase.NewAccountsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } - pager := client.NewListByResourceGroupPager("", + pager := client.NewListByResourceGroupPager("contoso-rg1", &armtestbase.AccountsClientListByResourceGroupOptions{GetDeleted: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) - return } for _, v := range nextResult.Value { // TODO: use page item diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountsListBySubscription.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountsListBySubscription.md index d38a19b781..2fce56ac53 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountsListBySubscription.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestBaseAccountsListBySubscription.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,20 +16,17 @@ func ExampleAccountsClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewAccountsClient("", cred, nil) + client, err := armtestbase.NewAccountsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } pager := client.NewListBySubscriptionPager(&armtestbase.AccountsClientListBySubscriptionOptions{GetDeleted: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) - return } for _, v := range nextResult.Value { // TODO: use page item diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestResultGet.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestResultGet.md index 823b19a1bf..1bfd6e5efc 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestResultGet.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestResultGet.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,23 +16,20 @@ func ExampleTestResultsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewTestResultsClient("", cred, nil) + client, err := armtestbase.NewTestResultsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } res, err := client.Get(ctx, - "", - "", - "", - "", + "contoso-rg1", + "contoso-testBaseAccount1", + "contoso-package2", + "Windows-10-1909-99b1f80d-03a9-4148-997f-806ba5bac8e0", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestResultGetDownloadURL.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestResultGetDownloadURL.md index bdcd702b42..52188b3a1b 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestResultGetDownloadURL.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestResultGetDownloadURL.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,23 +16,20 @@ func ExampleTestResultsClient_GetDownloadURL() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewTestResultsClient("", cred, nil) + client, err := armtestbase.NewTestResultsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } res, err := client.GetDownloadURL(ctx, - "", - "", - "", - "", + "contoso-rg1", + "contoso-testBaseAccount1", + "contoso-package2", + "Windows-10-1909-99b1f80d-03a9-4148-997f-806ba5bac8e0", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestResultGetVideoDownloadURL.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestResultGetVideoDownloadURL.md index 717579a104..0f0471a72a 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestResultGetVideoDownloadURL.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestResultGetVideoDownloadURL.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,23 +16,20 @@ func ExampleTestResultsClient_GetVideoDownloadURL() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewTestResultsClient("", cred, nil) + client, err := armtestbase.NewTestResultsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } res, err := client.GetVideoDownloadURL(ctx, - "", - "", - "", - "", + "contoso-rg1", + "contoso-testBaseAccount1", + "contoso-package2", + "Windows-10-1909-99b1f80d-03a9-4148-997f-806ba5bac8e0", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestResultsList.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestResultsList.md index 53f55d1955..b34400d1f8 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestResultsList.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestResultsList.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -17,24 +17,21 @@ func ExampleTestResultsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewTestResultsClient("", cred, nil) + client, err := armtestbase.NewTestResultsClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } - pager := client.NewListPager("", - "", - "", + pager := client.NewListPager("contoso-rg1", + "contoso-testBaseAccount1", + "contoso-package2", armtestbase.OsUpdateTypeSecurityUpdate, - &armtestbase.TestResultsClientListOptions{Filter: to.Ptr("")}) + &armtestbase.TestResultsClientListOptions{Filter: to.Ptr("osName eq 'Windows 10 2004' and releaseName eq '2020.11B'")}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) - return } for _, v := range nextResult.Value { // TODO: use page item diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestSummariesList.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestSummariesList.md index def1d2a823..77942d574e 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestSummariesList.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestSummariesList.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,22 +16,19 @@ func ExampleTestSummariesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewTestSummariesClient("", cred, nil) + client, err := armtestbase.NewTestSummariesClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } - pager := client.NewListPager("", - "", + pager := client.NewListPager("contoso-rg1", + "contoso-testBaseAccount1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) - return } for _, v := range nextResult.Value { // TODO: use page item diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestSummaryGet.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestSummaryGet.md index 24873b8387..718ac6bc56 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestSummaryGet.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestSummaryGet.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,22 +16,19 @@ func ExampleTestSummariesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewTestSummariesClient("", cred, nil) + client, err := armtestbase.NewTestSummariesClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } res, err := client.Get(ctx, - "", - "", - "", + "contoso-rg1", + "contoso-testBaseAccount1", + "contoso-package2-096bffb5-5d3d-4305-a66a-953372ed6e88", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestTypeGet.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestTypeGet.md index 275c567b0d..71ec5b58fa 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestTypeGet.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestTypeGet.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,22 +16,19 @@ func ExampleTestTypesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewTestTypesClient("", cred, nil) + client, err := armtestbase.NewTestTypesClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } res, err := client.Get(ctx, - "", - "", - "", + "contoso-rg", + "contoso-testBaseAccount", + "Functional-Test", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) - return } // TODO: use response item _ = res diff --git a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestTypesList.md b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestTypesList.md index 91002dd53a..d0dc357a97 100644 --- a/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestTypesList.md +++ b/specification/testbase/resource-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples-go/TestTypesList.md @@ -1,4 +1,4 @@ -Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.4.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. +Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Ftestbase%2Farmtestbase%2Fv0.5.0/sdk/resourcemanager/testbase/armtestbase/README.md) on how to add the SDK to your project and authenticate. ```go package armtestbase_test @@ -16,22 +16,19 @@ func ExampleTestTypesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) - return } ctx := context.Background() - client, err := armtestbase.NewTestTypesClient("", cred, nil) + client, err := armtestbase.NewTestTypesClient("476f61a4-952c-422a-b4db-568a828f35df", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) - return } - pager := client.NewListPager("", - "", + pager := client.NewListPager("contoso-rg", + "contoso-testBaseAccount", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) - return } for _, v := range nextResult.Value { // TODO: use page item