From dce0679ffcd2b70a6a9a4760732fabc0b5288c59 Mon Sep 17 00:00:00 2001 From: Azure-Fluent <57352629+Azure-Fluent@users.noreply.github.com> Date: Wed, 29 Mar 2023 08:05:41 +0800 Subject: [PATCH] [Automation] Collect examples from azure-sdk-for-go#sdk/resourcemanager/servicebus/armservicebus/v2.0.0-beta.3 Co-authored-by: azure-sdk --- .../SBMigrationconfigurationCompleteMigration.go | 4 ++-- .../SBMigrationconfigurationCompleteMigration.json | 2 +- .../SBMigrationconfigurationCreateAndStartMigration.go | 4 ++-- .../SBMigrationconfigurationCreateAndStartMigration.json | 2 +- .../Migrationconfigurations/SBMigrationconfigurationDelete.go | 4 ++-- .../SBMigrationconfigurationDelete.json | 2 +- .../Migrationconfigurations/SBMigrationconfigurationGet.go | 4 ++-- .../Migrationconfigurations/SBMigrationconfigurationGet.json | 2 +- .../Migrationconfigurations/SBMigrationconfigurationList.go | 4 ++-- .../Migrationconfigurations/SBMigrationconfigurationList.json | 2 +- .../Migrationconfigurations/SBMigrationconfigurationRevert.go | 4 ++-- .../SBMigrationconfigurationRevert.json | 2 +- .../examples-go/NameSpaces/PrivateEndPointConnectionCreate.go | 4 ++-- .../NameSpaces/PrivateEndPointConnectionCreate.json | 2 +- .../examples-go/NameSpaces/PrivateEndPointConnectionDelete.go | 4 ++-- .../NameSpaces/PrivateEndPointConnectionDelete.json | 2 +- .../examples-go/NameSpaces/PrivateEndPointConnectionGet.go | 4 ++-- .../examples-go/NameSpaces/PrivateEndPointConnectionGet.json | 2 +- .../examples-go/NameSpaces/PrivateEndPointConnectionList.go | 4 ++-- .../examples-go/NameSpaces/PrivateEndPointConnectionList.json | 2 +- .../examples-go/NameSpaces/PrivateLinkResourcesGet.go | 4 ++-- .../examples-go/NameSpaces/PrivateLinkResourcesGet.json | 2 +- .../NameSpaces/SBNameSpaceAuthorizationRuleCreate.go | 4 ++-- .../NameSpaces/SBNameSpaceAuthorizationRuleCreate.json | 2 +- .../NameSpaces/SBNameSpaceAuthorizationRuleDelete.go | 4 ++-- .../NameSpaces/SBNameSpaceAuthorizationRuleDelete.json | 2 +- .../examples-go/NameSpaces/SBNameSpaceAuthorizationRuleGet.go | 4 ++-- .../NameSpaces/SBNameSpaceAuthorizationRuleGet.json | 2 +- .../NameSpaces/SBNameSpaceAuthorizationRuleListAll.go | 4 ++-- .../NameSpaces/SBNameSpaceAuthorizationRuleListAll.json | 2 +- .../NameSpaces/SBNameSpaceAuthorizationRuleListKey.go | 4 ++-- .../NameSpaces/SBNameSpaceAuthorizationRuleListKey.json | 2 +- .../NameSpaces/SBNameSpaceAuthorizationRuleRegenerateKey.go | 4 ++-- .../NameSpaces/SBNameSpaceAuthorizationRuleRegenerateKey.json | 2 +- .../NameSpaces/SBNameSpaceCheckNameAvailability.go | 4 ++-- .../NameSpaces/SBNameSpaceCheckNameAvailability.json | 2 +- .../examples-go/NameSpaces/SBNameSpaceCreate.go | 4 ++-- .../examples-go/NameSpaces/SBNameSpaceCreate.json | 2 +- .../examples-go/NameSpaces/SBNameSpaceDelete.go | 4 ++-- .../examples-go/NameSpaces/SBNameSpaceDelete.json | 2 +- .../examples-go/NameSpaces/SBNameSpaceGet.go | 4 ++-- .../examples-go/NameSpaces/SBNameSpaceGet.json | 2 +- .../examples-go/NameSpaces/SBNameSpaceList.go | 4 ++-- .../examples-go/NameSpaces/SBNameSpaceList.json | 2 +- .../examples-go/NameSpaces/SBNameSpaceListByResourceGroup.go | 4 ++-- .../NameSpaces/SBNameSpaceListByResourceGroup.json | 2 +- .../examples-go/NameSpaces/SBNameSpaceUpdate.go | 4 ++-- .../examples-go/NameSpaces/SBNameSpaceUpdate.json | 2 +- .../NameSpaces/VirtualNetworkRule/SBNetworkRuleSetCreate.go | 4 ++-- .../NameSpaces/VirtualNetworkRule/SBNetworkRuleSetCreate.json | 2 +- .../NameSpaces/VirtualNetworkRule/SBNetworkRuleSetGet.go | 4 ++-- .../NameSpaces/VirtualNetworkRule/SBNetworkRuleSetGet.json | 2 +- .../NameSpaces/VirtualNetworkRule/SBNetworkRuleSetList.go | 4 ++-- .../NameSpaces/VirtualNetworkRule/SBNetworkRuleSetList.json | 2 +- .../examples-go/Queues/SBQueueAuthorizationRuleCreate.go | 4 ++-- .../examples-go/Queues/SBQueueAuthorizationRuleCreate.json | 2 +- .../examples-go/Queues/SBQueueAuthorizationRuleDelete.go | 4 ++-- .../examples-go/Queues/SBQueueAuthorizationRuleDelete.json | 2 +- .../examples-go/Queues/SBQueueAuthorizationRuleGet.go | 4 ++-- .../examples-go/Queues/SBQueueAuthorizationRuleGet.json | 2 +- .../examples-go/Queues/SBQueueAuthorizationRuleListAll.go | 4 ++-- .../examples-go/Queues/SBQueueAuthorizationRuleListAll.json | 2 +- .../examples-go/Queues/SBQueueAuthorizationRuleListKey.go | 4 ++-- .../examples-go/Queues/SBQueueAuthorizationRuleListKey.json | 2 +- .../Queues/SBQueueAuthorizationRuleRegenerateKey.go | 4 ++-- .../Queues/SBQueueAuthorizationRuleRegenerateKey.json | 2 +- .../2022-10-01-preview/examples-go/Queues/SBQueueCreate.go | 4 ++-- .../2022-10-01-preview/examples-go/Queues/SBQueueCreate.json | 2 +- .../2022-10-01-preview/examples-go/Queues/SBQueueDelete.go | 4 ++-- .../2022-10-01-preview/examples-go/Queues/SBQueueDelete.json | 2 +- .../2022-10-01-preview/examples-go/Queues/SBQueueGet.go | 4 ++-- .../2022-10-01-preview/examples-go/Queues/SBQueueGet.json | 2 +- .../examples-go/Queues/SBQueueListByNameSpace.go | 4 ++-- .../examples-go/Queues/SBQueueListByNameSpace.json | 2 +- .../2022-10-01-preview/examples-go/Rules/RuleCreate.go | 4 ++-- .../2022-10-01-preview/examples-go/Rules/RuleCreate.json | 2 +- .../examples-go/Rules/RuleCreate_CorrelationFilter.go | 4 ++-- .../examples-go/Rules/RuleCreate_CorrelationFilter.json | 2 +- .../examples-go/Rules/RuleCreate_SqlFilter.go | 4 ++-- .../examples-go/Rules/RuleCreate_SqlFilter.json | 2 +- .../2022-10-01-preview/examples-go/Rules/RuleDelete.go | 4 ++-- .../2022-10-01-preview/examples-go/Rules/RuleDelete.json | 2 +- .../preview/2022-10-01-preview/examples-go/Rules/RuleGet.go | 4 ++-- .../preview/2022-10-01-preview/examples-go/Rules/RuleGet.json | 2 +- .../examples-go/Rules/RuleListBySubscription.go | 4 ++-- .../examples-go/Rules/RuleListBySubscription.json | 2 +- .../2022-10-01-preview/examples-go/SBOperations_List.go | 4 ++-- .../2022-10-01-preview/examples-go/SBOperations_List.json | 2 +- .../examples-go/Subscriptions/SBSubscriptionCreate.go | 4 ++-- .../examples-go/Subscriptions/SBSubscriptionCreate.json | 2 +- .../examples-go/Subscriptions/SBSubscriptionDelete.go | 4 ++-- .../examples-go/Subscriptions/SBSubscriptionDelete.json | 2 +- .../examples-go/Subscriptions/SBSubscriptionGet.go | 4 ++-- .../examples-go/Subscriptions/SBSubscriptionGet.json | 2 +- .../examples-go/Subscriptions/SBSubscriptionListByTopic.go | 4 ++-- .../examples-go/Subscriptions/SBSubscriptionListByTopic.json | 2 +- .../examples-go/Topics/SBTopicAuthorizationRuleCreate.go | 4 ++-- .../examples-go/Topics/SBTopicAuthorizationRuleCreate.json | 2 +- .../examples-go/Topics/SBTopicAuthorizationRuleDelete.go | 4 ++-- .../examples-go/Topics/SBTopicAuthorizationRuleDelete.json | 2 +- .../examples-go/Topics/SBTopicAuthorizationRuleGet.go | 4 ++-- .../examples-go/Topics/SBTopicAuthorizationRuleGet.json | 2 +- .../examples-go/Topics/SBTopicAuthorizationRuleListAll.go | 4 ++-- .../examples-go/Topics/SBTopicAuthorizationRuleListAll.json | 2 +- .../examples-go/Topics/SBTopicAuthorizationRuleListKey.go | 4 ++-- .../examples-go/Topics/SBTopicAuthorizationRuleListKey.json | 2 +- .../Topics/SBTopicAuthorizationRuleRegenerateKey.go | 4 ++-- .../Topics/SBTopicAuthorizationRuleRegenerateKey.json | 2 +- .../2022-10-01-preview/examples-go/Topics/SBTopicCreate.go | 4 ++-- .../2022-10-01-preview/examples-go/Topics/SBTopicCreate.json | 2 +- .../2022-10-01-preview/examples-go/Topics/SBTopicDelete.go | 4 ++-- .../2022-10-01-preview/examples-go/Topics/SBTopicDelete.json | 2 +- .../2022-10-01-preview/examples-go/Topics/SBTopicGet.go | 4 ++-- .../2022-10-01-preview/examples-go/Topics/SBTopicGet.json | 2 +- .../examples-go/Topics/SBTopicListByNameSpace.go | 4 ++-- .../examples-go/Topics/SBTopicListByNameSpace.json | 2 +- .../disasterRecoveryConfigs/SBAliasAuthorizationRuleGet.go | 4 ++-- .../disasterRecoveryConfigs/SBAliasAuthorizationRuleGet.json | 2 +- .../SBAliasAuthorizationRuleListAll.go | 4 ++-- .../SBAliasAuthorizationRuleListAll.json | 2 +- .../SBAliasAuthorizationRuleListKey.go | 4 ++-- .../SBAliasAuthorizationRuleListKey.json | 2 +- .../disasterRecoveryConfigs/SBAliasCheckNameAvailability.go | 4 ++-- .../disasterRecoveryConfigs/SBAliasCheckNameAvailability.json | 2 +- .../examples-go/disasterRecoveryConfigs/SBAliasCreate.go | 4 ++-- .../examples-go/disasterRecoveryConfigs/SBAliasCreate.json | 2 +- .../examples-go/disasterRecoveryConfigs/SBAliasDelete.go | 4 ++-- .../examples-go/disasterRecoveryConfigs/SBAliasDelete.json | 2 +- .../examples-go/disasterRecoveryConfigs/SBAliasFailOver.go | 4 ++-- .../examples-go/disasterRecoveryConfigs/SBAliasFailOver.json | 2 +- .../examples-go/disasterRecoveryConfigs/SBAliasGet.go | 4 ++-- .../examples-go/disasterRecoveryConfigs/SBAliasGet.json | 2 +- .../examples-go/disasterRecoveryConfigs/SBAliasList.go | 4 ++-- .../examples-go/disasterRecoveryConfigs/SBAliasList.json | 2 +- .../disasterRecoveryConfigs/SBEHAliasBreakPairing.go | 4 ++-- .../disasterRecoveryConfigs/SBEHAliasBreakPairing.json | 2 +- 136 files changed, 204 insertions(+), 204 deletions(-) diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationCompleteMigration.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationCompleteMigration.go index 5f7c713dae..02253a71e3 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationCompleteMigration.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationCompleteMigration.go @@ -15,11 +15,11 @@ func ExampleMigrationConfigsClient_CompleteMigration() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewMigrationConfigsClient("SubscriptionId", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - _, err = client.CompleteMigration(ctx, "ResourceGroup", "sdk-Namespace-41", armservicebus.MigrationConfigurationNameDefault, nil) + _, err = clientFactory.NewMigrationConfigsClient().CompleteMigration(ctx, "ResourceGroup", "sdk-Namespace-41", armservicebus.MigrationConfigurationNameDefault, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationCompleteMigration.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationCompleteMigration.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationCompleteMigration.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationCompleteMigration.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationCreateAndStartMigration.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationCreateAndStartMigration.go index 9623dd8890..5fc01b5303 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationCreateAndStartMigration.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationCreateAndStartMigration.go @@ -16,11 +16,11 @@ func ExampleMigrationConfigsClient_BeginCreateAndStartMigration() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewMigrationConfigsClient("SubscriptionId", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginCreateAndStartMigration(ctx, "ResourceGroup", "sdk-Namespace-41", armservicebus.MigrationConfigurationNameDefault, armservicebus.MigrationConfigProperties{ + poller, err := clientFactory.NewMigrationConfigsClient().BeginCreateAndStartMigration(ctx, "ResourceGroup", "sdk-Namespace-41", armservicebus.MigrationConfigurationNameDefault, armservicebus.MigrationConfigProperties{ Properties: &armservicebus.MigrationConfigPropertiesProperties{ PostMigrationName: to.Ptr("sdk-PostMigration-5919"), TargetNamespace: to.Ptr("/subscriptions/SubscriptionId/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-4028"), diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationCreateAndStartMigration.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationCreateAndStartMigration.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationCreateAndStartMigration.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationCreateAndStartMigration.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationDelete.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationDelete.go index 9bf4186e4b..fef8bc611b 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationDelete.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationDelete.go @@ -15,11 +15,11 @@ func ExampleMigrationConfigsClient_Delete() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewMigrationConfigsClient("SubscriptionId", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - _, err = client.Delete(ctx, "ResourceGroup", "sdk-Namespace-41", armservicebus.MigrationConfigurationNameDefault, nil) + _, err = clientFactory.NewMigrationConfigsClient().Delete(ctx, "ResourceGroup", "sdk-Namespace-41", armservicebus.MigrationConfigurationNameDefault, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationDelete.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationDelete.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationDelete.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationDelete.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationGet.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationGet.go index 72a3c92ac3..88a1e4561a 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationGet.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationGet.go @@ -15,11 +15,11 @@ func ExampleMigrationConfigsClient_Get() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewMigrationConfigsClient("SubscriptionId", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, "ResourceGroup", "sdk-Namespace-41", armservicebus.MigrationConfigurationNameDefault, nil) + res, err := clientFactory.NewMigrationConfigsClient().Get(ctx, "ResourceGroup", "sdk-Namespace-41", armservicebus.MigrationConfigurationNameDefault, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationGet.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationGet.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationGet.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationList.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationList.go index a1652e97e9..a569b7cc97 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationList.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationList.go @@ -15,11 +15,11 @@ func ExampleMigrationConfigsClient_NewListPager() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewMigrationConfigsClient("SubscriptionId", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListPager("ResourceGroup", "sdk-Namespace-9259", nil) + pager := clientFactory.NewMigrationConfigsClient().NewListPager("ResourceGroup", "sdk-Namespace-9259", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationList.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationList.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationList.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationList.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationRevert.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationRevert.go index 5fdc80ef0a..8f0f05777b 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationRevert.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationRevert.go @@ -15,11 +15,11 @@ func ExampleMigrationConfigsClient_Revert() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewMigrationConfigsClient("SubscriptionId", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - _, err = client.Revert(ctx, "ResourceGroup", "sdk-Namespace-41", armservicebus.MigrationConfigurationNameDefault, nil) + _, err = clientFactory.NewMigrationConfigsClient().Revert(ctx, "ResourceGroup", "sdk-Namespace-41", armservicebus.MigrationConfigurationNameDefault, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationRevert.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationRevert.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationRevert.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Migrationconfigurations/SBMigrationconfigurationRevert.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionCreate.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionCreate.go index 28bd04177f..dbd0f6593e 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionCreate.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionCreate.go @@ -16,11 +16,11 @@ func ExamplePrivateEndpointConnectionsClient_CreateOrUpdate() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewPrivateEndpointConnectionsClient("subID", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.CreateOrUpdate(ctx, "ArunMonocle", "sdk-Namespace-2924", "privateEndpointConnectionName", armservicebus.PrivateEndpointConnection{ + res, err := clientFactory.NewPrivateEndpointConnectionsClient().CreateOrUpdate(ctx, "ArunMonocle", "sdk-Namespace-2924", "privateEndpointConnectionName", armservicebus.PrivateEndpointConnection{ Properties: &armservicebus.PrivateEndpointConnectionProperties{ PrivateEndpoint: &armservicebus.PrivateEndpoint{ ID: to.Ptr("/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-ServiceBus-8396/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-2847"), diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionCreate.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionCreate.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionCreate.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionCreate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionDelete.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionDelete.go index fdf79f6de3..488981ad9e 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionDelete.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionDelete.go @@ -15,11 +15,11 @@ func ExamplePrivateEndpointConnectionsClient_BeginDelete() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewPrivateEndpointConnectionsClient("00000000-0000-0000-0000-000000000000", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginDelete(ctx, "ArunMonocle", "sdk-Namespace-3285", "928c44d5-b7c6-423b-b6fa-811e0c27b3e0", nil) + poller, err := clientFactory.NewPrivateEndpointConnectionsClient().BeginDelete(ctx, "ArunMonocle", "sdk-Namespace-3285", "928c44d5-b7c6-423b-b6fa-811e0c27b3e0", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionDelete.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionDelete.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionDelete.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionDelete.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionGet.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionGet.go index cbd3ad5035..7fe838c5ff 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionGet.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionGet.go @@ -15,11 +15,11 @@ func ExamplePrivateEndpointConnectionsClient_Get() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewPrivateEndpointConnectionsClient("subID", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, "SDK-ServiceBus-4794", "sdk-Namespace-5828", "privateEndpointConnectionName", nil) + res, err := clientFactory.NewPrivateEndpointConnectionsClient().Get(ctx, "SDK-ServiceBus-4794", "sdk-Namespace-5828", "privateEndpointConnectionName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionGet.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionGet.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionGet.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionList.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionList.go index 99f1e150e7..998a2d1bf0 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionList.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionList.go @@ -15,11 +15,11 @@ func ExamplePrivateEndpointConnectionsClient_NewListPager() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewPrivateEndpointConnectionsClient("subID", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListPager("SDK-ServiceBus-4794", "sdk-Namespace-5828", nil) + pager := clientFactory.NewPrivateEndpointConnectionsClient().NewListPager("SDK-ServiceBus-4794", "sdk-Namespace-5828", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionList.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionList.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionList.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateEndPointConnectionList.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateLinkResourcesGet.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateLinkResourcesGet.go index 0986c10e7f..f3a68d10d1 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateLinkResourcesGet.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateLinkResourcesGet.go @@ -15,11 +15,11 @@ func ExamplePrivateLinkResourcesClient_Get() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewPrivateLinkResourcesClient("subID", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, "ArunMonocle", "sdk-Namespace-2924", nil) + res, err := clientFactory.NewPrivateLinkResourcesClient().Get(ctx, "ArunMonocle", "sdk-Namespace-2924", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateLinkResourcesGet.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateLinkResourcesGet.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateLinkResourcesGet.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/PrivateLinkResourcesGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleCreate.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleCreate.go index a09a6dd81d..ee5769e014 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleCreate.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleCreate.go @@ -16,11 +16,11 @@ func ExampleNamespacesClient_CreateOrUpdateAuthorizationRule() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.CreateOrUpdateAuthorizationRule(ctx, "ArunMonocle", "sdk-Namespace-6914", "sdk-AuthRules-1788", armservicebus.SBAuthorizationRule{ + res, err := clientFactory.NewNamespacesClient().CreateOrUpdateAuthorizationRule(ctx, "ArunMonocle", "sdk-Namespace-6914", "sdk-AuthRules-1788", armservicebus.SBAuthorizationRule{ Properties: &armservicebus.SBAuthorizationRuleProperties{ Rights: []*armservicebus.AccessRights{ to.Ptr(armservicebus.AccessRightsListen), diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleCreate.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleCreate.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleCreate.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleCreate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleDelete.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleDelete.go index 8e596e55e7..c6aa6c59a6 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleDelete.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleDelete.go @@ -15,11 +15,11 @@ func ExampleNamespacesClient_DeleteAuthorizationRule() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - _, err = client.DeleteAuthorizationRule(ctx, "ArunMonocle", "sdk-namespace-6914", "sdk-AuthRules-1788", nil) + _, err = clientFactory.NewNamespacesClient().DeleteAuthorizationRule(ctx, "ArunMonocle", "sdk-namespace-6914", "sdk-AuthRules-1788", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleDelete.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleDelete.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleDelete.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleDelete.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleGet.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleGet.go index 5a1029cbd1..7e4be3173f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleGet.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleGet.go @@ -15,11 +15,11 @@ func ExampleNamespacesClient_GetAuthorizationRule() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.GetAuthorizationRule(ctx, "ArunMonocle", "sdk-Namespace-6914", "sdk-AuthRules-1788", nil) + res, err := clientFactory.NewNamespacesClient().GetAuthorizationRule(ctx, "ArunMonocle", "sdk-Namespace-6914", "sdk-AuthRules-1788", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleGet.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleGet.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleGet.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleListAll.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleListAll.go index 74e30bc0c9..5ad308f3bd 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleListAll.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleListAll.go @@ -15,11 +15,11 @@ func ExampleNamespacesClient_NewListAuthorizationRulesPager() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListAuthorizationRulesPager("ArunMonocle", "sdk-Namespace-6914", nil) + pager := clientFactory.NewNamespacesClient().NewListAuthorizationRulesPager("ArunMonocle", "sdk-Namespace-6914", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleListAll.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleListAll.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleListAll.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleListAll.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleListKey.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleListKey.go index 8807e334f3..40ae35cd8f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleListKey.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleListKey.go @@ -15,11 +15,11 @@ func ExampleNamespacesClient_ListKeys() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.ListKeys(ctx, "ArunMonocle", "sdk-namespace-6914", "sdk-AuthRules-1788", nil) + res, err := clientFactory.NewNamespacesClient().ListKeys(ctx, "ArunMonocle", "sdk-namespace-6914", "sdk-AuthRules-1788", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleListKey.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleListKey.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleListKey.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleListKey.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleRegenerateKey.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleRegenerateKey.go index 5985fe0aa3..ac4ec2e3ab 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleRegenerateKey.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleRegenerateKey.go @@ -16,11 +16,11 @@ func ExampleNamespacesClient_RegenerateKeys() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.RegenerateKeys(ctx, "ArunMonocle", "sdk-namespace-6914", "sdk-AuthRules-1788", armservicebus.RegenerateAccessKeyParameters{ + res, err := clientFactory.NewNamespacesClient().RegenerateKeys(ctx, "ArunMonocle", "sdk-namespace-6914", "sdk-AuthRules-1788", armservicebus.RegenerateAccessKeyParameters{ KeyType: to.Ptr(armservicebus.KeyTypePrimaryKey), }, nil) if err != nil { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleRegenerateKey.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleRegenerateKey.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleRegenerateKey.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceAuthorizationRuleRegenerateKey.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceCheckNameAvailability.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceCheckNameAvailability.go index f63d66901f..5a7c2f6534 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceCheckNameAvailability.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceCheckNameAvailability.go @@ -16,11 +16,11 @@ func ExampleNamespacesClient_CheckNameAvailability() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.CheckNameAvailability(ctx, armservicebus.CheckNameAvailability{ + res, err := clientFactory.NewNamespacesClient().CheckNameAvailability(ctx, armservicebus.CheckNameAvailability{ Name: to.Ptr("sdk-Namespace-2924"), }, nil) if err != nil { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceCheckNameAvailability.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceCheckNameAvailability.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceCheckNameAvailability.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceCheckNameAvailability.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceCreate.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceCreate.go index 2eecde5bd8..4275f653b5 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceCreate.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceCreate.go @@ -16,11 +16,11 @@ func ExampleNamespacesClient_BeginCreateOrUpdate() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginCreateOrUpdate(ctx, "ArunMonocle", "sdk-Namespace2924", armservicebus.SBNamespace{ + poller, err := clientFactory.NewNamespacesClient().BeginCreateOrUpdate(ctx, "ArunMonocle", "sdk-Namespace2924", armservicebus.SBNamespace{ Location: to.Ptr("South Central US"), Tags: map[string]*string{ "tag1": to.Ptr("value1"), diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceCreate.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceCreate.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceCreate.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceCreate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceDelete.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceDelete.go index 5e30399f5b..067e1b7da4 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceDelete.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceDelete.go @@ -15,11 +15,11 @@ func ExampleNamespacesClient_BeginDelete() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("00000000-0000-0000-0000-000000000000", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginDelete(ctx, "ArunMonocle", "sdk-Namespace-3285", nil) + poller, err := clientFactory.NewNamespacesClient().BeginDelete(ctx, "ArunMonocle", "sdk-Namespace-3285", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceDelete.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceDelete.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceDelete.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceDelete.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceGet.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceGet.go index d731faafe1..91fab697a2 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceGet.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceGet.go @@ -15,11 +15,11 @@ func ExampleNamespacesClient_Get() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, "ArunMonocle", "sdk-Namespace-2924", nil) + res, err := clientFactory.NewNamespacesClient().Get(ctx, "ArunMonocle", "sdk-Namespace-2924", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceGet.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceGet.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceGet.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceList.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceList.go index 449ae386b4..72e4e57542 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceList.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceList.go @@ -15,11 +15,11 @@ func ExampleNamespacesClient_NewListPager() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListPager(nil) + pager := clientFactory.NewNamespacesClient().NewListPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceList.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceList.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceList.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceList.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceListByResourceGroup.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceListByResourceGroup.go index 943acc595b..58b13da9dd 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceListByResourceGroup.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceListByResourceGroup.go @@ -15,11 +15,11 @@ func ExampleNamespacesClient_NewListByResourceGroupPager() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListByResourceGroupPager("ArunMonocle", nil) + pager := clientFactory.NewNamespacesClient().NewListByResourceGroupPager("ArunMonocle", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceListByResourceGroup.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceListByResourceGroup.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceListByResourceGroup.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceListByResourceGroup.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceUpdate.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceUpdate.go index 99a798fa6f..4c177406cb 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceUpdate.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceUpdate.go @@ -16,11 +16,11 @@ func ExampleNamespacesClient_Update() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Update(ctx, "ArunMonocle", "sdk-Namespace-3285", armservicebus.SBNamespaceUpdateParameters{ + res, err := clientFactory.NewNamespacesClient().Update(ctx, "ArunMonocle", "sdk-Namespace-3285", armservicebus.SBNamespaceUpdateParameters{ Location: to.Ptr("South Central US"), Tags: map[string]*string{ "tag3": to.Ptr("value3"), diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceUpdate.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceUpdate.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceUpdate.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/SBNameSpaceUpdate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetCreate.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetCreate.go index 442234952b..6a80cf305d 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetCreate.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetCreate.go @@ -16,11 +16,11 @@ func ExampleNamespacesClient_CreateOrUpdateNetworkRuleSet() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("Subscription", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.CreateOrUpdateNetworkRuleSet(ctx, "ResourceGroup", "sdk-Namespace-6019", armservicebus.NetworkRuleSet{ + res, err := clientFactory.NewNamespacesClient().CreateOrUpdateNetworkRuleSet(ctx, "ResourceGroup", "sdk-Namespace-6019", armservicebus.NetworkRuleSet{ Properties: &armservicebus.NetworkRuleSetProperties{ DefaultAction: to.Ptr(armservicebus.DefaultActionDeny), IPRules: []*armservicebus.NWRuleSetIPRules{ diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetCreate.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetCreate.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetCreate.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetCreate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetGet.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetGet.go index c778c58b04..5b1586c7f0 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetGet.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetGet.go @@ -15,11 +15,11 @@ func ExampleNamespacesClient_GetNetworkRuleSet() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("Subscription", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.GetNetworkRuleSet(ctx, "ResourceGroup", "sdk-Namespace-6019", nil) + res, err := clientFactory.NewNamespacesClient().GetNetworkRuleSet(ctx, "ResourceGroup", "sdk-Namespace-6019", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetGet.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetGet.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetGet.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetList.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetList.go index d86b931f95..0d33dfc52d 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetList.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetList.go @@ -15,11 +15,11 @@ func ExampleNamespacesClient_NewListNetworkRuleSetsPager() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("Subscription", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListNetworkRuleSetsPager("ResourceGroup", "sdk-Namespace-6019", nil) + pager := clientFactory.NewNamespacesClient().NewListNetworkRuleSetsPager("ResourceGroup", "sdk-Namespace-6019", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetList.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetList.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetList.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetList.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleCreate.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleCreate.go index 38b7f1ab95..a9ab95a3b5 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleCreate.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleCreate.go @@ -16,11 +16,11 @@ func ExampleQueuesClient_CreateOrUpdateAuthorizationRule() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.CreateOrUpdateAuthorizationRule(ctx, "ArunMonocle", "sdk-Namespace-7982", "sdk-Queues-2317", "sdk-AuthRules-5800", armservicebus.SBAuthorizationRule{ + res, err := clientFactory.NewQueuesClient().CreateOrUpdateAuthorizationRule(ctx, "ArunMonocle", "sdk-Namespace-7982", "sdk-Queues-2317", "sdk-AuthRules-5800", armservicebus.SBAuthorizationRule{ Properties: &armservicebus.SBAuthorizationRuleProperties{ Rights: []*armservicebus.AccessRights{ to.Ptr(armservicebus.AccessRightsListen), diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleCreate.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleCreate.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleCreate.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleCreate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleDelete.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleDelete.go index 19aae6eeb4..2eb8ea2470 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleDelete.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleDelete.go @@ -15,11 +15,11 @@ func ExampleQueuesClient_DeleteAuthorizationRule() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - _, err = client.DeleteAuthorizationRule(ctx, "ArunMonocle", "sdk-namespace-7982", "sdk-Queues-2317", "sdk-AuthRules-5800", nil) + _, err = clientFactory.NewQueuesClient().DeleteAuthorizationRule(ctx, "ArunMonocle", "sdk-namespace-7982", "sdk-Queues-2317", "sdk-AuthRules-5800", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleDelete.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleDelete.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleDelete.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleDelete.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleGet.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleGet.go index a39628d0ff..fff7026df3 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleGet.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleGet.go @@ -15,11 +15,11 @@ func ExampleQueuesClient_GetAuthorizationRule() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.GetAuthorizationRule(ctx, "ArunMonocle", "sdk-Namespace-7982", "sdk-Queues-2317", "sdk-AuthRules-5800", nil) + res, err := clientFactory.NewQueuesClient().GetAuthorizationRule(ctx, "ArunMonocle", "sdk-Namespace-7982", "sdk-Queues-2317", "sdk-AuthRules-5800", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleGet.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleGet.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleGet.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleListAll.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleListAll.go index 1b031debe6..ab2206301f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleListAll.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleListAll.go @@ -15,11 +15,11 @@ func ExampleQueuesClient_NewListAuthorizationRulesPager() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListAuthorizationRulesPager("ArunMonocle", "sdk-Namespace-7982", "sdk-Queues-2317", nil) + pager := clientFactory.NewQueuesClient().NewListAuthorizationRulesPager("ArunMonocle", "sdk-Namespace-7982", "sdk-Queues-2317", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleListAll.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleListAll.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleListAll.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleListAll.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleListKey.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleListKey.go index 6cdf57ac3b..d4fcfdf701 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleListKey.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleListKey.go @@ -15,11 +15,11 @@ func ExampleQueuesClient_ListKeys() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.ListKeys(ctx, "ArunMonocle", "sdk-namespace-7982", "sdk-Queues-2317", "sdk-AuthRules-5800", nil) + res, err := clientFactory.NewQueuesClient().ListKeys(ctx, "ArunMonocle", "sdk-namespace-7982", "sdk-Queues-2317", "sdk-AuthRules-5800", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleListKey.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleListKey.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleListKey.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleListKey.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleRegenerateKey.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleRegenerateKey.go index 7ea0f99aa2..4ceb840179 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleRegenerateKey.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleRegenerateKey.go @@ -16,11 +16,11 @@ func ExampleQueuesClient_RegenerateKeys() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.RegenerateKeys(ctx, "ArunMonocle", "sdk-namespace-7982", "sdk-Queues-2317", "sdk-AuthRules-5800", armservicebus.RegenerateAccessKeyParameters{ + res, err := clientFactory.NewQueuesClient().RegenerateKeys(ctx, "ArunMonocle", "sdk-namespace-7982", "sdk-Queues-2317", "sdk-AuthRules-5800", armservicebus.RegenerateAccessKeyParameters{ KeyType: to.Ptr(armservicebus.KeyTypePrimaryKey), }, nil) if err != nil { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleRegenerateKey.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleRegenerateKey.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleRegenerateKey.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueAuthorizationRuleRegenerateKey.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueCreate.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueCreate.go index d2c39d20ba..a82e13415c 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueCreate.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueCreate.go @@ -16,11 +16,11 @@ func ExampleQueuesClient_CreateOrUpdate() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.CreateOrUpdate(ctx, "ArunMonocle", "sdk-Namespace-3174", "sdk-Queues-5647", armservicebus.SBQueue{ + res, err := clientFactory.NewQueuesClient().CreateOrUpdate(ctx, "ArunMonocle", "sdk-Namespace-3174", "sdk-Queues-5647", armservicebus.SBQueue{ Properties: &armservicebus.SBQueueProperties{ EnablePartitioning: to.Ptr(true), }, diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueCreate.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueCreate.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueCreate.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueCreate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueDelete.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueDelete.go index 258272f896..33de4d3225 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueDelete.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueDelete.go @@ -15,11 +15,11 @@ func ExampleQueuesClient_Delete() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - _, err = client.Delete(ctx, "ArunMonocle", "sdk-Namespace-183", "sdk-Queues-8708", nil) + _, err = clientFactory.NewQueuesClient().Delete(ctx, "ArunMonocle", "sdk-Namespace-183", "sdk-Queues-8708", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueDelete.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueDelete.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueDelete.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueDelete.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueGet.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueGet.go index 11364b21b1..8a0c3e09cc 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueGet.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueGet.go @@ -15,11 +15,11 @@ func ExampleQueuesClient_Get() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, "ArunMonocle", "sdk-Namespace-3174", "sdk-Queues-5647", nil) + res, err := clientFactory.NewQueuesClient().Get(ctx, "ArunMonocle", "sdk-Namespace-3174", "sdk-Queues-5647", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueGet.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueGet.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueGet.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueListByNameSpace.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueListByNameSpace.go index 124afc8de8..5fc148ebdf 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueListByNameSpace.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueListByNameSpace.go @@ -15,11 +15,11 @@ func ExampleQueuesClient_NewListByNamespacePager() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListByNamespacePager("ArunMonocle", "sdk-Namespace-3174", &armservicebus.QueuesClientListByNamespaceOptions{Skip: nil, + pager := clientFactory.NewQueuesClient().NewListByNamespacePager("ArunMonocle", "sdk-Namespace-3174", &armservicebus.QueuesClientListByNamespaceOptions{Skip: nil, Top: nil, }) for pager.More() { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueListByNameSpace.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueListByNameSpace.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueListByNameSpace.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Queues/SBQueueListByNameSpace.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate.go index 3346ccb746..4ff1be624e 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate.go @@ -15,11 +15,11 @@ func ExampleRulesClient_CreateOrUpdate_rulesCreateOrUpdate() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewRulesClient("subscriptionId", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.CreateOrUpdate(ctx, "resourceGroupName", "sdk-Namespace-1319", "sdk-Topics-2081", "sdk-Subscriptions-8691", "sdk-Rules-6571", armservicebus.Rule{}, nil) + res, err := clientFactory.NewRulesClient().CreateOrUpdate(ctx, "resourceGroupName", "sdk-Namespace-1319", "sdk-Topics-2081", "sdk-Subscriptions-8691", "sdk-Rules-6571", armservicebus.Rule{}, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate_CorrelationFilter.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate_CorrelationFilter.go index 29db5ed63f..5d69a08d7c 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate_CorrelationFilter.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate_CorrelationFilter.go @@ -16,11 +16,11 @@ func ExampleRulesClient_CreateOrUpdate_rulesCreateCorrelationFilter() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewRulesClient("subscriptionId", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.CreateOrUpdate(ctx, "resourceGroupName", "sdk-Namespace-1319", "sdk-Topics-2081", "sdk-Subscriptions-8691", "sdk-Rules-6571", armservicebus.Rule{ + res, err := clientFactory.NewRulesClient().CreateOrUpdate(ctx, "resourceGroupName", "sdk-Namespace-1319", "sdk-Topics-2081", "sdk-Subscriptions-8691", "sdk-Rules-6571", armservicebus.Rule{ Properties: &armservicebus.Ruleproperties{ CorrelationFilter: &armservicebus.CorrelationFilter{ Properties: map[string]*string{ diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate_CorrelationFilter.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate_CorrelationFilter.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate_CorrelationFilter.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate_CorrelationFilter.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate_SqlFilter.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate_SqlFilter.go index ed8a0d7452..d506805d03 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate_SqlFilter.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate_SqlFilter.go @@ -16,11 +16,11 @@ func ExampleRulesClient_CreateOrUpdate_rulesCreateSqlFilter() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewRulesClient("subscriptionId", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.CreateOrUpdate(ctx, "resourceGroupName", "sdk-Namespace-1319", "sdk-Topics-2081", "sdk-Subscriptions-8691", "sdk-Rules-6571", armservicebus.Rule{ + res, err := clientFactory.NewRulesClient().CreateOrUpdate(ctx, "resourceGroupName", "sdk-Namespace-1319", "sdk-Topics-2081", "sdk-Subscriptions-8691", "sdk-Rules-6571", armservicebus.Rule{ Properties: &armservicebus.Ruleproperties{ FilterType: to.Ptr(armservicebus.FilterTypeSQLFilter), SQLFilter: &armservicebus.SQLFilter{ diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate_SqlFilter.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate_SqlFilter.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate_SqlFilter.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleCreate_SqlFilter.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleDelete.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleDelete.go index a60b93452c..36b6cf7a33 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleDelete.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleDelete.go @@ -15,11 +15,11 @@ func ExampleRulesClient_Delete() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewRulesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - _, err = client.Delete(ctx, "ArunMonocle", "sdk-Namespace-1319", "sdk-Topics-2081", "sdk-Subscriptions-8691", "sdk-Rules-6571", nil) + _, err = clientFactory.NewRulesClient().Delete(ctx, "ArunMonocle", "sdk-Namespace-1319", "sdk-Topics-2081", "sdk-Subscriptions-8691", "sdk-Rules-6571", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleDelete.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleDelete.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleDelete.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleDelete.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleGet.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleGet.go index 6248ca8647..384672efd2 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleGet.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleGet.go @@ -15,11 +15,11 @@ func ExampleRulesClient_Get() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewRulesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, "ArunMonocle", "sdk-Namespace-1319", "sdk-Topics-2081", "sdk-Subscriptions-8691", "sdk-Rules-6571", nil) + res, err := clientFactory.NewRulesClient().Get(ctx, "ArunMonocle", "sdk-Namespace-1319", "sdk-Topics-2081", "sdk-Subscriptions-8691", "sdk-Rules-6571", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleGet.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleGet.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleGet.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleListBySubscription.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleListBySubscription.go index 25774c4dfc..bb20173794 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleListBySubscription.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleListBySubscription.go @@ -15,11 +15,11 @@ func ExampleRulesClient_NewListBySubscriptionsPager() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewRulesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListBySubscriptionsPager("ArunMonocle", "sdk-Namespace-1319", "sdk-Topics-2081", "sdk-Subscriptions-8691", &armservicebus.RulesClientListBySubscriptionsOptions{Skip: nil, + pager := clientFactory.NewRulesClient().NewListBySubscriptionsPager("ArunMonocle", "sdk-Namespace-1319", "sdk-Topics-2081", "sdk-Subscriptions-8691", &armservicebus.RulesClientListBySubscriptionsOptions{Skip: nil, Top: nil, }) for pager.More() { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleListBySubscription.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleListBySubscription.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleListBySubscription.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Rules/RuleListBySubscription.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/SBOperations_List.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/SBOperations_List.go index f02f6bff68..3c7b9e6944 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/SBOperations_List.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/SBOperations_List.go @@ -15,11 +15,11 @@ func ExampleOperationsClient_NewListPager() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewOperationsClient(cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListPager(nil) + pager := clientFactory.NewOperationsClient().NewListPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/SBOperations_List.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/SBOperations_List.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/SBOperations_List.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/SBOperations_List.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionCreate.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionCreate.go index 0402fa7782..535b81b39c 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionCreate.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionCreate.go @@ -16,11 +16,11 @@ func ExampleSubscriptionsClient_CreateOrUpdate() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewSubscriptionsClient("Subscriptionid", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.CreateOrUpdate(ctx, "ResourceGroup", "sdk-Namespace-1349", "sdk-Topics-8740", "sdk-Subscriptions-2178", armservicebus.SBSubscription{ + res, err := clientFactory.NewSubscriptionsClient().CreateOrUpdate(ctx, "ResourceGroup", "sdk-Namespace-1349", "sdk-Topics-8740", "sdk-Subscriptions-2178", armservicebus.SBSubscription{ Properties: &armservicebus.SBSubscriptionProperties{ EnableBatchedOperations: to.Ptr(true), }, diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionCreate.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionCreate.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionCreate.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionCreate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionDelete.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionDelete.go index e195a3dfc9..9db8fc8ea5 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionDelete.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionDelete.go @@ -15,11 +15,11 @@ func ExampleSubscriptionsClient_Delete() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewSubscriptionsClient("subscriptionId", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - _, err = client.Delete(ctx, "ResourceGroup", "sdk-Namespace-5882", "sdk-Topics-1804", "sdk-Subscriptions-3670", nil) + _, err = clientFactory.NewSubscriptionsClient().Delete(ctx, "ResourceGroup", "sdk-Namespace-5882", "sdk-Topics-1804", "sdk-Subscriptions-3670", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionDelete.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionDelete.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionDelete.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionDelete.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionGet.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionGet.go index 5ed4654483..a91533101b 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionGet.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionGet.go @@ -15,11 +15,11 @@ func ExampleSubscriptionsClient_Get() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewSubscriptionsClient("Subscriptionid", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, "ResourceGroup", "sdk-Namespace-1349", "sdk-Topics-8740", "sdk-Subscriptions-2178", nil) + res, err := clientFactory.NewSubscriptionsClient().Get(ctx, "ResourceGroup", "sdk-Namespace-1349", "sdk-Topics-8740", "sdk-Subscriptions-2178", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionGet.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionGet.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionGet.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionListByTopic.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionListByTopic.go index 8a27ddba51..60fa97c6ea 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionListByTopic.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionListByTopic.go @@ -15,11 +15,11 @@ func ExampleSubscriptionsClient_NewListByTopicPager() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewSubscriptionsClient("5{Subscriptionid}", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListByTopicPager("ResourceGroup", "sdk-Namespace-1349", "sdk-Topics-8740", &armservicebus.SubscriptionsClientListByTopicOptions{Skip: nil, + pager := clientFactory.NewSubscriptionsClient().NewListByTopicPager("ResourceGroup", "sdk-Namespace-1349", "sdk-Topics-8740", &armservicebus.SubscriptionsClientListByTopicOptions{Skip: nil, Top: nil, }) for pager.More() { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionListByTopic.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionListByTopic.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionListByTopic.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Subscriptions/SBSubscriptionListByTopic.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleCreate.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleCreate.go index 03004b25c3..6720c69fd4 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleCreate.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleCreate.go @@ -16,11 +16,11 @@ func ExampleTopicsClient_CreateOrUpdateAuthorizationRule() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.CreateOrUpdateAuthorizationRule(ctx, "ArunMonocle", "sdk-Namespace-6261", "sdk-Topics-1984", "sdk-AuthRules-4310", armservicebus.SBAuthorizationRule{ + res, err := clientFactory.NewTopicsClient().CreateOrUpdateAuthorizationRule(ctx, "ArunMonocle", "sdk-Namespace-6261", "sdk-Topics-1984", "sdk-AuthRules-4310", armservicebus.SBAuthorizationRule{ Properties: &armservicebus.SBAuthorizationRuleProperties{ Rights: []*armservicebus.AccessRights{ to.Ptr(armservicebus.AccessRightsListen), diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleCreate.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleCreate.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleCreate.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleCreate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleDelete.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleDelete.go index 2b4f9a08ad..506d0ebde6 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleDelete.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleDelete.go @@ -15,11 +15,11 @@ func ExampleTopicsClient_DeleteAuthorizationRule() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - _, err = client.DeleteAuthorizationRule(ctx, "ArunMonocle", "sdk-Namespace-6261", "sdk-Topics-1984", "sdk-AuthRules-4310", nil) + _, err = clientFactory.NewTopicsClient().DeleteAuthorizationRule(ctx, "ArunMonocle", "sdk-Namespace-6261", "sdk-Topics-1984", "sdk-AuthRules-4310", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleDelete.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleDelete.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleDelete.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleDelete.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleGet.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleGet.go index 5eefd29f14..0ad3effd16 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleGet.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleGet.go @@ -15,11 +15,11 @@ func ExampleTopicsClient_GetAuthorizationRule() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.GetAuthorizationRule(ctx, "ArunMonocle", "sdk-Namespace-6261", "sdk-Topics-1984", "sdk-AuthRules-4310", nil) + res, err := clientFactory.NewTopicsClient().GetAuthorizationRule(ctx, "ArunMonocle", "sdk-Namespace-6261", "sdk-Topics-1984", "sdk-AuthRules-4310", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleGet.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleGet.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleGet.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleListAll.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleListAll.go index 153d8dab50..05e57d96f5 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleListAll.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleListAll.go @@ -15,11 +15,11 @@ func ExampleTopicsClient_NewListAuthorizationRulesPager() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListAuthorizationRulesPager("ArunMonocle", "sdk-Namespace-6261", "sdk-Topics-1984", nil) + pager := clientFactory.NewTopicsClient().NewListAuthorizationRulesPager("ArunMonocle", "sdk-Namespace-6261", "sdk-Topics-1984", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleListAll.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleListAll.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleListAll.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleListAll.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleListKey.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleListKey.go index 3e1274edb8..794214b04f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleListKey.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleListKey.go @@ -15,11 +15,11 @@ func ExampleTopicsClient_ListKeys() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewTopicsClient("e2f361f0-3b27-4503-a9cc-21cfba380093", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.ListKeys(ctx, "Default-ServiceBus-WestUS", "sdk-Namespace8408", "sdk-Topics2075", "sdk-Authrules5067", nil) + res, err := clientFactory.NewTopicsClient().ListKeys(ctx, "Default-ServiceBus-WestUS", "sdk-Namespace8408", "sdk-Topics2075", "sdk-Authrules5067", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleListKey.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleListKey.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleListKey.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleListKey.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleRegenerateKey.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleRegenerateKey.go index 18bfb66274..97e2ddef44 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleRegenerateKey.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleRegenerateKey.go @@ -16,11 +16,11 @@ func ExampleTopicsClient_RegenerateKeys() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewTopicsClient("e2f361f0-3b27-4503-a9cc-21cfba380093", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.RegenerateKeys(ctx, "Default-ServiceBus-WestUS", "sdk-Namespace8408", "sdk-Topics2075", "sdk-Authrules5067", armservicebus.RegenerateAccessKeyParameters{ + res, err := clientFactory.NewTopicsClient().RegenerateKeys(ctx, "Default-ServiceBus-WestUS", "sdk-Namespace8408", "sdk-Topics2075", "sdk-Authrules5067", armservicebus.RegenerateAccessKeyParameters{ KeyType: to.Ptr(armservicebus.KeyTypePrimaryKey), }, nil) if err != nil { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleRegenerateKey.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleRegenerateKey.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleRegenerateKey.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicAuthorizationRuleRegenerateKey.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicCreate.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicCreate.go index bddef42c4c..7a0035a549 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicCreate.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicCreate.go @@ -16,11 +16,11 @@ func ExampleTopicsClient_CreateOrUpdate() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.CreateOrUpdate(ctx, "ArunMonocle", "sdk-Namespace-1617", "sdk-Topics-5488", armservicebus.SBTopic{ + res, err := clientFactory.NewTopicsClient().CreateOrUpdate(ctx, "ArunMonocle", "sdk-Namespace-1617", "sdk-Topics-5488", armservicebus.SBTopic{ Properties: &armservicebus.SBTopicProperties{ EnableExpress: to.Ptr(true), }, diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicCreate.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicCreate.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicCreate.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicCreate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicDelete.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicDelete.go index f1013d0705..54816311ed 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicDelete.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicDelete.go @@ -15,11 +15,11 @@ func ExampleTopicsClient_Delete() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - _, err = client.Delete(ctx, "ArunMonocle", "sdk-Namespace-1617", "sdk-Topics-5488", nil) + _, err = clientFactory.NewTopicsClient().Delete(ctx, "ArunMonocle", "sdk-Namespace-1617", "sdk-Topics-5488", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicDelete.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicDelete.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicDelete.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicDelete.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicGet.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicGet.go index 96bb02f583..fd91660a0a 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicGet.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicGet.go @@ -15,11 +15,11 @@ func ExampleTopicsClient_Get() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, "ArunMonocle", "sdk-Namespace-1617", "sdk-Topics-5488", nil) + res, err := clientFactory.NewTopicsClient().Get(ctx, "ArunMonocle", "sdk-Namespace-1617", "sdk-Topics-5488", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicGet.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicGet.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicGet.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicListByNameSpace.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicListByNameSpace.go index 09b38c95ee..4cee662783 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicListByNameSpace.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicListByNameSpace.go @@ -15,11 +15,11 @@ func ExampleTopicsClient_NewListByNamespacePager() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListByNamespacePager("Default-ServiceBus-WestUS", "sdk-Namespace-1617", &armservicebus.TopicsClientListByNamespaceOptions{Skip: nil, + pager := clientFactory.NewTopicsClient().NewListByNamespacePager("Default-ServiceBus-WestUS", "sdk-Namespace-1617", &armservicebus.TopicsClientListByNamespaceOptions{Skip: nil, Top: nil, }) for pager.More() { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicListByNameSpace.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicListByNameSpace.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicListByNameSpace.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/Topics/SBTopicListByNameSpace.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleGet.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleGet.go index 3fc94bfd45..3394f0e548 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleGet.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleGet.go @@ -15,11 +15,11 @@ func ExampleDisasterRecoveryConfigsClient_GetAuthorizationRule() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewDisasterRecoveryConfigsClient("exampleSubscriptionId", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.GetAuthorizationRule(ctx, "exampleResourceGroup", "sdk-Namespace-9080", "sdk-DisasterRecovery-4879", "sdk-Authrules-4879", nil) + res, err := clientFactory.NewDisasterRecoveryConfigsClient().GetAuthorizationRule(ctx, "exampleResourceGroup", "sdk-Namespace-9080", "sdk-DisasterRecovery-4879", "sdk-Authrules-4879", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleGet.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleGet.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleGet.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleListAll.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleListAll.go index bf871aaf92..d770605ce4 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleListAll.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleListAll.go @@ -15,11 +15,11 @@ func ExampleDisasterRecoveryConfigsClient_NewListAuthorizationRulesPager() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewDisasterRecoveryConfigsClient("exampleSubscriptionId", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListAuthorizationRulesPager("exampleResourceGroup", "sdk-Namespace-9080", "sdk-DisasterRecovery-4047", nil) + pager := clientFactory.NewDisasterRecoveryConfigsClient().NewListAuthorizationRulesPager("exampleResourceGroup", "sdk-Namespace-9080", "sdk-DisasterRecovery-4047", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleListAll.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleListAll.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleListAll.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleListAll.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleListKey.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleListKey.go index 67b6765d06..7938d84a68 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleListKey.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleListKey.go @@ -15,11 +15,11 @@ func ExampleDisasterRecoveryConfigsClient_ListKeys() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewDisasterRecoveryConfigsClient("exampleSubscriptionId", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.ListKeys(ctx, "exampleResourceGroup", "sdk-Namespace-2702", "sdk-DisasterRecovery-4047", "sdk-Authrules-1746", nil) + res, err := clientFactory.NewDisasterRecoveryConfigsClient().ListKeys(ctx, "exampleResourceGroup", "sdk-Namespace-2702", "sdk-DisasterRecovery-4047", "sdk-Authrules-1746", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleListKey.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleListKey.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleListKey.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasAuthorizationRuleListKey.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasCheckNameAvailability.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasCheckNameAvailability.go index 5840fae936..cbc421a0cc 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasCheckNameAvailability.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasCheckNameAvailability.go @@ -16,11 +16,11 @@ func ExampleDisasterRecoveryConfigsClient_CheckNameAvailability() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewDisasterRecoveryConfigsClient("exampleSubscriptionId", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.CheckNameAvailability(ctx, "exampleResourceGroup", "sdk-Namespace-9080", armservicebus.CheckNameAvailability{ + res, err := clientFactory.NewDisasterRecoveryConfigsClient().CheckNameAvailability(ctx, "exampleResourceGroup", "sdk-Namespace-9080", armservicebus.CheckNameAvailability{ Name: to.Ptr("sdk-DisasterRecovery-9474"), }, nil) if err != nil { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasCheckNameAvailability.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasCheckNameAvailability.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasCheckNameAvailability.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasCheckNameAvailability.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasCreate.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasCreate.go index a596a4f4af..b7f937748d 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasCreate.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasCreate.go @@ -16,11 +16,11 @@ func ExampleDisasterRecoveryConfigsClient_CreateOrUpdate() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewDisasterRecoveryConfigsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.CreateOrUpdate(ctx, "ardsouzatestRG", "sdk-Namespace-8860", "sdk-Namespace-8860", armservicebus.ArmDisasterRecovery{ + res, err := clientFactory.NewDisasterRecoveryConfigsClient().CreateOrUpdate(ctx, "ardsouzatestRG", "sdk-Namespace-8860", "sdk-Namespace-8860", armservicebus.ArmDisasterRecovery{ Properties: &armservicebus.ArmDisasterRecoveryProperties{ AlternateName: to.Ptr("alternameforAlias-Namespace-8860"), PartnerNamespace: to.Ptr("sdk-Namespace-37"), diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasCreate.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasCreate.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasCreate.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasCreate.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasDelete.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasDelete.go index d6fd52720f..b5e4035c5d 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasDelete.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasDelete.go @@ -15,11 +15,11 @@ func ExampleDisasterRecoveryConfigsClient_Delete() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewDisasterRecoveryConfigsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - _, err = client.Delete(ctx, "SouthCentralUS", "sdk-Namespace-8860", "sdk-DisasterRecovery-3814", nil) + _, err = clientFactory.NewDisasterRecoveryConfigsClient().Delete(ctx, "SouthCentralUS", "sdk-Namespace-8860", "sdk-DisasterRecovery-3814", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasDelete.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasDelete.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasDelete.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasDelete.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasFailOver.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasFailOver.go index aa747c205a..4416dc701e 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasFailOver.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasFailOver.go @@ -15,11 +15,11 @@ func ExampleDisasterRecoveryConfigsClient_FailOver() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewDisasterRecoveryConfigsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - _, err = client.FailOver(ctx, "ardsouzatestRG", "sdk-Namespace-8860", "sdk-DisasterRecovery-3814", &armservicebus.DisasterRecoveryConfigsClientFailOverOptions{Parameters: nil}) + _, err = clientFactory.NewDisasterRecoveryConfigsClient().FailOver(ctx, "ardsouzatestRG", "sdk-Namespace-8860", "sdk-DisasterRecovery-3814", &armservicebus.DisasterRecoveryConfigsClientFailOverOptions{Parameters: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasFailOver.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasFailOver.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasFailOver.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasFailOver.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasGet.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasGet.go index 04bbddba16..92682b36b0 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasGet.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasGet.go @@ -15,11 +15,11 @@ func ExampleDisasterRecoveryConfigsClient_Get() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewDisasterRecoveryConfigsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, "ardsouzatestRG", "sdk-Namespace-8860", "sdk-DisasterRecovery-3814", nil) + res, err := clientFactory.NewDisasterRecoveryConfigsClient().Get(ctx, "ardsouzatestRG", "sdk-Namespace-8860", "sdk-DisasterRecovery-3814", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasGet.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasGet.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasGet.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasGet.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasList.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasList.go index 05de780ad7..94f93272ce 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasList.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasList.go @@ -15,11 +15,11 @@ func ExampleDisasterRecoveryConfigsClient_NewListPager() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewDisasterRecoveryConfigsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListPager("ardsouzatestRG", "sdk-Namespace-8860", nil) + pager := clientFactory.NewDisasterRecoveryConfigsClient().NewListPager("ardsouzatestRG", "sdk-Namespace-8860", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasList.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasList.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasList.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBAliasList.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBEHAliasBreakPairing.go b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBEHAliasBreakPairing.go index 5eed0edf73..ced7616774 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBEHAliasBreakPairing.go +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBEHAliasBreakPairing.go @@ -15,11 +15,11 @@ func ExampleDisasterRecoveryConfigsClient_BreakPairing() { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armservicebus.NewDisasterRecoveryConfigsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + clientFactory, err := armservicebus.NewClientFactory("", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - _, err = client.BreakPairing(ctx, "ardsouzatestRG", "sdk-Namespace-8860", "sdk-DisasterRecovery-3814", nil) + _, err = clientFactory.NewDisasterRecoveryConfigsClient().BreakPairing(ctx, "ardsouzatestRG", "sdk-Namespace-8860", "sdk-DisasterRecovery-3814", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBEHAliasBreakPairing.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBEHAliasBreakPairing.json index df34f96528..d67dcc1e0f 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBEHAliasBreakPairing.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples-go/disasterRecoveryConfigs/SBEHAliasBreakPairing.json @@ -1 +1 @@ -{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.2/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file +{"sdkUrl": "https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fservicebus%2Farmservicebus%2Fv2.0.0-beta.3/sdk/resourcemanager/servicebus/armservicebus/README.md"} \ No newline at end of file