diff --git a/sdk/resourcemanager/servicebus/armservicebus/CHANGELOG.md b/sdk/resourcemanager/servicebus/armservicebus/CHANGELOG.md index 23e82f0005f1..3c9117225833 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/CHANGELOG.md +++ b/sdk/resourcemanager/servicebus/armservicebus/CHANGELOG.md @@ -1,5 +1,43 @@ # Release History +## 0.5.0 (2022-04-18) +### Breaking Changes + +- Function `*NamespacesClient.ListAuthorizationRules` has been removed +- Function `*SubscriptionsClient.ListByTopic` has been removed +- Function `*RulesClient.ListBySubscriptions` has been removed +- Function `*PrivateEndpointConnectionsClient.List` has been removed +- Function `*DisasterRecoveryConfigsClient.List` has been removed +- Function `*NamespacesClient.ListNetworkRuleSets` has been removed +- Function `*TopicsClient.ListAuthorizationRules` has been removed +- Function `*MigrationConfigsClient.List` has been removed +- Function `*QueuesClient.ListByNamespace` has been removed +- Function `*TopicsClient.ListByNamespace` has been removed +- Function `*NamespacesClient.List` has been removed +- Function `*OperationsClient.List` has been removed +- Function `*DisasterRecoveryConfigsClient.ListAuthorizationRules` has been removed +- Function `*QueuesClient.ListAuthorizationRules` has been removed +- Function `*NamespacesClient.ListByResourceGroup` has been removed + +### Features Added + +- New function `*QueuesClient.NewListAuthorizationRulesPager(string, string, string, *QueuesClientListAuthorizationRulesOptions) *runtime.Pager[QueuesClientListAuthorizationRulesResponse]` +- New function `*TopicsClient.NewListByNamespacePager(string, string, *TopicsClientListByNamespaceOptions) *runtime.Pager[TopicsClientListByNamespaceResponse]` +- New function `*NamespacesClient.NewListByResourceGroupPager(string, *NamespacesClientListByResourceGroupOptions) *runtime.Pager[NamespacesClientListByResourceGroupResponse]` +- New function `*QueuesClient.NewListByNamespacePager(string, string, *QueuesClientListByNamespaceOptions) *runtime.Pager[QueuesClientListByNamespaceResponse]` +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` +- New function `*NamespacesClient.NewListPager(*NamespacesClientListOptions) *runtime.Pager[NamespacesClientListResponse]` +- New function `*RulesClient.NewListBySubscriptionsPager(string, string, string, string, *RulesClientListBySubscriptionsOptions) *runtime.Pager[RulesClientListBySubscriptionsResponse]` +- New function `*DisasterRecoveryConfigsClient.NewListPager(string, string, *DisasterRecoveryConfigsClientListOptions) *runtime.Pager[DisasterRecoveryConfigsClientListResponse]` +- New function `*SubscriptionsClient.NewListByTopicPager(string, string, string, *SubscriptionsClientListByTopicOptions) *runtime.Pager[SubscriptionsClientListByTopicResponse]` +- New function `*PrivateEndpointConnectionsClient.NewListPager(string, string, *PrivateEndpointConnectionsClientListOptions) *runtime.Pager[PrivateEndpointConnectionsClientListResponse]` +- New function `*TopicsClient.NewListAuthorizationRulesPager(string, string, string, *TopicsClientListAuthorizationRulesOptions) *runtime.Pager[TopicsClientListAuthorizationRulesResponse]` +- New function `*NamespacesClient.NewListNetworkRuleSetsPager(string, string, *NamespacesClientListNetworkRuleSetsOptions) *runtime.Pager[NamespacesClientListNetworkRuleSetsResponse]` +- New function `*DisasterRecoveryConfigsClient.NewListAuthorizationRulesPager(string, string, string, *DisasterRecoveryConfigsClientListAuthorizationRulesOptions) *runtime.Pager[DisasterRecoveryConfigsClientListAuthorizationRulesResponse]` +- New function `*NamespacesClient.NewListAuthorizationRulesPager(string, string, *NamespacesClientListAuthorizationRulesOptions) *runtime.Pager[NamespacesClientListAuthorizationRulesResponse]` +- New function `*MigrationConfigsClient.NewListPager(string, string, *MigrationConfigsClientListOptions) *runtime.Pager[MigrationConfigsClientListResponse]` + + ## 0.4.0 (2022-04-14) ### Breaking Changes diff --git a/sdk/resourcemanager/servicebus/armservicebus/autorest.md b/sdk/resourcemanager/servicebus/armservicebus/autorest.md index 4cf60c8f5e1d..53179535062c 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/autorest.md +++ b/sdk/resourcemanager/servicebus/armservicebus/autorest.md @@ -5,8 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/ba65174ad2569e80fdb5838a1dddc26b8c0d6f3d/specification/servicebus/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/ba65174ad2569e80fdb5838a1dddc26b8c0d6f3d/specification/servicebus/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/servicebus/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/servicebus/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.4.0 +module-version: 0.5.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_disasterrecoveryconfigs_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_disasterrecoveryconfigs_client_test.go index cc53db7119bd..914b7c994762 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_disasterrecoveryconfigs_client_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_disasterrecoveryconfigs_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBAliasList.json -func ExampleDisasterRecoveryConfigsClient_List() { +func ExampleDisasterRecoveryConfigsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleDisasterRecoveryConfigsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", nil) for pager.More() { @@ -177,7 +177,7 @@ func ExampleDisasterRecoveryConfigsClient_FailOver() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/disasterRecoveryConfigs/SBAliasAuthorizationRuleListAll.json -func ExampleDisasterRecoveryConfigsClient_ListAuthorizationRules() { +func ExampleDisasterRecoveryConfigsClient_NewListAuthorizationRulesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -189,7 +189,7 @@ func ExampleDisasterRecoveryConfigsClient_ListAuthorizationRules() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListAuthorizationRules("", + pager := client.NewListAuthorizationRulesPager("", "", "", nil) diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_migrationconfigs_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_migrationconfigs_client_test.go index f23349da4ca0..b43a2877aac6 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_migrationconfigs_client_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_migrationconfigs_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Migrationconfigurations/SBMigrationconfigurationList.json -func ExampleMigrationConfigsClient_List() { +func ExampleMigrationConfigsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleMigrationConfigsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_namespaces_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_namespaces_client_test.go index 0cfb4240d9a0..ac9aa5e5f270 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_namespaces_client_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_namespaces_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceList.json -func ExampleNamespacesClient_List() { +func ExampleNamespacesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleNamespacesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(nil) + pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { @@ -47,7 +47,7 @@ func ExampleNamespacesClient_List() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceListByResourceGroup.json -func ExampleNamespacesClient_ListByResourceGroup() { +func ExampleNamespacesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -59,7 +59,7 @@ func ExampleNamespacesClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -296,7 +296,7 @@ func ExampleNamespacesClient_GetNetworkRuleSet() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetList.json -func ExampleNamespacesClient_ListNetworkRuleSets() { +func ExampleNamespacesClient_NewListNetworkRuleSetsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -308,7 +308,7 @@ func ExampleNamespacesClient_ListNetworkRuleSets() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListNetworkRuleSets("", + pager := client.NewListNetworkRuleSetsPager("", "", nil) for pager.More() { @@ -325,7 +325,7 @@ func ExampleNamespacesClient_ListNetworkRuleSets() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleListAll.json -func ExampleNamespacesClient_ListAuthorizationRules() { +func ExampleNamespacesClient_NewListAuthorizationRulesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -337,7 +337,7 @@ func ExampleNamespacesClient_ListAuthorizationRules() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListAuthorizationRules("", + pager := client.NewListAuthorizationRulesPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_operations_client_test.go index b8a176463441..dddff7ca9807 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_operations_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/SBOperations_List.json -func ExampleOperationsClient_List() { +func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleOperationsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(nil) + pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_privateendpointconnections_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_privateendpointconnections_client_test.go index a91433154475..470d51fe579f 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_privateendpointconnections_client_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_privateendpointconnections_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/NameSpaces/PrivateEndPointConnectionList.json -func ExamplePrivateEndpointConnectionsClient_List() { +func ExamplePrivateEndpointConnectionsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExamplePrivateEndpointConnectionsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_queues_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_queues_client_test.go index d947e7a2a1a3..55401902bffc 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_queues_client_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_queues_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueAuthorizationRuleListAll.json -func ExampleQueuesClient_ListAuthorizationRules() { +func ExampleQueuesClient_NewListAuthorizationRulesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleQueuesClient_ListAuthorizationRules() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListAuthorizationRules("", + pager := client.NewListAuthorizationRulesPager("", "", "", nil) @@ -191,7 +191,7 @@ func ExampleQueuesClient_RegenerateKeys() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Queues/SBQueueListByNameSpace.json -func ExampleQueuesClient_ListByNamespace() { +func ExampleQueuesClient_NewListByNamespacePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -203,7 +203,7 @@ func ExampleQueuesClient_ListByNamespace() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByNamespace("", + pager := client.NewListByNamespacePager("", "", &armservicebus.QueuesClientListByNamespaceOptions{Skip: nil, Top: nil, diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_rules_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_rules_client_test.go index 52001fad4dca..9853f7876ec5 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_rules_client_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_rules_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Rules/RuleListBySubscription.json -func ExampleRulesClient_ListBySubscriptions() { +func ExampleRulesClient_NewListBySubscriptionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleRulesClient_ListBySubscriptions() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListBySubscriptions("", + pager := client.NewListBySubscriptionsPager("", "", "", "", diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_subscriptions_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_subscriptions_client_test.go index dca0da99b13c..55e1732eb685 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_subscriptions_client_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_subscriptions_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Subscriptions/SBSubscriptionListByTopic.json -func ExampleSubscriptionsClient_ListByTopic() { +func ExampleSubscriptionsClient_NewListByTopicPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleSubscriptionsClient_ListByTopic() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByTopic("", + pager := client.NewListByTopicPager("", "", "", &armservicebus.SubscriptionsClientListByTopicOptions{Skip: nil, diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_topics_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_topics_client_test.go index e425abf709fd..13be48059480 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_topics_client_test.go +++ b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_topics_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicAuthorizationRuleListAll.json -func ExampleTopicsClient_ListAuthorizationRules() { +func ExampleTopicsClient_NewListAuthorizationRulesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleTopicsClient_ListAuthorizationRules() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListAuthorizationRules("", + pager := client.NewListAuthorizationRulesPager("", "", "", nil) @@ -191,7 +191,7 @@ func ExampleTopicsClient_RegenerateKeys() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Topics/SBTopicListByNameSpace.json -func ExampleTopicsClient_ListByNamespace() { +func ExampleTopicsClient_NewListByNamespacePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -203,7 +203,7 @@ func ExampleTopicsClient_ListByNamespace() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByNamespace("", + pager := client.NewListByNamespacePager("", "", &armservicebus.TopicsClientListByNamespaceOptions{Skip: nil, Top: nil, diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_constants.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_constants.go index 5a60e4b7d2f3..7c309b7dbef9 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_constants.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_constants.go @@ -10,7 +10,7 @@ package armservicebus const ( moduleName = "armservicebus" - moduleVersion = "v0.4.0" + moduleVersion = "v0.5.0" ) type AccessRights string diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_disasterrecoveryconfigs_client.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_disasterrecoveryconfigs_client.go index e3fba028fa39..cfb5803fbe53 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_disasterrecoveryconfigs_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_disasterrecoveryconfigs_client.go @@ -460,13 +460,13 @@ func (client *DisasterRecoveryConfigsClient) getAuthorizationRuleHandleResponse( return result, nil } -// List - Gets all Alias(Disaster Recovery configurations) +// NewListPager - Gets all Alias(Disaster Recovery configurations) // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // namespaceName - The namespace name // options - DisasterRecoveryConfigsClientListOptions contains the optional parameters for the DisasterRecoveryConfigsClient.List // method. -func (client *DisasterRecoveryConfigsClient) List(resourceGroupName string, namespaceName string, options *DisasterRecoveryConfigsClientListOptions) *runtime.Pager[DisasterRecoveryConfigsClientListResponse] { +func (client *DisasterRecoveryConfigsClient) NewListPager(resourceGroupName string, namespaceName string, options *DisasterRecoveryConfigsClientListOptions) *runtime.Pager[DisasterRecoveryConfigsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[DisasterRecoveryConfigsClientListResponse]{ More: func(page DisasterRecoveryConfigsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -529,14 +529,14 @@ func (client *DisasterRecoveryConfigsClient) listHandleResponse(resp *http.Respo return result, nil } -// ListAuthorizationRules - Gets the authorization rules for a namespace. +// NewListAuthorizationRulesPager - Gets the authorization rules for a namespace. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // namespaceName - The namespace name // alias - The Disaster Recovery configuration name // options - DisasterRecoveryConfigsClientListAuthorizationRulesOptions contains the optional parameters for the DisasterRecoveryConfigsClient.ListAuthorizationRules // method. -func (client *DisasterRecoveryConfigsClient) ListAuthorizationRules(resourceGroupName string, namespaceName string, alias string, options *DisasterRecoveryConfigsClientListAuthorizationRulesOptions) *runtime.Pager[DisasterRecoveryConfigsClientListAuthorizationRulesResponse] { +func (client *DisasterRecoveryConfigsClient) NewListAuthorizationRulesPager(resourceGroupName string, namespaceName string, alias string, options *DisasterRecoveryConfigsClientListAuthorizationRulesOptions) *runtime.Pager[DisasterRecoveryConfigsClientListAuthorizationRulesResponse] { return runtime.NewPager(runtime.PageProcessor[DisasterRecoveryConfigsClientListAuthorizationRulesResponse]{ More: func(page DisasterRecoveryConfigsClientListAuthorizationRulesResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_migrationconfigs_client.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_migrationconfigs_client.go index a3fdb72da1f5..1879237d9157 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_migrationconfigs_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_migrationconfigs_client.go @@ -288,12 +288,12 @@ func (client *MigrationConfigsClient) getHandleResponse(resp *http.Response) (Mi return result, nil } -// List - Gets all migrationConfigurations +// NewListPager - Gets all migrationConfigurations // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // namespaceName - The namespace name // options - MigrationConfigsClientListOptions contains the optional parameters for the MigrationConfigsClient.List method. -func (client *MigrationConfigsClient) List(resourceGroupName string, namespaceName string, options *MigrationConfigsClientListOptions) *runtime.Pager[MigrationConfigsClientListResponse] { +func (client *MigrationConfigsClient) NewListPager(resourceGroupName string, namespaceName string, options *MigrationConfigsClientListOptions) *runtime.Pager[MigrationConfigsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[MigrationConfigsClientListResponse]{ More: func(page MigrationConfigsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_namespaces_client.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_namespaces_client.go index d633eed7cef8..1e16be46d572 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_namespaces_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_namespaces_client.go @@ -569,10 +569,10 @@ func (client *NamespacesClient) getNetworkRuleSetHandleResponse(resp *http.Respo return result, nil } -// List - Gets all the available namespaces within the subscription, irrespective of the resource groups. +// NewListPager - Gets all the available namespaces within the subscription, irrespective of the resource groups. // If the operation fails it returns an *azcore.ResponseError type. // options - NamespacesClientListOptions contains the optional parameters for the NamespacesClient.List method. -func (client *NamespacesClient) List(options *NamespacesClientListOptions) *runtime.Pager[NamespacesClientListResponse] { +func (client *NamespacesClient) NewListPager(options *NamespacesClientListOptions) *runtime.Pager[NamespacesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[NamespacesClientListResponse]{ More: func(page NamespacesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -627,13 +627,13 @@ func (client *NamespacesClient) listHandleResponse(resp *http.Response) (Namespa return result, nil } -// ListAuthorizationRules - Gets the authorization rules for a namespace. +// NewListAuthorizationRulesPager - Gets the authorization rules for a namespace. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // namespaceName - The namespace name // options - NamespacesClientListAuthorizationRulesOptions contains the optional parameters for the NamespacesClient.ListAuthorizationRules // method. -func (client *NamespacesClient) ListAuthorizationRules(resourceGroupName string, namespaceName string, options *NamespacesClientListAuthorizationRulesOptions) *runtime.Pager[NamespacesClientListAuthorizationRulesResponse] { +func (client *NamespacesClient) NewListAuthorizationRulesPager(resourceGroupName string, namespaceName string, options *NamespacesClientListAuthorizationRulesOptions) *runtime.Pager[NamespacesClientListAuthorizationRulesResponse] { return runtime.NewPager(runtime.PageProcessor[NamespacesClientListAuthorizationRulesResponse]{ More: func(page NamespacesClientListAuthorizationRulesResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -696,12 +696,12 @@ func (client *NamespacesClient) listAuthorizationRulesHandleResponse(resp *http. return result, nil } -// ListByResourceGroup - Gets the available namespaces within a resource group. +// NewListByResourceGroupPager - Gets the available namespaces within a resource group. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // options - NamespacesClientListByResourceGroupOptions contains the optional parameters for the NamespacesClient.ListByResourceGroup // method. -func (client *NamespacesClient) ListByResourceGroup(resourceGroupName string, options *NamespacesClientListByResourceGroupOptions) *runtime.Pager[NamespacesClientListByResourceGroupResponse] { +func (client *NamespacesClient) NewListByResourceGroupPager(resourceGroupName string, options *NamespacesClientListByResourceGroupOptions) *runtime.Pager[NamespacesClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[NamespacesClientListByResourceGroupResponse]{ More: func(page NamespacesClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -820,13 +820,13 @@ func (client *NamespacesClient) listKeysHandleResponse(resp *http.Response) (Nam return result, nil } -// ListNetworkRuleSets - Gets list of NetworkRuleSet for a Namespace. +// NewListNetworkRuleSetsPager - Gets list of NetworkRuleSet for a Namespace. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // namespaceName - The namespace name // options - NamespacesClientListNetworkRuleSetsOptions contains the optional parameters for the NamespacesClient.ListNetworkRuleSets // method. -func (client *NamespacesClient) ListNetworkRuleSets(resourceGroupName string, namespaceName string, options *NamespacesClientListNetworkRuleSetsOptions) *runtime.Pager[NamespacesClientListNetworkRuleSetsResponse] { +func (client *NamespacesClient) NewListNetworkRuleSetsPager(resourceGroupName string, namespaceName string, options *NamespacesClientListNetworkRuleSetsOptions) *runtime.Pager[NamespacesClientListNetworkRuleSetsResponse] { return runtime.NewPager(runtime.PageProcessor[NamespacesClientListNetworkRuleSetsResponse]{ More: func(page NamespacesClientListNetworkRuleSetsResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_operations_client.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_operations_client.go index 54983e3ab2fe..c91ad011ed78 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_operations_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_operations_client.go @@ -48,10 +48,10 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO return client, nil } -// List - Lists all of the available ServiceBus REST API operations. +// NewListPager - Lists all of the available ServiceBus REST API operations. // If the operation fails it returns an *azcore.ResponseError type. // options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. -func (client *OperationsClient) List(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { +func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[OperationsClientListResponse]{ More: func(page OperationsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_privateendpointconnections_client.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_privateendpointconnections_client.go index 966a02a5efd6..483ce1b2b4e5 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_privateendpointconnections_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_privateendpointconnections_client.go @@ -244,13 +244,13 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res return result, nil } -// List - Gets the available PrivateEndpointConnections within a namespace. +// NewListPager - Gets the available PrivateEndpointConnections within a namespace. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // namespaceName - The namespace name // options - PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.List // method. -func (client *PrivateEndpointConnectionsClient) List(resourceGroupName string, namespaceName string, options *PrivateEndpointConnectionsClientListOptions) *runtime.Pager[PrivateEndpointConnectionsClientListResponse] { +func (client *PrivateEndpointConnectionsClient) NewListPager(resourceGroupName string, namespaceName string, options *PrivateEndpointConnectionsClientListOptions) *runtime.Pager[PrivateEndpointConnectionsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[PrivateEndpointConnectionsClientListResponse]{ More: func(page PrivateEndpointConnectionsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_queues_client.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_queues_client.go index 7e6315e41715..bc5147985e5d 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_queues_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_queues_client.go @@ -418,14 +418,14 @@ func (client *QueuesClient) getAuthorizationRuleHandleResponse(resp *http.Respon return result, nil } -// ListAuthorizationRules - Gets all authorization rules for a queue. +// NewListAuthorizationRulesPager - Gets all authorization rules for a queue. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // namespaceName - The namespace name // queueName - The queue name. // options - QueuesClientListAuthorizationRulesOptions contains the optional parameters for the QueuesClient.ListAuthorizationRules // method. -func (client *QueuesClient) ListAuthorizationRules(resourceGroupName string, namespaceName string, queueName string, options *QueuesClientListAuthorizationRulesOptions) *runtime.Pager[QueuesClientListAuthorizationRulesResponse] { +func (client *QueuesClient) NewListAuthorizationRulesPager(resourceGroupName string, namespaceName string, queueName string, options *QueuesClientListAuthorizationRulesOptions) *runtime.Pager[QueuesClientListAuthorizationRulesResponse] { return runtime.NewPager(runtime.PageProcessor[QueuesClientListAuthorizationRulesResponse]{ More: func(page QueuesClientListAuthorizationRulesResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -492,12 +492,12 @@ func (client *QueuesClient) listAuthorizationRulesHandleResponse(resp *http.Resp return result, nil } -// ListByNamespace - Gets the queues within a namespace. +// NewListByNamespacePager - Gets the queues within a namespace. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // namespaceName - The namespace name // options - QueuesClientListByNamespaceOptions contains the optional parameters for the QueuesClient.ListByNamespace method. -func (client *QueuesClient) ListByNamespace(resourceGroupName string, namespaceName string, options *QueuesClientListByNamespaceOptions) *runtime.Pager[QueuesClientListByNamespaceResponse] { +func (client *QueuesClient) NewListByNamespacePager(resourceGroupName string, namespaceName string, options *QueuesClientListByNamespaceOptions) *runtime.Pager[QueuesClientListByNamespaceResponse] { return runtime.NewPager(runtime.PageProcessor[QueuesClientListByNamespaceResponse]{ More: func(page QueuesClientListByNamespaceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_rules_client.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_rules_client.go index a8c69db8ec0c..b2d3dac419ea 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_rules_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_rules_client.go @@ -258,7 +258,7 @@ func (client *RulesClient) getHandleResponse(resp *http.Response) (RulesClientGe return result, nil } -// ListBySubscriptions - List all the rules within given topic-subscription +// NewListBySubscriptionsPager - List all the rules within given topic-subscription // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // namespaceName - The namespace name @@ -266,7 +266,7 @@ func (client *RulesClient) getHandleResponse(resp *http.Response) (RulesClientGe // subscriptionName - The subscription name. // options - RulesClientListBySubscriptionsOptions contains the optional parameters for the RulesClient.ListBySubscriptions // method. -func (client *RulesClient) ListBySubscriptions(resourceGroupName string, namespaceName string, topicName string, subscriptionName string, options *RulesClientListBySubscriptionsOptions) *runtime.Pager[RulesClientListBySubscriptionsResponse] { +func (client *RulesClient) NewListBySubscriptionsPager(resourceGroupName string, namespaceName string, topicName string, subscriptionName string, options *RulesClientListBySubscriptionsOptions) *runtime.Pager[RulesClientListBySubscriptionsResponse] { return runtime.NewPager(runtime.PageProcessor[RulesClientListBySubscriptionsResponse]{ More: func(page RulesClientListBySubscriptionsResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_subscriptions_client.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_subscriptions_client.go index 4abd4ba9a6ed..bd609bda6704 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_subscriptions_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_subscriptions_client.go @@ -244,14 +244,14 @@ func (client *SubscriptionsClient) getHandleResponse(resp *http.Response) (Subsc return result, nil } -// ListByTopic - List all the subscriptions under a specified topic. +// NewListByTopicPager - List all the subscriptions under a specified topic. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // namespaceName - The namespace name // topicName - The topic name. // options - SubscriptionsClientListByTopicOptions contains the optional parameters for the SubscriptionsClient.ListByTopic // method. -func (client *SubscriptionsClient) ListByTopic(resourceGroupName string, namespaceName string, topicName string, options *SubscriptionsClientListByTopicOptions) *runtime.Pager[SubscriptionsClientListByTopicResponse] { +func (client *SubscriptionsClient) NewListByTopicPager(resourceGroupName string, namespaceName string, topicName string, options *SubscriptionsClientListByTopicOptions) *runtime.Pager[SubscriptionsClientListByTopicResponse] { return runtime.NewPager(runtime.PageProcessor[SubscriptionsClientListByTopicResponse]{ More: func(page SubscriptionsClientListByTopicResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_topics_client.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_topics_client.go index 7fb9a8f14054..7c3efd1d061a 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_topics_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_topics_client.go @@ -418,14 +418,14 @@ func (client *TopicsClient) getAuthorizationRuleHandleResponse(resp *http.Respon return result, nil } -// ListAuthorizationRules - Gets authorization rules for a topic. +// NewListAuthorizationRulesPager - Gets authorization rules for a topic. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // namespaceName - The namespace name // topicName - The topic name. // options - TopicsClientListAuthorizationRulesOptions contains the optional parameters for the TopicsClient.ListAuthorizationRules // method. -func (client *TopicsClient) ListAuthorizationRules(resourceGroupName string, namespaceName string, topicName string, options *TopicsClientListAuthorizationRulesOptions) *runtime.Pager[TopicsClientListAuthorizationRulesResponse] { +func (client *TopicsClient) NewListAuthorizationRulesPager(resourceGroupName string, namespaceName string, topicName string, options *TopicsClientListAuthorizationRulesOptions) *runtime.Pager[TopicsClientListAuthorizationRulesResponse] { return runtime.NewPager(runtime.PageProcessor[TopicsClientListAuthorizationRulesResponse]{ More: func(page TopicsClientListAuthorizationRulesResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -492,12 +492,12 @@ func (client *TopicsClient) listAuthorizationRulesHandleResponse(resp *http.Resp return result, nil } -// ListByNamespace - Gets all the topics in a namespace. +// NewListByNamespacePager - Gets all the topics in a namespace. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // namespaceName - The namespace name // options - TopicsClientListByNamespaceOptions contains the optional parameters for the TopicsClient.ListByNamespace method. -func (client *TopicsClient) ListByNamespace(resourceGroupName string, namespaceName string, options *TopicsClientListByNamespaceOptions) *runtime.Pager[TopicsClientListByNamespaceResponse] { +func (client *TopicsClient) NewListByNamespacePager(resourceGroupName string, namespaceName string, options *TopicsClientListByNamespaceOptions) *runtime.Pager[TopicsClientListByNamespaceResponse] { return runtime.NewPager(runtime.PageProcessor[TopicsClientListByNamespaceResponse]{ More: func(page TopicsClientListByNamespaceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/servicefabric/armservicefabric/CHANGELOG.md b/sdk/resourcemanager/servicefabric/armservicefabric/CHANGELOG.md index aabeea48da5b..c5ef2b5d1ac9 100644 --- a/sdk/resourcemanager/servicefabric/armservicefabric/CHANGELOG.md +++ b/sdk/resourcemanager/servicefabric/armservicefabric/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 0.6.0 (2022-04-18) +### Breaking Changes + +- Function `*OperationsClient.List` has been removed + +### Features Added + +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` + + ## 0.5.0 (2022-04-13) ### Breaking Changes diff --git a/sdk/resourcemanager/servicefabric/armservicefabric/autorest.md b/sdk/resourcemanager/servicefabric/armservicefabric/autorest.md index 195a5d690826..c8cc7f0b99e1 100644 --- a/sdk/resourcemanager/servicefabric/armservicefabric/autorest.md +++ b/sdk/resourcemanager/servicefabric/armservicefabric/autorest.md @@ -5,8 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/servicefabric/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/servicefabric/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/servicefabric/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/servicefabric/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.5.0 +module-version: 0.6.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/servicefabric/armservicefabric/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/servicefabric/armservicefabric/ze_generated_example_operations_client_test.go index da504f11c8ed..2f296c06a881 100644 --- a/sdk/resourcemanager/servicefabric/armservicefabric/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/servicefabric/armservicefabric/ze_generated_example_operations_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ListOperations.json -func ExampleOperationsClient_List() { +func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleOperationsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(nil) + pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/servicefabric/armservicefabric/zz_generated_constants.go b/sdk/resourcemanager/servicefabric/armservicefabric/zz_generated_constants.go index 828ab02cb64e..e8e844df2498 100644 --- a/sdk/resourcemanager/servicefabric/armservicefabric/zz_generated_constants.go +++ b/sdk/resourcemanager/servicefabric/armservicefabric/zz_generated_constants.go @@ -10,7 +10,7 @@ package armservicefabric const ( moduleName = "armservicefabric" - moduleVersion = "v0.5.0" + moduleVersion = "v0.6.0" ) // AddOnFeatures - Available cluster add-on features diff --git a/sdk/resourcemanager/servicefabric/armservicefabric/zz_generated_operations_client.go b/sdk/resourcemanager/servicefabric/armservicefabric/zz_generated_operations_client.go index 222377301c1b..6a2ad64cac88 100644 --- a/sdk/resourcemanager/servicefabric/armservicefabric/zz_generated_operations_client.go +++ b/sdk/resourcemanager/servicefabric/armservicefabric/zz_generated_operations_client.go @@ -48,10 +48,10 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO return client, nil } -// List - Get the list of available Service Fabric resource provider API operations. +// NewListPager - Get the list of available Service Fabric resource provider API operations. // If the operation fails it returns an *azcore.ResponseError type. // options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. -func (client *OperationsClient) List(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { +func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[OperationsClientListResponse]{ More: func(page OperationsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/CHANGELOG.md b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/CHANGELOG.md index 50ea121a6764..eba240899eaf 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/CHANGELOG.md +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/CHANGELOG.md @@ -1,5 +1,41 @@ # Release History +## 0.4.0 (2022-04-18) +### Breaking Changes + +- Function `*SecretValueClient.List` has been removed +- Function `*NetworkClient.ListByResourceGroup` has been removed +- Function `*ServiceClient.List` has been removed +- Function `*SecretClient.ListByResourceGroup` has been removed +- Function `*VolumeClient.ListBySubscription` has been removed +- Function `*ApplicationClient.ListBySubscription` has been removed +- Function `*ServiceReplicaClient.List` has been removed +- Function `*GatewayClient.ListBySubscription` has been removed +- Function `*VolumeClient.ListByResourceGroup` has been removed +- Function `*OperationsClient.List` has been removed +- Function `*GatewayClient.ListByResourceGroup` has been removed +- Function `*NetworkClient.ListBySubscription` has been removed +- Function `*ApplicationClient.ListByResourceGroup` has been removed +- Function `*SecretClient.ListBySubscription` has been removed + +### Features Added + +- New function `*ServiceClient.NewListPager(string, string, *ServiceClientListOptions) *runtime.Pager[ServiceClientListResponse]` +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` +- New function `*VolumeClient.NewListBySubscriptionPager(*VolumeClientListBySubscriptionOptions) *runtime.Pager[VolumeClientListBySubscriptionResponse]` +- New function `*SecretClient.NewListBySubscriptionPager(*SecretClientListBySubscriptionOptions) *runtime.Pager[SecretClientListBySubscriptionResponse]` +- New function `*GatewayClient.NewListByResourceGroupPager(string, *GatewayClientListByResourceGroupOptions) *runtime.Pager[GatewayClientListByResourceGroupResponse]` +- New function `*SecretClient.NewListByResourceGroupPager(string, *SecretClientListByResourceGroupOptions) *runtime.Pager[SecretClientListByResourceGroupResponse]` +- New function `*NetworkClient.NewListBySubscriptionPager(*NetworkClientListBySubscriptionOptions) *runtime.Pager[NetworkClientListBySubscriptionResponse]` +- New function `*SecretValueClient.NewListPager(string, string, *SecretValueClientListOptions) *runtime.Pager[SecretValueClientListResponse]` +- New function `*ServiceReplicaClient.NewListPager(string, string, string, *ServiceReplicaClientListOptions) *runtime.Pager[ServiceReplicaClientListResponse]` +- New function `*ApplicationClient.NewListByResourceGroupPager(string, *ApplicationClientListByResourceGroupOptions) *runtime.Pager[ApplicationClientListByResourceGroupResponse]` +- New function `*NetworkClient.NewListByResourceGroupPager(string, *NetworkClientListByResourceGroupOptions) *runtime.Pager[NetworkClientListByResourceGroupResponse]` +- New function `*ApplicationClient.NewListBySubscriptionPager(*ApplicationClientListBySubscriptionOptions) *runtime.Pager[ApplicationClientListBySubscriptionResponse]` +- New function `*VolumeClient.NewListByResourceGroupPager(string, *VolumeClientListByResourceGroupOptions) *runtime.Pager[VolumeClientListByResourceGroupResponse]` +- New function `*GatewayClient.NewListBySubscriptionPager(*GatewayClientListBySubscriptionOptions) *runtime.Pager[GatewayClientListBySubscriptionResponse]` + + ## 0.3.0 (2022-04-13) ### Breaking Changes diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/autorest.md b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/autorest.md index 26bbf949af0f..9664bfbc107e 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/autorest.md +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/servicefabricmesh/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/servicefabricmesh/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/servicefabricmesh/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/servicefabricmesh/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.3.0 +module-version: 0.4.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_application_client_test.go b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_application_client_test.go index 41e414e091e1..56f5c1d6fc05 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_application_client_test.go +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_application_client_test.go @@ -131,7 +131,7 @@ func ExampleApplicationClient_Delete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/list_byResourceGroup.json -func ExampleApplicationClient_ListByResourceGroup() { +func ExampleApplicationClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -143,7 +143,7 @@ func ExampleApplicationClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -159,7 +159,7 @@ func ExampleApplicationClient_ListByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/list_bySubscriptionId.json -func ExampleApplicationClient_ListBySubscription() { +func ExampleApplicationClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -171,7 +171,7 @@ func ExampleApplicationClient_ListBySubscription() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListBySubscription(nil) + pager := client.NewListBySubscriptionPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_gateway_client_test.go b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_gateway_client_test.go index 056d681c96c0..d07720cb65bd 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_gateway_client_test.go +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_gateway_client_test.go @@ -145,7 +145,7 @@ func ExampleGatewayClient_Delete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/list_byResourceGroup.json -func ExampleGatewayClient_ListByResourceGroup() { +func ExampleGatewayClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -157,7 +157,7 @@ func ExampleGatewayClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -173,7 +173,7 @@ func ExampleGatewayClient_ListByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/list_bySubscriptionId.json -func ExampleGatewayClient_ListBySubscription() { +func ExampleGatewayClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -185,7 +185,7 @@ func ExampleGatewayClient_ListBySubscription() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListBySubscription(nil) + pager := client.NewListBySubscriptionPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_network_client_test.go b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_network_client_test.go index acec89488035..4c759e01d4c9 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_network_client_test.go +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_network_client_test.go @@ -100,7 +100,7 @@ func ExampleNetworkClient_Delete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/list_byResourceGroup.json -func ExampleNetworkClient_ListByResourceGroup() { +func ExampleNetworkClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -112,7 +112,7 @@ func ExampleNetworkClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -128,7 +128,7 @@ func ExampleNetworkClient_ListByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/list_bySubscriptionId.json -func ExampleNetworkClient_ListBySubscription() { +func ExampleNetworkClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -140,7 +140,7 @@ func ExampleNetworkClient_ListBySubscription() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListBySubscription(nil) + pager := client.NewListBySubscriptionPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_secret_client_test.go b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_secret_client_test.go index 4223e78f4985..e83cdd757d74 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_secret_client_test.go +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_secret_client_test.go @@ -100,7 +100,7 @@ func ExampleSecretClient_Delete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/list_byResourceGroup.json -func ExampleSecretClient_ListByResourceGroup() { +func ExampleSecretClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -112,7 +112,7 @@ func ExampleSecretClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -128,7 +128,7 @@ func ExampleSecretClient_ListByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/list_bySubscriptionId.json -func ExampleSecretClient_ListBySubscription() { +func ExampleSecretClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -140,7 +140,7 @@ func ExampleSecretClient_ListBySubscription() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListBySubscription(nil) + pager := client.NewListBySubscriptionPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_secretvalue_client_test.go b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_secretvalue_client_test.go index 0bcc9892c048..12b0ac29431a 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_secretvalue_client_test.go +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_secretvalue_client_test.go @@ -100,7 +100,7 @@ func ExampleSecretValueClient_Delete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/list.json -func ExampleSecretValueClient_List() { +func ExampleSecretValueClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -112,7 +112,7 @@ func ExampleSecretValueClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_service_client_test.go b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_service_client_test.go index 173de5ddcd5d..6642db5f7aaf 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_service_client_test.go +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_service_client_test.go @@ -43,7 +43,7 @@ func ExampleServiceClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/list.json -func ExampleServiceClient_List() { +func ExampleServiceClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -55,7 +55,7 @@ func ExampleServiceClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_servicereplica_client_test.go b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_servicereplica_client_test.go index 17b357996fff..c762becff4b3 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_servicereplica_client_test.go +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_servicereplica_client_test.go @@ -44,7 +44,7 @@ func ExampleServiceReplicaClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/replicas/list.json -func ExampleServiceReplicaClient_List() { +func ExampleServiceReplicaClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -56,7 +56,7 @@ func ExampleServiceReplicaClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", "", nil) diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_volume_client_test.go b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_volume_client_test.go index 84e816fb1c29..9a037941d5c1 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_volume_client_test.go +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/ze_generated_example_volume_client_test.go @@ -104,7 +104,7 @@ func ExampleVolumeClient_Delete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/list_byResourceGroup.json -func ExampleVolumeClient_ListByResourceGroup() { +func ExampleVolumeClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -116,7 +116,7 @@ func ExampleVolumeClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -132,7 +132,7 @@ func ExampleVolumeClient_ListByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/list_bySubscriptionId.json -func ExampleVolumeClient_ListBySubscription() { +func ExampleVolumeClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -144,7 +144,7 @@ func ExampleVolumeClient_ListBySubscription() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListBySubscription(nil) + pager := client.NewListBySubscriptionPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_application_client.go b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_application_client.go index 0f01754799e1..5bb6e189b241 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_application_client.go +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_application_client.go @@ -205,13 +205,13 @@ func (client *ApplicationClient) getHandleResponse(resp *http.Response) (Applica return result, nil } -// ListByResourceGroup - Gets the information about all application resources in a given resource group. The information include -// the description and other properties of the Application. +// NewListByResourceGroupPager - Gets the information about all application resources in a given resource group. The information +// include the description and other properties of the Application. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Azure resource group name // options - ApplicationClientListByResourceGroupOptions contains the optional parameters for the ApplicationClient.ListByResourceGroup // method. -func (client *ApplicationClient) ListByResourceGroup(resourceGroupName string, options *ApplicationClientListByResourceGroupOptions) *runtime.Pager[ApplicationClientListByResourceGroupResponse] { +func (client *ApplicationClient) NewListByResourceGroupPager(resourceGroupName string, options *ApplicationClientListByResourceGroupOptions) *runtime.Pager[ApplicationClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[ApplicationClientListByResourceGroupResponse]{ More: func(page ApplicationClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -270,12 +270,12 @@ func (client *ApplicationClient) listByResourceGroupHandleResponse(resp *http.Re return result, nil } -// ListBySubscription - Gets the information about all application resources in a given resource group. The information include -// the description and other properties of the application. +// NewListBySubscriptionPager - Gets the information about all application resources in a given resource group. The information +// include the description and other properties of the application. // If the operation fails it returns an *azcore.ResponseError type. // options - ApplicationClientListBySubscriptionOptions contains the optional parameters for the ApplicationClient.ListBySubscription // method. -func (client *ApplicationClient) ListBySubscription(options *ApplicationClientListBySubscriptionOptions) *runtime.Pager[ApplicationClientListBySubscriptionResponse] { +func (client *ApplicationClient) NewListBySubscriptionPager(options *ApplicationClientListBySubscriptionOptions) *runtime.Pager[ApplicationClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PageProcessor[ApplicationClientListBySubscriptionResponse]{ More: func(page ApplicationClientListBySubscriptionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_constants.go b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_constants.go index c9e91690f863..a14e8be3e8a0 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_constants.go +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_constants.go @@ -10,7 +10,7 @@ package armservicefabricmesh const ( moduleName = "armservicefabricmesh" - moduleVersion = "v0.3.0" + moduleVersion = "v0.4.0" ) // ApplicationScopedVolumeKind - Specifies the application-scoped volume kind. diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_gateway_client.go b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_gateway_client.go index 5e0c2b72bee8..54229b5327c5 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_gateway_client.go +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_gateway_client.go @@ -205,13 +205,13 @@ func (client *GatewayClient) getHandleResponse(resp *http.Response) (GatewayClie return result, nil } -// ListByResourceGroup - Gets the information about all gateway resources in a given resource group. The information include -// the description and other properties of the Gateway. +// NewListByResourceGroupPager - Gets the information about all gateway resources in a given resource group. The information +// include the description and other properties of the Gateway. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Azure resource group name // options - GatewayClientListByResourceGroupOptions contains the optional parameters for the GatewayClient.ListByResourceGroup // method. -func (client *GatewayClient) ListByResourceGroup(resourceGroupName string, options *GatewayClientListByResourceGroupOptions) *runtime.Pager[GatewayClientListByResourceGroupResponse] { +func (client *GatewayClient) NewListByResourceGroupPager(resourceGroupName string, options *GatewayClientListByResourceGroupOptions) *runtime.Pager[GatewayClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[GatewayClientListByResourceGroupResponse]{ More: func(page GatewayClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -270,12 +270,12 @@ func (client *GatewayClient) listByResourceGroupHandleResponse(resp *http.Respon return result, nil } -// ListBySubscription - Gets the information about all gateway resources in a given resource group. The information include -// the description and other properties of the gateway. +// NewListBySubscriptionPager - Gets the information about all gateway resources in a given resource group. The information +// include the description and other properties of the gateway. // If the operation fails it returns an *azcore.ResponseError type. // options - GatewayClientListBySubscriptionOptions contains the optional parameters for the GatewayClient.ListBySubscription // method. -func (client *GatewayClient) ListBySubscription(options *GatewayClientListBySubscriptionOptions) *runtime.Pager[GatewayClientListBySubscriptionResponse] { +func (client *GatewayClient) NewListBySubscriptionPager(options *GatewayClientListBySubscriptionOptions) *runtime.Pager[GatewayClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PageProcessor[GatewayClientListBySubscriptionResponse]{ More: func(page GatewayClientListBySubscriptionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_network_client.go b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_network_client.go index 88dc19ae925a..debdde3bca76 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_network_client.go +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_network_client.go @@ -204,13 +204,13 @@ func (client *NetworkClient) getHandleResponse(resp *http.Response) (NetworkClie return result, nil } -// ListByResourceGroup - Gets the information about all network resources in a given resource group. The information include -// the description and other properties of the Network. +// NewListByResourceGroupPager - Gets the information about all network resources in a given resource group. The information +// include the description and other properties of the Network. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Azure resource group name // options - NetworkClientListByResourceGroupOptions contains the optional parameters for the NetworkClient.ListByResourceGroup // method. -func (client *NetworkClient) ListByResourceGroup(resourceGroupName string, options *NetworkClientListByResourceGroupOptions) *runtime.Pager[NetworkClientListByResourceGroupResponse] { +func (client *NetworkClient) NewListByResourceGroupPager(resourceGroupName string, options *NetworkClientListByResourceGroupOptions) *runtime.Pager[NetworkClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[NetworkClientListByResourceGroupResponse]{ More: func(page NetworkClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -269,12 +269,12 @@ func (client *NetworkClient) listByResourceGroupHandleResponse(resp *http.Respon return result, nil } -// ListBySubscription - Gets the information about all network resources in a given resource group. The information include -// the description and other properties of the network. +// NewListBySubscriptionPager - Gets the information about all network resources in a given resource group. The information +// include the description and other properties of the network. // If the operation fails it returns an *azcore.ResponseError type. // options - NetworkClientListBySubscriptionOptions contains the optional parameters for the NetworkClient.ListBySubscription // method. -func (client *NetworkClient) ListBySubscription(options *NetworkClientListBySubscriptionOptions) *runtime.Pager[NetworkClientListBySubscriptionResponse] { +func (client *NetworkClient) NewListBySubscriptionPager(options *NetworkClientListBySubscriptionOptions) *runtime.Pager[NetworkClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PageProcessor[NetworkClientListBySubscriptionResponse]{ More: func(page NetworkClientListBySubscriptionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_operations_client.go b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_operations_client.go index 08c2af18b542..4fc84d9501f0 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_operations_client.go +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_operations_client.go @@ -48,10 +48,10 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO return client, nil } -// List - Lists all the available operations provided by Service Fabric SeaBreeze resource provider. +// NewListPager - Lists all the available operations provided by Service Fabric SeaBreeze resource provider. // If the operation fails it returns an *azcore.ResponseError type. // options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. -func (client *OperationsClient) List(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { +func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[OperationsClientListResponse]{ More: func(page OperationsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_secret_client.go b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_secret_client.go index 5114c3b9d0d3..6cff123ca7a6 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_secret_client.go +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_secret_client.go @@ -204,13 +204,13 @@ func (client *SecretClient) getHandleResponse(resp *http.Response) (SecretClient return result, nil } -// ListByResourceGroup - Gets the information about all secret resources in a given resource group. The information include -// the description and other properties of the Secret. +// NewListByResourceGroupPager - Gets the information about all secret resources in a given resource group. The information +// include the description and other properties of the Secret. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Azure resource group name // options - SecretClientListByResourceGroupOptions contains the optional parameters for the SecretClient.ListByResourceGroup // method. -func (client *SecretClient) ListByResourceGroup(resourceGroupName string, options *SecretClientListByResourceGroupOptions) *runtime.Pager[SecretClientListByResourceGroupResponse] { +func (client *SecretClient) NewListByResourceGroupPager(resourceGroupName string, options *SecretClientListByResourceGroupOptions) *runtime.Pager[SecretClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[SecretClientListByResourceGroupResponse]{ More: func(page SecretClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -269,12 +269,12 @@ func (client *SecretClient) listByResourceGroupHandleResponse(resp *http.Respons return result, nil } -// ListBySubscription - Gets the information about all secret resources in a given resource group. The information include -// the description and other properties of the secret. +// NewListBySubscriptionPager - Gets the information about all secret resources in a given resource group. The information +// include the description and other properties of the secret. // If the operation fails it returns an *azcore.ResponseError type. // options - SecretClientListBySubscriptionOptions contains the optional parameters for the SecretClient.ListBySubscription // method. -func (client *SecretClient) ListBySubscription(options *SecretClientListBySubscriptionOptions) *runtime.Pager[SecretClientListBySubscriptionResponse] { +func (client *SecretClient) NewListBySubscriptionPager(options *SecretClientListBySubscriptionOptions) *runtime.Pager[SecretClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PageProcessor[SecretClientListBySubscriptionResponse]{ More: func(page SecretClientListBySubscriptionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_secretvalue_client.go b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_secretvalue_client.go index 6d18f4087713..76d5178b2f89 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_secretvalue_client.go +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_secretvalue_client.go @@ -211,13 +211,13 @@ func (client *SecretValueClient) getHandleResponse(resp *http.Response) (SecretV return result, nil } -// List - Gets information about all secret value resources of the specified secret resource. The information includes the -// names of the secret value resources, but not the actual values. +// NewListPager - Gets information about all secret value resources of the specified secret resource. The information includes +// the names of the secret value resources, but not the actual values. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Azure resource group name // secretResourceName - The name of the secret resource. // options - SecretValueClientListOptions contains the optional parameters for the SecretValueClient.List method. -func (client *SecretValueClient) List(resourceGroupName string, secretResourceName string, options *SecretValueClientListOptions) *runtime.Pager[SecretValueClientListResponse] { +func (client *SecretValueClient) NewListPager(resourceGroupName string, secretResourceName string, options *SecretValueClientListOptions) *runtime.Pager[SecretValueClientListResponse] { return runtime.NewPager(runtime.PageProcessor[SecretValueClientListResponse]{ More: func(page SecretValueClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_service_client.go b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_service_client.go index a6e596b4bb8f..d920b1714e6a 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_service_client.go +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_service_client.go @@ -109,13 +109,13 @@ func (client *ServiceClient) getHandleResponse(resp *http.Response) (ServiceClie return result, nil } -// List - Gets the information about all services of an application resource. The information include the description and -// other properties of the Service. +// NewListPager - Gets the information about all services of an application resource. The information include the description +// and other properties of the Service. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Azure resource group name // applicationResourceName - The identity of the application. // options - ServiceClientListOptions contains the optional parameters for the ServiceClient.List method. -func (client *ServiceClient) List(resourceGroupName string, applicationResourceName string, options *ServiceClientListOptions) *runtime.Pager[ServiceClientListResponse] { +func (client *ServiceClient) NewListPager(resourceGroupName string, applicationResourceName string, options *ServiceClientListOptions) *runtime.Pager[ServiceClientListResponse] { return runtime.NewPager(runtime.PageProcessor[ServiceClientListResponse]{ More: func(page ServiceClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_servicereplica_client.go b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_servicereplica_client.go index 1a91f43a7927..f5322552cf14 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_servicereplica_client.go +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_servicereplica_client.go @@ -111,14 +111,14 @@ func (client *ServiceReplicaClient) getHandleResponse(resp *http.Response) (Serv return result, nil } -// List - Gets the information about all replicas of a given service of an application. The information includes the runtime -// properties of the replica instance. +// NewListPager - Gets the information about all replicas of a given service of an application. The information includes the +// runtime properties of the replica instance. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Azure resource group name // applicationResourceName - The identity of the application. // serviceResourceName - The identity of the service. // options - ServiceReplicaClientListOptions contains the optional parameters for the ServiceReplicaClient.List method. -func (client *ServiceReplicaClient) List(resourceGroupName string, applicationResourceName string, serviceResourceName string, options *ServiceReplicaClientListOptions) *runtime.Pager[ServiceReplicaClientListResponse] { +func (client *ServiceReplicaClient) NewListPager(resourceGroupName string, applicationResourceName string, serviceResourceName string, options *ServiceReplicaClientListOptions) *runtime.Pager[ServiceReplicaClientListResponse] { return runtime.NewPager(runtime.PageProcessor[ServiceReplicaClientListResponse]{ More: func(page ServiceReplicaClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_volume_client.go b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_volume_client.go index 5bcfbe6cfda5..fdacf4d225d4 100644 --- a/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_volume_client.go +++ b/sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_volume_client.go @@ -204,13 +204,13 @@ func (client *VolumeClient) getHandleResponse(resp *http.Response) (VolumeClient return result, nil } -// ListByResourceGroup - Gets the information about all volume resources in a given resource group. The information include -// the description and other properties of the Volume. +// NewListByResourceGroupPager - Gets the information about all volume resources in a given resource group. The information +// include the description and other properties of the Volume. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Azure resource group name // options - VolumeClientListByResourceGroupOptions contains the optional parameters for the VolumeClient.ListByResourceGroup // method. -func (client *VolumeClient) ListByResourceGroup(resourceGroupName string, options *VolumeClientListByResourceGroupOptions) *runtime.Pager[VolumeClientListByResourceGroupResponse] { +func (client *VolumeClient) NewListByResourceGroupPager(resourceGroupName string, options *VolumeClientListByResourceGroupOptions) *runtime.Pager[VolumeClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[VolumeClientListByResourceGroupResponse]{ More: func(page VolumeClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -269,12 +269,12 @@ func (client *VolumeClient) listByResourceGroupHandleResponse(resp *http.Respons return result, nil } -// ListBySubscription - Gets the information about all volume resources in a given resource group. The information include -// the description and other properties of the volume. +// NewListBySubscriptionPager - Gets the information about all volume resources in a given resource group. The information +// include the description and other properties of the volume. // If the operation fails it returns an *azcore.ResponseError type. // options - VolumeClientListBySubscriptionOptions contains the optional parameters for the VolumeClient.ListBySubscription // method. -func (client *VolumeClient) ListBySubscription(options *VolumeClientListBySubscriptionOptions) *runtime.Pager[VolumeClientListBySubscriptionResponse] { +func (client *VolumeClient) NewListBySubscriptionPager(options *VolumeClientListBySubscriptionOptions) *runtime.Pager[VolumeClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PageProcessor[VolumeClientListBySubscriptionResponse]{ More: func(page VolumeClientListBySubscriptionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/servicelinker/armservicelinker/CHANGELOG.md b/sdk/resourcemanager/servicelinker/armservicelinker/CHANGELOG.md index 05386c4ab37c..7c63c4595e4d 100644 --- a/sdk/resourcemanager/servicelinker/armservicelinker/CHANGELOG.md +++ b/sdk/resourcemanager/servicelinker/armservicelinker/CHANGELOG.md @@ -1,5 +1,26 @@ # Release History +## 0.4.0 (2022-04-18) +### Breaking Changes + +- Type of `ValidationResultItem.Result` has been changed from `*ValidationItemResult` to `*ValidationResultStatus` +- Const `ValidationItemResultWarning` has been removed +- Const `ValidationItemResultSuccess` has been removed +- Const `ValidationItemResultFailed` has been removed +- Function `*OperationsClient.List` has been removed +- Function `PossibleValidationItemResultValues` has been removed +- Function `*LinkerClient.List` has been removed + +### Features Added + +- New const `ValidationResultStatusFailed` +- New const `ValidationResultStatusWarning` +- New const `ValidationResultStatusSuccess` +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` +- New function `PossibleValidationResultStatusValues() []ValidationResultStatus` +- New function `*LinkerClient.NewListPager(string, *LinkerClientListOptions) *runtime.Pager[LinkerClientListResponse]` + + ## 0.3.0 (2022-04-13) ### Breaking Changes diff --git a/sdk/resourcemanager/servicelinker/armservicelinker/autorest.md b/sdk/resourcemanager/servicelinker/armservicelinker/autorest.md index f31e706a5bbd..f832d78a8968 100644 --- a/sdk/resourcemanager/servicelinker/armservicelinker/autorest.md +++ b/sdk/resourcemanager/servicelinker/armservicelinker/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/servicelinker/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/servicelinker/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/servicelinker/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/servicelinker/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.3.0 +module-version: 0.4.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/servicelinker/armservicelinker/ze_generated_example_linker_client_test.go b/sdk/resourcemanager/servicelinker/armservicelinker/ze_generated_example_linker_client_test.go index 73f293587a0d..7b7876991fa7 100644 --- a/sdk/resourcemanager/servicelinker/armservicelinker/ze_generated_example_linker_client_test.go +++ b/sdk/resourcemanager/servicelinker/armservicelinker/ze_generated_example_linker_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/examples/LinkList.json -func ExampleLinkerClient_List() { +func ExampleLinkerClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleLinkerClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) diff --git a/sdk/resourcemanager/servicelinker/armservicelinker/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/servicelinker/armservicelinker/ze_generated_example_operations_client_test.go index bfc2115750bc..dc6273de7847 100644 --- a/sdk/resourcemanager/servicelinker/armservicelinker/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/servicelinker/armservicelinker/ze_generated_example_operations_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/examples/OperationsList.json -func ExampleOperationsClient_List() { +func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleOperationsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(nil) + pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/servicelinker/armservicelinker/zz_generated_constants.go b/sdk/resourcemanager/servicelinker/armservicelinker/zz_generated_constants.go index 4b9dbc7d3306..0c4181bbd3a3 100644 --- a/sdk/resourcemanager/servicelinker/armservicelinker/zz_generated_constants.go +++ b/sdk/resourcemanager/servicelinker/armservicelinker/zz_generated_constants.go @@ -10,7 +10,7 @@ package armservicelinker const ( moduleName = "armservicelinker" - moduleVersion = "v0.3.0" + moduleVersion = "v0.4.0" ) // ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. @@ -174,20 +174,20 @@ func PossibleVNetSolutionTypeValues() []VNetSolutionType { } } -// ValidationItemResult - The result of validation -type ValidationItemResult string +// ValidationResultStatus - The result of validation +type ValidationResultStatus string const ( - ValidationItemResultFailed ValidationItemResult = "failed" - ValidationItemResultSuccess ValidationItemResult = "success" - ValidationItemResultWarning ValidationItemResult = "warning" + ValidationResultStatusFailed ValidationResultStatus = "failed" + ValidationResultStatusSuccess ValidationResultStatus = "success" + ValidationResultStatusWarning ValidationResultStatus = "warning" ) -// PossibleValidationItemResultValues returns the possible values for the ValidationItemResult const type. -func PossibleValidationItemResultValues() []ValidationItemResult { - return []ValidationItemResult{ - ValidationItemResultFailed, - ValidationItemResultSuccess, - ValidationItemResultWarning, +// PossibleValidationResultStatusValues returns the possible values for the ValidationResultStatus const type. +func PossibleValidationResultStatusValues() []ValidationResultStatus { + return []ValidationResultStatus{ + ValidationResultStatusFailed, + ValidationResultStatusSuccess, + ValidationResultStatusWarning, } } diff --git a/sdk/resourcemanager/servicelinker/armservicelinker/zz_generated_linker_client.go b/sdk/resourcemanager/servicelinker/armservicelinker/zz_generated_linker_client.go index dc87b4c65ac6..f059783a7a73 100644 --- a/sdk/resourcemanager/servicelinker/armservicelinker/zz_generated_linker_client.go +++ b/sdk/resourcemanager/servicelinker/armservicelinker/zz_generated_linker_client.go @@ -211,11 +211,11 @@ func (client *LinkerClient) getHandleResponse(resp *http.Response) (LinkerClient return result, nil } -// List - Returns list of Linkers which connects to the resource. +// NewListPager - Returns list of Linkers which connects to the resource. // If the operation fails it returns an *azcore.ResponseError type. // resourceURI - The fully qualified Azure Resource manager identifier of the resource to be connected. // options - LinkerClientListOptions contains the optional parameters for the LinkerClient.List method. -func (client *LinkerClient) List(resourceURI string, options *LinkerClientListOptions) *runtime.Pager[LinkerClientListResponse] { +func (client *LinkerClient) NewListPager(resourceURI string, options *LinkerClientListOptions) *runtime.Pager[LinkerClientListResponse] { return runtime.NewPager(runtime.PageProcessor[LinkerClientListResponse]{ More: func(page LinkerClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/servicelinker/armservicelinker/zz_generated_models.go b/sdk/resourcemanager/servicelinker/armservicelinker/zz_generated_models.go index 6a0928b1ee5d..b627adc978d4 100644 --- a/sdk/resourcemanager/servicelinker/armservicelinker/zz_generated_models.go +++ b/sdk/resourcemanager/servicelinker/armservicelinker/zz_generated_models.go @@ -493,7 +493,7 @@ type ValidationResultItem struct { Name *string `json:"name,omitempty"` // The result of validation - Result *ValidationItemResult `json:"result,omitempty"` + Result *ValidationResultStatus `json:"result,omitempty"` } // ValueSecretInfo - The secret info when type is rawValue. It's for scenarios that user input the secret. diff --git a/sdk/resourcemanager/servicelinker/armservicelinker/zz_generated_operations_client.go b/sdk/resourcemanager/servicelinker/armservicelinker/zz_generated_operations_client.go index adba9b9b08cf..0a5860b54914 100644 --- a/sdk/resourcemanager/servicelinker/armservicelinker/zz_generated_operations_client.go +++ b/sdk/resourcemanager/servicelinker/armservicelinker/zz_generated_operations_client.go @@ -48,10 +48,10 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO return client, nil } -// List - Lists the available ServiceLinker REST API operations. +// NewListPager - Lists the available ServiceLinker REST API operations. // If the operation fails it returns an *azcore.ResponseError type. // options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. -func (client *OperationsClient) List(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { +func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[OperationsClientListResponse]{ More: func(page OperationsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/signalr/armsignalr/CHANGELOG.md b/sdk/resourcemanager/signalr/armsignalr/CHANGELOG.md index 2b417070b8ed..dbb12a125e73 100644 --- a/sdk/resourcemanager/signalr/armsignalr/CHANGELOG.md +++ b/sdk/resourcemanager/signalr/armsignalr/CHANGELOG.md @@ -1,5 +1,31 @@ # Release History +## 0.5.0 (2022-04-18) +### Breaking Changes + +- Function `*Client.ListByResourceGroup` has been removed +- Function `*SharedPrivateLinkResourcesClient.List` has been removed +- Function `*OperationsClient.List` has been removed +- Function `*PrivateEndpointConnectionsClient.List` has been removed +- Function `*PrivateLinkResourcesClient.List` has been removed +- Function `*CustomDomainsClient.List` has been removed +- Function `*UsagesClient.List` has been removed +- Function `*CustomCertificatesClient.List` has been removed +- Function `*Client.ListBySubscription` has been removed + +### Features Added + +- New function `*Client.NewListByResourceGroupPager(string, *ClientListByResourceGroupOptions) *runtime.Pager[ClientListByResourceGroupResponse]` +- New function `*Client.NewListBySubscriptionPager(*ClientListBySubscriptionOptions) *runtime.Pager[ClientListBySubscriptionResponse]` +- New function `*PrivateEndpointConnectionsClient.NewListPager(string, string, *PrivateEndpointConnectionsClientListOptions) *runtime.Pager[PrivateEndpointConnectionsClientListResponse]` +- New function `*SharedPrivateLinkResourcesClient.NewListPager(string, string, *SharedPrivateLinkResourcesClientListOptions) *runtime.Pager[SharedPrivateLinkResourcesClientListResponse]` +- New function `*UsagesClient.NewListPager(string, *UsagesClientListOptions) *runtime.Pager[UsagesClientListResponse]` +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` +- New function `*PrivateLinkResourcesClient.NewListPager(string, string, *PrivateLinkResourcesClientListOptions) *runtime.Pager[PrivateLinkResourcesClientListResponse]` +- New function `*CustomCertificatesClient.NewListPager(string, string, *CustomCertificatesClientListOptions) *runtime.Pager[CustomCertificatesClientListResponse]` +- New function `*CustomDomainsClient.NewListPager(string, string, *CustomDomainsClientListOptions) *runtime.Pager[CustomDomainsClientListResponse]` + + ## 0.4.0 (2022-04-13) ### Breaking Changes diff --git a/sdk/resourcemanager/signalr/armsignalr/autorest.md b/sdk/resourcemanager/signalr/armsignalr/autorest.md index eab98a4dacb7..c46165b4017b 100644 --- a/sdk/resourcemanager/signalr/armsignalr/autorest.md +++ b/sdk/resourcemanager/signalr/armsignalr/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/signalr/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/signalr/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/signalr/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/signalr/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.4.0 +module-version: 0.5.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_operations_client_test.go index f37928bcca45..4611734f7c12 100644 --- a/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_operations_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/Operations_List.json -func ExampleOperationsClient_List() { +func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleOperationsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(nil) + pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalr_client_test.go b/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalr_client_test.go index 894d70680d50..8539bd8efaf4 100644 --- a/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalr_client_test.go +++ b/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalr_client_test.go @@ -48,7 +48,7 @@ func ExampleClient_CheckNameAvailability() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalR_ListBySubscription.json -func ExampleClient_ListBySubscription() { +func ExampleClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -60,7 +60,7 @@ func ExampleClient_ListBySubscription() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListBySubscription(nil) + pager := client.NewListBySubscriptionPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { @@ -75,7 +75,7 @@ func ExampleClient_ListBySubscription() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalR_ListByResourceGroup.json -func ExampleClient_ListByResourceGroup() { +func ExampleClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -87,7 +87,7 @@ func ExampleClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) diff --git a/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalrcustomcertificates_client_test.go b/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalrcustomcertificates_client_test.go index 0693fd5adff3..322fc1a93a3a 100644 --- a/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalrcustomcertificates_client_test.go +++ b/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalrcustomcertificates_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomCertificates_List.json -func ExampleCustomCertificatesClient_List() { +func ExampleCustomCertificatesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleCustomCertificatesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalrcustomdomains_client_test.go b/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalrcustomdomains_client_test.go index 10a1f6794f52..13fd736fb520 100644 --- a/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalrcustomdomains_client_test.go +++ b/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalrcustomdomains_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomDomains_List.json -func ExampleCustomDomainsClient_List() { +func ExampleCustomDomainsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleCustomDomainsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalrprivateendpointconnections_client_test.go b/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalrprivateendpointconnections_client_test.go index bbfd47d83554..96b868fde023 100644 --- a/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalrprivateendpointconnections_client_test.go +++ b/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalrprivateendpointconnections_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRPrivateEndpointConnections_List.json -func ExamplePrivateEndpointConnectionsClient_List() { +func ExamplePrivateEndpointConnectionsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExamplePrivateEndpointConnectionsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalrprivatelinkresources_client_test.go b/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalrprivatelinkresources_client_test.go index a73549b8a816..f4671e57f66d 100644 --- a/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalrprivatelinkresources_client_test.go +++ b/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalrprivatelinkresources_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRPrivateLinkResources_List.json -func ExamplePrivateLinkResourcesClient_List() { +func ExamplePrivateLinkResourcesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExamplePrivateLinkResourcesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalrsharedprivatelinkresources_client_test.go b/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalrsharedprivatelinkresources_client_test.go index 41fb50d3c4ea..e61543feacee 100644 --- a/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalrsharedprivatelinkresources_client_test.go +++ b/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_signalrsharedprivatelinkresources_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRSharedPrivateLinkResources_List.json -func ExampleSharedPrivateLinkResourcesClient_List() { +func ExampleSharedPrivateLinkResourcesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleSharedPrivateLinkResourcesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_usages_client_test.go b/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_usages_client_test.go index bf0cd6f8188e..84bdebf16996 100644 --- a/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_usages_client_test.go +++ b/sdk/resourcemanager/signalr/armsignalr/ze_generated_example_usages_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/Usages_List.json -func ExampleUsagesClient_List() { +func ExampleUsagesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleUsagesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) diff --git a/sdk/resourcemanager/signalr/armsignalr/zz_generated_client.go b/sdk/resourcemanager/signalr/armsignalr/zz_generated_client.go index b6262ccc1c22..805df5fb48b5 100644 --- a/sdk/resourcemanager/signalr/armsignalr/zz_generated_client.go +++ b/sdk/resourcemanager/signalr/armsignalr/zz_generated_client.go @@ -285,12 +285,12 @@ func (client *Client) getHandleResponse(resp *http.Response) (ClientGetResponse, return result, nil } -// ListByResourceGroup - Handles requests to list all resources in a resource group. +// NewListByResourceGroupPager - Handles requests to list all resources in a resource group. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // options - ClientListByResourceGroupOptions contains the optional parameters for the Client.ListByResourceGroup method. -func (client *Client) ListByResourceGroup(resourceGroupName string, options *ClientListByResourceGroupOptions) *runtime.Pager[ClientListByResourceGroupResponse] { +func (client *Client) NewListByResourceGroupPager(resourceGroupName string, options *ClientListByResourceGroupOptions) *runtime.Pager[ClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[ClientListByResourceGroupResponse]{ More: func(page ClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -349,10 +349,10 @@ func (client *Client) listByResourceGroupHandleResponse(resp *http.Response) (Cl return result, nil } -// ListBySubscription - Handles requests to list all resources in a subscription. +// NewListBySubscriptionPager - Handles requests to list all resources in a subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - ClientListBySubscriptionOptions contains the optional parameters for the Client.ListBySubscription method. -func (client *Client) ListBySubscription(options *ClientListBySubscriptionOptions) *runtime.Pager[ClientListBySubscriptionResponse] { +func (client *Client) NewListBySubscriptionPager(options *ClientListBySubscriptionOptions) *runtime.Pager[ClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PageProcessor[ClientListBySubscriptionResponse]{ More: func(page ClientListBySubscriptionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/signalr/armsignalr/zz_generated_constants.go b/sdk/resourcemanager/signalr/armsignalr/zz_generated_constants.go index d9b2fcad5d01..a9bb7d907c75 100644 --- a/sdk/resourcemanager/signalr/armsignalr/zz_generated_constants.go +++ b/sdk/resourcemanager/signalr/armsignalr/zz_generated_constants.go @@ -10,7 +10,7 @@ package armsignalr const ( moduleName = "armsignalr" - moduleVersion = "v0.4.0" + moduleVersion = "v0.5.0" ) // ACLAction - Azure Networking ACL Action. diff --git a/sdk/resourcemanager/signalr/armsignalr/zz_generated_customcertificates_client.go b/sdk/resourcemanager/signalr/armsignalr/zz_generated_customcertificates_client.go index 231039b365c6..5673d59cecd6 100644 --- a/sdk/resourcemanager/signalr/armsignalr/zz_generated_customcertificates_client.go +++ b/sdk/resourcemanager/signalr/armsignalr/zz_generated_customcertificates_client.go @@ -236,13 +236,13 @@ func (client *CustomCertificatesClient) getHandleResponse(resp *http.Response) ( return result, nil } -// List - List all custom certificates. +// NewListPager - List all custom certificates. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // resourceName - The name of the resource. // options - CustomCertificatesClientListOptions contains the optional parameters for the CustomCertificatesClient.List method. -func (client *CustomCertificatesClient) List(resourceGroupName string, resourceName string, options *CustomCertificatesClientListOptions) *runtime.Pager[CustomCertificatesClientListResponse] { +func (client *CustomCertificatesClient) NewListPager(resourceGroupName string, resourceName string, options *CustomCertificatesClientListOptions) *runtime.Pager[CustomCertificatesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[CustomCertificatesClientListResponse]{ More: func(page CustomCertificatesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/signalr/armsignalr/zz_generated_customdomains_client.go b/sdk/resourcemanager/signalr/armsignalr/zz_generated_customdomains_client.go index b940546b0388..0797c0ea2a1c 100644 --- a/sdk/resourcemanager/signalr/armsignalr/zz_generated_customdomains_client.go +++ b/sdk/resourcemanager/signalr/armsignalr/zz_generated_customdomains_client.go @@ -250,13 +250,13 @@ func (client *CustomDomainsClient) getHandleResponse(resp *http.Response) (Custo return result, nil } -// List - List all custom domains. +// NewListPager - List all custom domains. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // resourceName - The name of the resource. // options - CustomDomainsClientListOptions contains the optional parameters for the CustomDomainsClient.List method. -func (client *CustomDomainsClient) List(resourceGroupName string, resourceName string, options *CustomDomainsClientListOptions) *runtime.Pager[CustomDomainsClientListResponse] { +func (client *CustomDomainsClient) NewListPager(resourceGroupName string, resourceName string, options *CustomDomainsClientListOptions) *runtime.Pager[CustomDomainsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[CustomDomainsClientListResponse]{ More: func(page CustomDomainsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/signalr/armsignalr/zz_generated_operations_client.go b/sdk/resourcemanager/signalr/armsignalr/zz_generated_operations_client.go index 0ccc7c70ae81..8f7483a8c255 100644 --- a/sdk/resourcemanager/signalr/armsignalr/zz_generated_operations_client.go +++ b/sdk/resourcemanager/signalr/armsignalr/zz_generated_operations_client.go @@ -48,10 +48,10 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO return client, nil } -// List - Lists all of the available REST API operations of the Microsoft.SignalRService provider. +// NewListPager - Lists all of the available REST API operations of the Microsoft.SignalRService provider. // If the operation fails it returns an *azcore.ResponseError type. // options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. -func (client *OperationsClient) List(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { +func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[OperationsClientListResponse]{ More: func(page OperationsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/signalr/armsignalr/zz_generated_privateendpointconnections_client.go b/sdk/resourcemanager/signalr/armsignalr/zz_generated_privateendpointconnections_client.go index 9f5275aa4fe7..e3922d1170d8 100644 --- a/sdk/resourcemanager/signalr/armsignalr/zz_generated_privateendpointconnections_client.go +++ b/sdk/resourcemanager/signalr/armsignalr/zz_generated_privateendpointconnections_client.go @@ -184,14 +184,14 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res return result, nil } -// List - List private endpoint connections +// NewListPager - List private endpoint connections // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // resourceName - The name of the resource. // options - PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.List // method. -func (client *PrivateEndpointConnectionsClient) List(resourceGroupName string, resourceName string, options *PrivateEndpointConnectionsClientListOptions) *runtime.Pager[PrivateEndpointConnectionsClientListResponse] { +func (client *PrivateEndpointConnectionsClient) NewListPager(resourceGroupName string, resourceName string, options *PrivateEndpointConnectionsClientListOptions) *runtime.Pager[PrivateEndpointConnectionsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[PrivateEndpointConnectionsClientListResponse]{ More: func(page PrivateEndpointConnectionsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/signalr/armsignalr/zz_generated_privatelinkresources_client.go b/sdk/resourcemanager/signalr/armsignalr/zz_generated_privatelinkresources_client.go index b8f96a91de4d..fd6ae0e4e7d3 100644 --- a/sdk/resourcemanager/signalr/armsignalr/zz_generated_privatelinkresources_client.go +++ b/sdk/resourcemanager/signalr/armsignalr/zz_generated_privatelinkresources_client.go @@ -55,14 +55,14 @@ func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.Toke return client, nil } -// List - Get the private link resources that need to be created for a resource. +// NewListPager - Get the private link resources that need to be created for a resource. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // resourceName - The name of the resource. // options - PrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkResourcesClient.List // method. -func (client *PrivateLinkResourcesClient) List(resourceGroupName string, resourceName string, options *PrivateLinkResourcesClientListOptions) *runtime.Pager[PrivateLinkResourcesClientListResponse] { +func (client *PrivateLinkResourcesClient) NewListPager(resourceGroupName string, resourceName string, options *PrivateLinkResourcesClientListOptions) *runtime.Pager[PrivateLinkResourcesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[PrivateLinkResourcesClientListResponse]{ More: func(page PrivateLinkResourcesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/signalr/armsignalr/zz_generated_sharedprivatelinkresources_client.go b/sdk/resourcemanager/signalr/armsignalr/zz_generated_sharedprivatelinkresources_client.go index ba6bdd6e9692..f1e62a8945e2 100644 --- a/sdk/resourcemanager/signalr/armsignalr/zz_generated_sharedprivatelinkresources_client.go +++ b/sdk/resourcemanager/signalr/armsignalr/zz_generated_sharedprivatelinkresources_client.go @@ -252,14 +252,14 @@ func (client *SharedPrivateLinkResourcesClient) getHandleResponse(resp *http.Res return result, nil } -// List - List shared private link resources +// NewListPager - List shared private link resources // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // resourceName - The name of the resource. // options - SharedPrivateLinkResourcesClientListOptions contains the optional parameters for the SharedPrivateLinkResourcesClient.List // method. -func (client *SharedPrivateLinkResourcesClient) List(resourceGroupName string, resourceName string, options *SharedPrivateLinkResourcesClientListOptions) *runtime.Pager[SharedPrivateLinkResourcesClientListResponse] { +func (client *SharedPrivateLinkResourcesClient) NewListPager(resourceGroupName string, resourceName string, options *SharedPrivateLinkResourcesClientListOptions) *runtime.Pager[SharedPrivateLinkResourcesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[SharedPrivateLinkResourcesClientListResponse]{ More: func(page SharedPrivateLinkResourcesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/signalr/armsignalr/zz_generated_usages_client.go b/sdk/resourcemanager/signalr/armsignalr/zz_generated_usages_client.go index e94d74d44cfa..beb512d62182 100644 --- a/sdk/resourcemanager/signalr/armsignalr/zz_generated_usages_client.go +++ b/sdk/resourcemanager/signalr/armsignalr/zz_generated_usages_client.go @@ -55,11 +55,11 @@ func NewUsagesClient(subscriptionID string, credential azcore.TokenCredential, o return client, nil } -// List - List resource usage quotas by location. +// NewListPager - List resource usage quotas by location. // If the operation fails it returns an *azcore.ResponseError type. // location - the location like "eastus" // options - UsagesClientListOptions contains the optional parameters for the UsagesClient.List method. -func (client *UsagesClient) List(location string, options *UsagesClientListOptions) *runtime.Pager[UsagesClientListResponse] { +func (client *UsagesClient) NewListPager(location string, options *UsagesClientListOptions) *runtime.Pager[UsagesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[UsagesClientListResponse]{ More: func(page UsagesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/solutions/armmanagedapplications/CHANGELOG.md b/sdk/resourcemanager/solutions/armmanagedapplications/CHANGELOG.md index 451dcffe8444..676090ad7cda 100644 --- a/sdk/resourcemanager/solutions/armmanagedapplications/CHANGELOG.md +++ b/sdk/resourcemanager/solutions/armmanagedapplications/CHANGELOG.md @@ -1,5 +1,23 @@ # Release History +## 0.4.0 (2022-04-18) +### Breaking Changes + +- Function `*ApplicationDefinitionsClient.ListBySubscription` has been removed +- Function `*ApplicationClient.ListOperations` has been removed +- Function `*ApplicationsClient.ListByResourceGroup` has been removed +- Function `*ApplicationsClient.ListBySubscription` has been removed +- Function `*ApplicationDefinitionsClient.ListByResourceGroup` has been removed + +### Features Added + +- New function `*ApplicationsClient.NewListBySubscriptionPager(*ApplicationsClientListBySubscriptionOptions) *runtime.Pager[ApplicationsClientListBySubscriptionResponse]` +- New function `*ApplicationsClient.NewListByResourceGroupPager(string, *ApplicationsClientListByResourceGroupOptions) *runtime.Pager[ApplicationsClientListByResourceGroupResponse]` +- New function `*ApplicationDefinitionsClient.NewListBySubscriptionPager(*ApplicationDefinitionsClientListBySubscriptionOptions) *runtime.Pager[ApplicationDefinitionsClientListBySubscriptionResponse]` +- New function `*ApplicationClient.NewListOperationsPager(*ApplicationClientListOperationsOptions) *runtime.Pager[ApplicationClientListOperationsResponse]` +- New function `*ApplicationDefinitionsClient.NewListByResourceGroupPager(string, *ApplicationDefinitionsClientListByResourceGroupOptions) *runtime.Pager[ApplicationDefinitionsClientListByResourceGroupResponse]` + + ## 0.3.0 (2022-04-13) ### Breaking Changes diff --git a/sdk/resourcemanager/solutions/armmanagedapplications/autorest.md b/sdk/resourcemanager/solutions/armmanagedapplications/autorest.md index 59fed3801560..38d27a471586 100644 --- a/sdk/resourcemanager/solutions/armmanagedapplications/autorest.md +++ b/sdk/resourcemanager/solutions/armmanagedapplications/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/solutions/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/solutions/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/solutions/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/solutions/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.3.0 +module-version: 0.4.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/solutions/armmanagedapplications/ze_generated_example_applicationclient_client_test.go b/sdk/resourcemanager/solutions/armmanagedapplications/ze_generated_example_applicationclient_client_test.go index ac9a5aa1ee9c..e8a90f0c96d0 100644 --- a/sdk/resourcemanager/solutions/armmanagedapplications/ze_generated_example_applicationclient_client_test.go +++ b/sdk/resourcemanager/solutions/armmanagedapplications/ze_generated_example_applicationclient_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listSolutionsOperations.json -func ExampleApplicationClient_ListOperations() { +func ExampleApplicationClient_NewListOperationsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleApplicationClient_ListOperations() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListOperations(nil) + pager := client.NewListOperationsPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/solutions/armmanagedapplications/ze_generated_example_applicationdefinitions_client_test.go b/sdk/resourcemanager/solutions/armmanagedapplications/ze_generated_example_applicationdefinitions_client_test.go index 325553edb317..d69070c1eca9 100644 --- a/sdk/resourcemanager/solutions/armmanagedapplications/ze_generated_example_applicationdefinitions_client_test.go +++ b/sdk/resourcemanager/solutions/armmanagedapplications/ze_generated_example_applicationdefinitions_client_test.go @@ -146,7 +146,7 @@ func ExampleApplicationDefinitionsClient_Update() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listApplicationDefinitionsByResourceGroup.json -func ExampleApplicationDefinitionsClient_ListByResourceGroup() { +func ExampleApplicationDefinitionsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -158,7 +158,7 @@ func ExampleApplicationDefinitionsClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -174,7 +174,7 @@ func ExampleApplicationDefinitionsClient_ListByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listApplicationDefinitionsByResourceGroup.json -func ExampleApplicationDefinitionsClient_ListBySubscription() { +func ExampleApplicationDefinitionsClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -186,7 +186,7 @@ func ExampleApplicationDefinitionsClient_ListBySubscription() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListBySubscription(nil) + pager := client.NewListBySubscriptionPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/solutions/armmanagedapplications/ze_generated_example_applications_client_test.go b/sdk/resourcemanager/solutions/armmanagedapplications/ze_generated_example_applications_client_test.go index 8ca8d482ebf4..ee4bb78fcc6f 100644 --- a/sdk/resourcemanager/solutions/armmanagedapplications/ze_generated_example_applications_client_test.go +++ b/sdk/resourcemanager/solutions/armmanagedapplications/ze_generated_example_applications_client_test.go @@ -142,7 +142,7 @@ func ExampleApplicationsClient_Update() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listApplicationsByResourceGroup.json -func ExampleApplicationsClient_ListByResourceGroup() { +func ExampleApplicationsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -154,7 +154,7 @@ func ExampleApplicationsClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -170,7 +170,7 @@ func ExampleApplicationsClient_ListByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/solutions/resource-manager/Microsoft.Solutions/stable/2021-07-01/examples/listApplicationsByResourceGroup.json -func ExampleApplicationsClient_ListBySubscription() { +func ExampleApplicationsClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -182,7 +182,7 @@ func ExampleApplicationsClient_ListBySubscription() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListBySubscription(nil) + pager := client.NewListBySubscriptionPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/solutions/armmanagedapplications/zz_generated_application_client.go b/sdk/resourcemanager/solutions/armmanagedapplications/zz_generated_application_client.go index 0a80d6194b39..2a03f79b7d86 100644 --- a/sdk/resourcemanager/solutions/armmanagedapplications/zz_generated_application_client.go +++ b/sdk/resourcemanager/solutions/armmanagedapplications/zz_generated_application_client.go @@ -48,11 +48,11 @@ func NewApplicationClient(credential azcore.TokenCredential, options *arm.Client return client, nil } -// ListOperations - Lists all of the available Microsoft.Solutions REST API operations. +// NewListOperationsPager - Lists all of the available Microsoft.Solutions REST API operations. // If the operation fails it returns an *azcore.ResponseError type. // options - ApplicationClientListOperationsOptions contains the optional parameters for the ApplicationClient.ListOperations // method. -func (client *ApplicationClient) ListOperations(options *ApplicationClientListOperationsOptions) *runtime.Pager[ApplicationClientListOperationsResponse] { +func (client *ApplicationClient) NewListOperationsPager(options *ApplicationClientListOperationsOptions) *runtime.Pager[ApplicationClientListOperationsResponse] { return runtime.NewPager(runtime.PageProcessor[ApplicationClientListOperationsResponse]{ More: func(page ApplicationClientListOperationsResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/solutions/armmanagedapplications/zz_generated_applicationdefinitions_client.go b/sdk/resourcemanager/solutions/armmanagedapplications/zz_generated_applicationdefinitions_client.go index 249e9553a06f..3a88201255de 100644 --- a/sdk/resourcemanager/solutions/armmanagedapplications/zz_generated_applicationdefinitions_client.go +++ b/sdk/resourcemanager/solutions/armmanagedapplications/zz_generated_applicationdefinitions_client.go @@ -235,12 +235,12 @@ func (client *ApplicationDefinitionsClient) getHandleResponse(resp *http.Respons return result, nil } -// ListByResourceGroup - Lists the managed application definitions in a resource group. +// NewListByResourceGroupPager - Lists the managed application definitions in a resource group. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group. The name is case insensitive. // options - ApplicationDefinitionsClientListByResourceGroupOptions contains the optional parameters for the ApplicationDefinitionsClient.ListByResourceGroup // method. -func (client *ApplicationDefinitionsClient) ListByResourceGroup(resourceGroupName string, options *ApplicationDefinitionsClientListByResourceGroupOptions) *runtime.Pager[ApplicationDefinitionsClientListByResourceGroupResponse] { +func (client *ApplicationDefinitionsClient) NewListByResourceGroupPager(resourceGroupName string, options *ApplicationDefinitionsClientListByResourceGroupOptions) *runtime.Pager[ApplicationDefinitionsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[ApplicationDefinitionsClientListByResourceGroupResponse]{ More: func(page ApplicationDefinitionsClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -299,11 +299,11 @@ func (client *ApplicationDefinitionsClient) listByResourceGroupHandleResponse(re return result, nil } -// ListBySubscription - Gets all the application definitions within a subscription. +// NewListBySubscriptionPager - Gets all the application definitions within a subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - ApplicationDefinitionsClientListBySubscriptionOptions contains the optional parameters for the ApplicationDefinitionsClient.ListBySubscription // method. -func (client *ApplicationDefinitionsClient) ListBySubscription(options *ApplicationDefinitionsClientListBySubscriptionOptions) *runtime.Pager[ApplicationDefinitionsClientListBySubscriptionResponse] { +func (client *ApplicationDefinitionsClient) NewListBySubscriptionPager(options *ApplicationDefinitionsClientListBySubscriptionOptions) *runtime.Pager[ApplicationDefinitionsClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PageProcessor[ApplicationDefinitionsClientListBySubscriptionResponse]{ More: func(page ApplicationDefinitionsClientListBySubscriptionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/solutions/armmanagedapplications/zz_generated_applications_client.go b/sdk/resourcemanager/solutions/armmanagedapplications/zz_generated_applications_client.go index feb94335a765..77a5699ce9b8 100644 --- a/sdk/resourcemanager/solutions/armmanagedapplications/zz_generated_applications_client.go +++ b/sdk/resourcemanager/solutions/armmanagedapplications/zz_generated_applications_client.go @@ -283,12 +283,12 @@ func (client *ApplicationsClient) listAllowedUpgradePlansCreateRequest(ctx conte return req, nil } -// ListByResourceGroup - Gets all the applications within a resource group. +// NewListByResourceGroupPager - Gets all the applications within a resource group. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group. The name is case insensitive. // options - ApplicationsClientListByResourceGroupOptions contains the optional parameters for the ApplicationsClient.ListByResourceGroup // method. -func (client *ApplicationsClient) ListByResourceGroup(resourceGroupName string, options *ApplicationsClientListByResourceGroupOptions) *runtime.Pager[ApplicationsClientListByResourceGroupResponse] { +func (client *ApplicationsClient) NewListByResourceGroupPager(resourceGroupName string, options *ApplicationsClientListByResourceGroupOptions) *runtime.Pager[ApplicationsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[ApplicationsClientListByResourceGroupResponse]{ More: func(page ApplicationsClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -347,11 +347,11 @@ func (client *ApplicationsClient) listByResourceGroupHandleResponse(resp *http.R return result, nil } -// ListBySubscription - Gets all the applications within a subscription. +// NewListBySubscriptionPager - Gets all the applications within a subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - ApplicationsClientListBySubscriptionOptions contains the optional parameters for the ApplicationsClient.ListBySubscription // method. -func (client *ApplicationsClient) ListBySubscription(options *ApplicationsClientListBySubscriptionOptions) *runtime.Pager[ApplicationsClientListBySubscriptionResponse] { +func (client *ApplicationsClient) NewListBySubscriptionPager(options *ApplicationsClientListBySubscriptionOptions) *runtime.Pager[ApplicationsClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PageProcessor[ApplicationsClientListBySubscriptionResponse]{ More: func(page ApplicationsClientListBySubscriptionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/solutions/armmanagedapplications/zz_generated_constants.go b/sdk/resourcemanager/solutions/armmanagedapplications/zz_generated_constants.go index e65966f4fdc7..452fc12eb10a 100644 --- a/sdk/resourcemanager/solutions/armmanagedapplications/zz_generated_constants.go +++ b/sdk/resourcemanager/solutions/armmanagedapplications/zz_generated_constants.go @@ -10,7 +10,7 @@ package armmanagedapplications const ( moduleName = "armmanagedapplications" - moduleVersion = "v0.3.0" + moduleVersion = "v0.4.0" ) // ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. diff --git a/sdk/resourcemanager/sql/armsql/CHANGELOG.md b/sdk/resourcemanager/sql/armsql/CHANGELOG.md index cbbf290cabb6..0711c73d52af 100644 --- a/sdk/resourcemanager/sql/armsql/CHANGELOG.md +++ b/sdk/resourcemanager/sql/armsql/CHANGELOG.md @@ -1,5 +1,305 @@ # Release History +## 0.5.0 (2022-04-18) +### Breaking Changes + +- Function `*DatabaseSecurityAlertPoliciesClient.ListByDatabase` has been removed +- Function `*ManagedDatabaseSensitivityLabelsClient.ListByDatabase` has been removed +- Function `*ServerSecurityAlertPoliciesClient.ListByServer` has been removed +- Function `*ManagedInstancePrivateEndpointConnectionsClient.ListByManagedInstance` has been removed +- Function `*IPv6FirewallRulesClient.ListByServer` has been removed +- Function `*TransparentDataEncryptionsClient.ListByDatabase` has been removed +- Function `*LongTermRetentionBackupsClient.ListByResourceGroupServer` has been removed +- Function `*ManagedInstanceLongTermRetentionPoliciesClient.ListByDatabase` has been removed +- Function `*JobTargetGroupsClient.ListByAgent` has been removed +- Function `*DeletedServersClient.ListByLocation` has been removed +- Function `*InstanceFailoverGroupsClient.ListByLocation` has been removed +- Function `*DatabasesClient.ListByElasticPool` has been removed +- Function `*ElasticPoolDatabaseActivitiesClient.ListByElasticPool` has been removed +- Function `*ElasticPoolActivitiesClient.ListByElasticPool` has been removed +- Function `*SensitivityLabelsClient.ListRecommendedByDatabase` has been removed +- Function `*ManagedDatabaseQueriesClient.ListByQuery` has been removed +- Function `*ElasticPoolsClient.ListByServer` has been removed +- Function `*FailoverGroupsClient.ListByServer` has been removed +- Function `*ManagedInstancesClient.ListByResourceGroup` has been removed +- Function `*ExtendedServerBlobAuditingPoliciesClient.ListByServer` has been removed +- Function `*ReplicationLinksClient.ListByDatabase` has been removed +- Function `*LongTermRetentionPoliciesClient.ListByDatabase` has been removed +- Function `*ManagedDatabasesClient.ListInaccessibleByInstance` has been removed +- Function `*ServerDevOpsAuditSettingsClient.ListByServer` has been removed +- Function `*ManagedDatabaseVulnerabilityAssessmentScansClient.ListByDatabase` has been removed +- Function `*ExtendedDatabaseBlobAuditingPoliciesClient.ListByDatabase` has been removed +- Function `*OperationsClient.List` has been removed +- Function `*SubscriptionUsagesClient.ListByLocation` has been removed +- Function `*ServerOperationsClient.ListByServer` has been removed +- Function `*ManagedDatabasesClient.ListByInstance` has been removed +- Function `*ElasticPoolOperationsClient.ListByElasticPool` has been removed +- Function `*DatabasesClient.ListMetrics` has been removed +- Function `*ServersClient.List` has been removed +- Function `*DatabaseBlobAuditingPoliciesClient.ListByDatabase` has been removed +- Function `*ServiceObjectivesClient.ListByServer` has been removed +- Function `*JobAgentsClient.ListByServer` has been removed +- Function `*DistributedAvailabilityGroupsClient.ListByInstance` has been removed +- Function `*DeletedServersClient.List` has been removed +- Function `*PrivateEndpointConnectionsClient.ListByServer` has been removed +- Function `*SensitivityLabelsClient.ListByDatabase` has been removed +- Function `*LongTermRetentionBackupsClient.ListByResourceGroupLocation` has been removed +- Function `*SyncGroupsClient.ListLogs` has been removed +- Function `*PrivateLinkResourcesClient.ListByServer` has been removed +- Function `*ManagedInstancePrivateLinkResourcesClient.ListByManagedInstance` has been removed +- Function `*ManagedDatabaseSecurityAlertPoliciesClient.ListByDatabase` has been removed +- Function `*ManagedServerSecurityAlertPoliciesClient.ListByInstance` has been removed +- Function `*LongTermRetentionManagedInstanceBackupsClient.ListByInstance` has been removed +- Function `*DatabaseColumnsClient.ListByTable` has been removed +- Function `*ManagedInstancesClient.ListByInstancePool` has been removed +- Function `*DatabasesClient.ListMetricDefinitions` has been removed +- Function `*WorkloadGroupsClient.ListByDatabase` has been removed +- Function `*ServerAzureADOnlyAuthenticationsClient.ListByServer` has been removed +- Function `*ServerUsagesClient.ListByServer` has been removed +- Function `*VirtualClustersClient.ListByResourceGroup` has been removed +- Function `*ServerKeysClient.ListByServer` has been removed +- Function `*LedgerDigestUploadsClient.ListByDatabase` has been removed +- Function `*ManagedInstanceOperationsClient.ListByManagedInstance` has been removed +- Function `*JobStepsClient.ListByVersion` has been removed +- Function `*ManagedDatabaseTablesClient.ListBySchema` has been removed +- Function `*JobExecutionsClient.ListByAgent` has been removed +- Function `*ManagedInstanceEncryptionProtectorsClient.ListByInstance` has been removed +- Function `*ServerAzureADAdministratorsClient.ListByServer` has been removed +- Function `*ManagedInstancesClient.ListByManagedInstance` has been removed +- Function `*ManagedDatabaseColumnsClient.ListByTable` has been removed +- Function `*LongTermRetentionManagedInstanceBackupsClient.ListByResourceGroupDatabase` has been removed +- Function `*OutboundFirewallRulesClient.ListByServer` has been removed +- Function `*SyncAgentsClient.ListLinkedDatabases` has been removed +- Function `*ManagedInstanceVulnerabilityAssessmentsClient.ListByInstance` has been removed +- Function `*ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient.ListByRestorableDroppedDatabase` has been removed +- Function `*InstancePoolsClient.List` has been removed +- Function `*ManagedInstanceAzureADOnlyAuthenticationsClient.ListByInstance` has been removed +- Function `*JobVersionsClient.ListByJob` has been removed +- Function `*LongTermRetentionManagedInstanceBackupsClient.ListByDatabase` has been removed +- Function `*RestorableDroppedDatabasesClient.ListByServer` has been removed +- Function `*SyncAgentsClient.ListByServer` has been removed +- Function `*BackupShortTermRetentionPoliciesClient.ListByDatabase` has been removed +- Function `*InstancePoolsClient.ListByResourceGroup` has been removed +- Function `*EncryptionProtectorsClient.ListByServer` has been removed +- Function `*JobStepExecutionsClient.ListByJobExecution` has been removed +- Function `*DatabaseTablesClient.ListBySchema` has been removed +- Function `*ServerTrustCertificatesClient.ListByInstance` has been removed +- Function `*SensitivityLabelsClient.ListCurrentByDatabase` has been removed +- Function `*FirewallRulesClient.ListByServer` has been removed +- Function `*ManagedInstanceKeysClient.ListByInstance` has been removed +- Function `*SyncMembersClient.ListMemberSchemas` has been removed +- Function `*DatabasesClient.ListInaccessibleByServer` has been removed +- Function `*DatabasesClient.ListByServer` has been removed +- Function `*ManagedBackupShortTermRetentionPoliciesClient.ListByDatabase` has been removed +- Function `*LongTermRetentionBackupsClient.ListByResourceGroupDatabase` has been removed +- Function `*ElasticPoolsClient.ListMetricDefinitions` has been removed +- Function `*UsagesClient.ListByInstancePool` has been removed +- Function `*DataWarehouseUserActivitiesClient.ListByDatabase` has been removed +- Function `*ManagedInstanceAdministratorsClient.ListByInstance` has been removed +- Function `*DatabaseUsagesClient.ListByDatabase` has been removed +- Function `*LongTermRetentionManagedInstanceBackupsClient.ListByResourceGroupLocation` has been removed +- Function `*ManagedInstancesClient.List` has been removed +- Function `*WorkloadClassifiersClient.ListByWorkloadGroup` has been removed +- Function `*DatabaseExtensionsClient.ListByDatabase` has been removed +- Function `*VirtualClustersClient.List` has been removed +- Function `*RecoverableManagedDatabasesClient.ListByInstance` has been removed +- Function `*ServerDNSAliasesClient.ListByServer` has been removed +- Function `*LongTermRetentionBackupsClient.ListByDatabase` has been removed +- Function `*ManagedDatabaseSchemasClient.ListByDatabase` has been removed +- Function `*DatabaseOperationsClient.ListByDatabase` has been removed +- Function `*ServerTrustGroupsClient.ListByInstance` has been removed +- Function `*LongTermRetentionManagedInstanceBackupsClient.ListByResourceGroupInstance` has been removed +- Function `*ReplicationLinksClient.ListByServer` has been removed +- Function `*RestorableDroppedManagedDatabasesClient.ListByInstance` has been removed +- Function `*ServerBlobAuditingPoliciesClient.ListByServer` has been removed +- Function `*JobTargetExecutionsClient.ListByStep` has been removed +- Function `*DatabaseVulnerabilityAssessmentsClient.ListByDatabase` has been removed +- Function `*ServersClient.ListByResourceGroup` has been removed +- Function `*ManagedDatabaseTransparentDataEncryptionClient.ListByDatabase` has been removed +- Function `*ManagedDatabaseVulnerabilityAssessmentsClient.ListByDatabase` has been removed +- Function `*ServerTrustGroupsClient.ListByLocation` has been removed +- Function `*GeoBackupPoliciesClient.ListByDatabase` has been removed +- Function `*ServerCommunicationLinksClient.ListByServer` has been removed +- Function `*JobTargetExecutionsClient.ListByJobExecution` has been removed +- Function `*SyncGroupsClient.ListSyncDatabaseIDs` has been removed +- Function `*DataMaskingRulesClient.ListByDatabase` has been removed +- Function `*DatabaseColumnsClient.ListByDatabase` has been removed +- Function `*TimeZonesClient.ListByLocation` has been removed +- Function `*JobStepsClient.ListByJob` has been removed +- Function `*DatabaseSchemasClient.ListByDatabase` has been removed +- Function `*JobExecutionsClient.ListByJob` has been removed +- Function `*DatabaseVulnerabilityAssessmentScansClient.ListByDatabase` has been removed +- Function `*ManagedDatabaseSensitivityLabelsClient.ListCurrentByDatabase` has been removed +- Function `*ElasticPoolsClient.ListMetrics` has been removed +- Function `*JobsClient.ListByAgent` has been removed +- Function `*ServerVulnerabilityAssessmentsClient.ListByServer` has been removed +- Function `*ManagedDatabaseSensitivityLabelsClient.ListRecommendedByDatabase` has been removed +- Function `*VirtualNetworkRulesClient.ListByServer` has been removed +- Function `*SyncGroupsClient.ListHubSchemas` has been removed +- Function `*SyncGroupsClient.ListByDatabase` has been removed +- Function `*RestorePointsClient.ListByDatabase` has been removed +- Function `*ManagedDatabaseColumnsClient.ListByDatabase` has been removed +- Function `*JobCredentialsClient.ListByAgent` has been removed +- Function `*LongTermRetentionBackupsClient.ListByServer` has been removed +- Function `*ManagedServerDNSAliasesClient.ListByManagedInstance` has been removed +- Function `*LongTermRetentionBackupsClient.ListByLocation` has been removed +- Function `*SyncMembersClient.ListBySyncGroup` has been removed +- Function `*EndpointCertificatesClient.ListByInstance` has been removed +- Function `*RecoverableDatabasesClient.ListByServer` has been removed +- Function `*LongTermRetentionManagedInstanceBackupsClient.ListByLocation` has been removed +- Function `*ServerConnectionPoliciesClient.ListByServer` has been removed +- Function `*ManagedDatabaseSecurityEventsClient.ListByDatabase` has been removed + +### Features Added + +- New function `*ServerAzureADOnlyAuthenticationsClient.NewListByServerPager(string, string, *ServerAzureADOnlyAuthenticationsClientListByServerOptions) *runtime.Pager[ServerAzureADOnlyAuthenticationsClientListByServerResponse]` +- New function `*DistributedAvailabilityGroupsClient.NewListByInstancePager(string, string, *DistributedAvailabilityGroupsClientListByInstanceOptions) *runtime.Pager[DistributedAvailabilityGroupsClientListByInstanceResponse]` +- New function `*TimeZonesClient.NewListByLocationPager(string, *TimeZonesClientListByLocationOptions) *runtime.Pager[TimeZonesClientListByLocationResponse]` +- New function `*ManagedDatabaseSecurityEventsClient.NewListByDatabasePager(string, string, string, *ManagedDatabaseSecurityEventsClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseSecurityEventsClientListByDatabaseResponse]` +- New function `*DeletedServersClient.NewListByLocationPager(string, *DeletedServersClientListByLocationOptions) *runtime.Pager[DeletedServersClientListByLocationResponse]` +- New function `*GeoBackupPoliciesClient.NewListByDatabasePager(string, string, string, *GeoBackupPoliciesClientListByDatabaseOptions) *runtime.Pager[GeoBackupPoliciesClientListByDatabaseResponse]` +- New function `*ManagedBackupShortTermRetentionPoliciesClient.NewListByDatabasePager(string, string, string, *ManagedBackupShortTermRetentionPoliciesClientListByDatabaseOptions) *runtime.Pager[ManagedBackupShortTermRetentionPoliciesClientListByDatabaseResponse]` +- New function `*DatabasesClient.NewListInaccessibleByServerPager(string, string, *DatabasesClientListInaccessibleByServerOptions) *runtime.Pager[DatabasesClientListInaccessibleByServerResponse]` +- New function `*VirtualClustersClient.NewListPager(*VirtualClustersClientListOptions) *runtime.Pager[VirtualClustersClientListResponse]` +- New function `*ManagedDatabaseVulnerabilityAssessmentsClient.NewListByDatabasePager(string, string, string, *ManagedDatabaseVulnerabilityAssessmentsClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseVulnerabilityAssessmentsClientListByDatabaseResponse]` +- New function `*UsagesClient.NewListByInstancePoolPager(string, string, *UsagesClientListByInstancePoolOptions) *runtime.Pager[UsagesClientListByInstancePoolResponse]` +- New function `*ManagedInstanceAzureADOnlyAuthenticationsClient.NewListByInstancePager(string, string, *ManagedInstanceAzureADOnlyAuthenticationsClientListByInstanceOptions) *runtime.Pager[ManagedInstanceAzureADOnlyAuthenticationsClientListByInstanceResponse]` +- New function `*DatabaseTablesClient.NewListBySchemaPager(string, string, string, string, *DatabaseTablesClientListBySchemaOptions) *runtime.Pager[DatabaseTablesClientListBySchemaResponse]` +- New function `*SyncGroupsClient.NewListByDatabasePager(string, string, string, *SyncGroupsClientListByDatabaseOptions) *runtime.Pager[SyncGroupsClientListByDatabaseResponse]` +- New function `*ServerBlobAuditingPoliciesClient.NewListByServerPager(string, string, *ServerBlobAuditingPoliciesClientListByServerOptions) *runtime.Pager[ServerBlobAuditingPoliciesClientListByServerResponse]` +- New function `*SensitivityLabelsClient.NewListRecommendedByDatabasePager(string, string, string, *SensitivityLabelsClientListRecommendedByDatabaseOptions) *runtime.Pager[SensitivityLabelsClientListRecommendedByDatabaseResponse]` +- New function `*DatabasesClient.NewListByElasticPoolPager(string, string, string, *DatabasesClientListByElasticPoolOptions) *runtime.Pager[DatabasesClientListByElasticPoolResponse]` +- New function `*InstanceFailoverGroupsClient.NewListByLocationPager(string, string, *InstanceFailoverGroupsClientListByLocationOptions) *runtime.Pager[InstanceFailoverGroupsClientListByLocationResponse]` +- New function `*DatabaseBlobAuditingPoliciesClient.NewListByDatabasePager(string, string, string, *DatabaseBlobAuditingPoliciesClientListByDatabaseOptions) *runtime.Pager[DatabaseBlobAuditingPoliciesClientListByDatabaseResponse]` +- New function `*DatabaseColumnsClient.NewListByTablePager(string, string, string, string, string, *DatabaseColumnsClientListByTableOptions) *runtime.Pager[DatabaseColumnsClientListByTableResponse]` +- New function `*SyncAgentsClient.NewListLinkedDatabasesPager(string, string, string, *SyncAgentsClientListLinkedDatabasesOptions) *runtime.Pager[SyncAgentsClientListLinkedDatabasesResponse]` +- New function `*JobTargetExecutionsClient.NewListByStepPager(string, string, string, string, string, string, *JobTargetExecutionsClientListByStepOptions) *runtime.Pager[JobTargetExecutionsClientListByStepResponse]` +- New function `*LongTermRetentionBackupsClient.NewListByLocationPager(string, *LongTermRetentionBackupsClientListByLocationOptions) *runtime.Pager[LongTermRetentionBackupsClientListByLocationResponse]` +- New function `*SyncGroupsClient.NewListLogsPager(string, string, string, string, string, string, SyncGroupsType, *SyncGroupsClientListLogsOptions) *runtime.Pager[SyncGroupsClientListLogsResponse]` +- New function `*JobExecutionsClient.NewListByJobPager(string, string, string, string, *JobExecutionsClientListByJobOptions) *runtime.Pager[JobExecutionsClientListByJobResponse]` +- New function `*ManagedInstancesClient.NewListByManagedInstancePager(string, string, *ManagedInstancesClientListByManagedInstanceOptions) *runtime.Pager[ManagedInstancesClientListByManagedInstanceResponse]` +- New function `*ManagedDatabaseVulnerabilityAssessmentScansClient.NewListByDatabasePager(string, string, string, VulnerabilityAssessmentName, *ManagedDatabaseVulnerabilityAssessmentScansClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseVulnerabilityAssessmentScansClientListByDatabaseResponse]` +- New function `*ServiceObjectivesClient.NewListByServerPager(string, string, *ServiceObjectivesClientListByServerOptions) *runtime.Pager[ServiceObjectivesClientListByServerResponse]` +- New function `*ElasticPoolsClient.NewListMetricsPager(string, string, string, string, *ElasticPoolsClientListMetricsOptions) *runtime.Pager[ElasticPoolsClientListMetricsResponse]` +- New function `*TransparentDataEncryptionsClient.NewListByDatabasePager(string, string, string, *TransparentDataEncryptionsClientListByDatabaseOptions) *runtime.Pager[TransparentDataEncryptionsClientListByDatabaseResponse]` +- New function `*ManagedInstanceOperationsClient.NewListByManagedInstancePager(string, string, *ManagedInstanceOperationsClientListByManagedInstanceOptions) *runtime.Pager[ManagedInstanceOperationsClientListByManagedInstanceResponse]` +- New function `*ManagedInstancePrivateEndpointConnectionsClient.NewListByManagedInstancePager(string, string, *ManagedInstancePrivateEndpointConnectionsClientListByManagedInstanceOptions) *runtime.Pager[ManagedInstancePrivateEndpointConnectionsClientListByManagedInstanceResponse]` +- New function `*JobStepsClient.NewListByVersionPager(string, string, string, string, int32, *JobStepsClientListByVersionOptions) *runtime.Pager[JobStepsClientListByVersionResponse]` +- New function `*JobCredentialsClient.NewListByAgentPager(string, string, string, *JobCredentialsClientListByAgentOptions) *runtime.Pager[JobCredentialsClientListByAgentResponse]` +- New function `*DatabasesClient.NewListMetricDefinitionsPager(string, string, string, *DatabasesClientListMetricDefinitionsOptions) *runtime.Pager[DatabasesClientListMetricDefinitionsResponse]` +- New function `*LongTermRetentionManagedInstanceBackupsClient.NewListByResourceGroupDatabasePager(string, string, string, string, *LongTermRetentionManagedInstanceBackupsClientListByResourceGroupDatabaseOptions) *runtime.Pager[LongTermRetentionManagedInstanceBackupsClientListByResourceGroupDatabaseResponse]` +- New function `*SyncGroupsClient.NewListSyncDatabaseIDsPager(string, *SyncGroupsClientListSyncDatabaseIDsOptions) *runtime.Pager[SyncGroupsClientListSyncDatabaseIDsResponse]` +- New function `*JobExecutionsClient.NewListByAgentPager(string, string, string, *JobExecutionsClientListByAgentOptions) *runtime.Pager[JobExecutionsClientListByAgentResponse]` +- New function `*SubscriptionUsagesClient.NewListByLocationPager(string, *SubscriptionUsagesClientListByLocationOptions) *runtime.Pager[SubscriptionUsagesClientListByLocationResponse]` +- New function `*JobVersionsClient.NewListByJobPager(string, string, string, string, *JobVersionsClientListByJobOptions) *runtime.Pager[JobVersionsClientListByJobResponse]` +- New function `*ManagedInstanceLongTermRetentionPoliciesClient.NewListByDatabasePager(string, string, string, *ManagedInstanceLongTermRetentionPoliciesClientListByDatabaseOptions) *runtime.Pager[ManagedInstanceLongTermRetentionPoliciesClientListByDatabaseResponse]` +- New function `*ServerDNSAliasesClient.NewListByServerPager(string, string, *ServerDNSAliasesClientListByServerOptions) *runtime.Pager[ServerDNSAliasesClientListByServerResponse]` +- New function `*ServerUsagesClient.NewListByServerPager(string, string, *ServerUsagesClientListByServerOptions) *runtime.Pager[ServerUsagesClientListByServerResponse]` +- New function `*ServerKeysClient.NewListByServerPager(string, string, *ServerKeysClientListByServerOptions) *runtime.Pager[ServerKeysClientListByServerResponse]` +- New function `*FailoverGroupsClient.NewListByServerPager(string, string, *FailoverGroupsClientListByServerOptions) *runtime.Pager[FailoverGroupsClientListByServerResponse]` +- New function `*JobsClient.NewListByAgentPager(string, string, string, *JobsClientListByAgentOptions) *runtime.Pager[JobsClientListByAgentResponse]` +- New function `*DataMaskingRulesClient.NewListByDatabasePager(string, string, string, *DataMaskingRulesClientListByDatabaseOptions) *runtime.Pager[DataMaskingRulesClientListByDatabaseResponse]` +- New function `*DatabaseSecurityAlertPoliciesClient.NewListByDatabasePager(string, string, string, *DatabaseSecurityAlertPoliciesClientListByDatabaseOptions) *runtime.Pager[DatabaseSecurityAlertPoliciesClientListByDatabaseResponse]` +- New function `*VirtualNetworkRulesClient.NewListByServerPager(string, string, *VirtualNetworkRulesClientListByServerOptions) *runtime.Pager[VirtualNetworkRulesClientListByServerResponse]` +- New function `*RestorableDroppedManagedDatabasesClient.NewListByInstancePager(string, string, *RestorableDroppedManagedDatabasesClientListByInstanceOptions) *runtime.Pager[RestorableDroppedManagedDatabasesClientListByInstanceResponse]` +- New function `*ManagedInstanceKeysClient.NewListByInstancePager(string, string, *ManagedInstanceKeysClientListByInstanceOptions) *runtime.Pager[ManagedInstanceKeysClientListByInstanceResponse]` +- New function `*ServerTrustGroupsClient.NewListByInstancePager(string, string, *ServerTrustGroupsClientListByInstanceOptions) *runtime.Pager[ServerTrustGroupsClientListByInstanceResponse]` +- New function `*LongTermRetentionBackupsClient.NewListByResourceGroupServerPager(string, string, string, *LongTermRetentionBackupsClientListByResourceGroupServerOptions) *runtime.Pager[LongTermRetentionBackupsClientListByResourceGroupServerResponse]` +- New function `*ManagedDatabasesClient.NewListByInstancePager(string, string, *ManagedDatabasesClientListByInstanceOptions) *runtime.Pager[ManagedDatabasesClientListByInstanceResponse]` +- New function `*ServerDevOpsAuditSettingsClient.NewListByServerPager(string, string, *ServerDevOpsAuditSettingsClientListByServerOptions) *runtime.Pager[ServerDevOpsAuditSettingsClientListByServerResponse]` +- New function `*JobAgentsClient.NewListByServerPager(string, string, *JobAgentsClientListByServerOptions) *runtime.Pager[JobAgentsClientListByServerResponse]` +- New function `*ServerSecurityAlertPoliciesClient.NewListByServerPager(string, string, *ServerSecurityAlertPoliciesClientListByServerOptions) *runtime.Pager[ServerSecurityAlertPoliciesClientListByServerResponse]` +- New function `*RestorableDroppedDatabasesClient.NewListByServerPager(string, string, *RestorableDroppedDatabasesClientListByServerOptions) *runtime.Pager[RestorableDroppedDatabasesClientListByServerResponse]` +- New function `*LongTermRetentionBackupsClient.NewListByResourceGroupLocationPager(string, string, *LongTermRetentionBackupsClientListByResourceGroupLocationOptions) *runtime.Pager[LongTermRetentionBackupsClientListByResourceGroupLocationResponse]` +- New function `*PrivateLinkResourcesClient.NewListByServerPager(string, string, *PrivateLinkResourcesClientListByServerOptions) *runtime.Pager[PrivateLinkResourcesClientListByServerResponse]` +- New function `*ServerOperationsClient.NewListByServerPager(string, string, *ServerOperationsClientListByServerOptions) *runtime.Pager[ServerOperationsClientListByServerResponse]` +- New function `*ServerVulnerabilityAssessmentsClient.NewListByServerPager(string, string, *ServerVulnerabilityAssessmentsClientListByServerOptions) *runtime.Pager[ServerVulnerabilityAssessmentsClientListByServerResponse]` +- New function `*LongTermRetentionManagedInstanceBackupsClient.NewListByLocationPager(string, *LongTermRetentionManagedInstanceBackupsClientListByLocationOptions) *runtime.Pager[LongTermRetentionManagedInstanceBackupsClientListByLocationResponse]` +- New function `*LongTermRetentionManagedInstanceBackupsClient.NewListByDatabasePager(string, string, string, *LongTermRetentionManagedInstanceBackupsClientListByDatabaseOptions) *runtime.Pager[LongTermRetentionManagedInstanceBackupsClientListByDatabaseResponse]` +- New function `*LedgerDigestUploadsClient.NewListByDatabasePager(string, string, string, *LedgerDigestUploadsClientListByDatabaseOptions) *runtime.Pager[LedgerDigestUploadsClientListByDatabaseResponse]` +- New function `*ExtendedServerBlobAuditingPoliciesClient.NewListByServerPager(string, string, *ExtendedServerBlobAuditingPoliciesClientListByServerOptions) *runtime.Pager[ExtendedServerBlobAuditingPoliciesClientListByServerResponse]` +- New function `*DatabasesClient.NewListMetricsPager(string, string, string, string, *DatabasesClientListMetricsOptions) *runtime.Pager[DatabasesClientListMetricsResponse]` +- New function `*EndpointCertificatesClient.NewListByInstancePager(string, string, *EndpointCertificatesClientListByInstanceOptions) *runtime.Pager[EndpointCertificatesClientListByInstanceResponse]` +- New function `*ManagedDatabaseColumnsClient.NewListByDatabasePager(string, string, string, *ManagedDatabaseColumnsClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseColumnsClientListByDatabaseResponse]` +- New function `*IPv6FirewallRulesClient.NewListByServerPager(string, string, *IPv6FirewallRulesClientListByServerOptions) *runtime.Pager[IPv6FirewallRulesClientListByServerResponse]` +- New function `*LongTermRetentionPoliciesClient.NewListByDatabasePager(string, string, string, *LongTermRetentionPoliciesClientListByDatabaseOptions) *runtime.Pager[LongTermRetentionPoliciesClientListByDatabaseResponse]` +- New function `*WorkloadClassifiersClient.NewListByWorkloadGroupPager(string, string, string, string, *WorkloadClassifiersClientListByWorkloadGroupOptions) *runtime.Pager[WorkloadClassifiersClientListByWorkloadGroupResponse]` +- New function `*ManagedDatabaseQueriesClient.NewListByQueryPager(string, string, string, string, *ManagedDatabaseQueriesClientListByQueryOptions) *runtime.Pager[ManagedDatabaseQueriesClientListByQueryResponse]` +- New function `*JobStepsClient.NewListByJobPager(string, string, string, string, *JobStepsClientListByJobOptions) *runtime.Pager[JobStepsClientListByJobResponse]` +- New function `*DatabaseVulnerabilityAssessmentScansClient.NewListByDatabasePager(string, string, string, VulnerabilityAssessmentName, *DatabaseVulnerabilityAssessmentScansClientListByDatabaseOptions) *runtime.Pager[DatabaseVulnerabilityAssessmentScansClientListByDatabaseResponse]` +- New function `*ManagedInstancesClient.NewListPager(*ManagedInstancesClientListOptions) *runtime.Pager[ManagedInstancesClientListResponse]` +- New function `*ManagedServerSecurityAlertPoliciesClient.NewListByInstancePager(string, string, *ManagedServerSecurityAlertPoliciesClientListByInstanceOptions) *runtime.Pager[ManagedServerSecurityAlertPoliciesClientListByInstanceResponse]` +- New function `*LongTermRetentionBackupsClient.NewListByServerPager(string, string, *LongTermRetentionBackupsClientListByServerOptions) *runtime.Pager[LongTermRetentionBackupsClientListByServerResponse]` +- New function `*LongTermRetentionBackupsClient.NewListByResourceGroupDatabasePager(string, string, string, string, *LongTermRetentionBackupsClientListByResourceGroupDatabaseOptions) *runtime.Pager[LongTermRetentionBackupsClientListByResourceGroupDatabaseResponse]` +- New function `*SensitivityLabelsClient.NewListByDatabasePager(string, string, string, *SensitivityLabelsClientListByDatabaseOptions) *runtime.Pager[SensitivityLabelsClientListByDatabaseResponse]` +- New function `*RecoverableManagedDatabasesClient.NewListByInstancePager(string, string, *RecoverableManagedDatabasesClientListByInstanceOptions) *runtime.Pager[RecoverableManagedDatabasesClientListByInstanceResponse]` +- New function `*ManagedInstanceEncryptionProtectorsClient.NewListByInstancePager(string, string, *ManagedInstanceEncryptionProtectorsClientListByInstanceOptions) *runtime.Pager[ManagedInstanceEncryptionProtectorsClientListByInstanceResponse]` +- New function `*OutboundFirewallRulesClient.NewListByServerPager(string, string, *OutboundFirewallRulesClientListByServerOptions) *runtime.Pager[OutboundFirewallRulesClientListByServerResponse]` +- New function `*ReplicationLinksClient.NewListByServerPager(string, string, *ReplicationLinksClientListByServerOptions) *runtime.Pager[ReplicationLinksClientListByServerResponse]` +- New function `*InstancePoolsClient.NewListPager(*InstancePoolsClientListOptions) *runtime.Pager[InstancePoolsClientListResponse]` +- New function `*JobTargetExecutionsClient.NewListByJobExecutionPager(string, string, string, string, string, *JobTargetExecutionsClientListByJobExecutionOptions) *runtime.Pager[JobTargetExecutionsClientListByJobExecutionResponse]` +- New function `*DatabasesClient.NewListByServerPager(string, string, *DatabasesClientListByServerOptions) *runtime.Pager[DatabasesClientListByServerResponse]` +- New function `*ElasticPoolActivitiesClient.NewListByElasticPoolPager(string, string, string, *ElasticPoolActivitiesClientListByElasticPoolOptions) *runtime.Pager[ElasticPoolActivitiesClientListByElasticPoolResponse]` +- New function `*SyncGroupsClient.NewListHubSchemasPager(string, string, string, string, *SyncGroupsClientListHubSchemasOptions) *runtime.Pager[SyncGroupsClientListHubSchemasResponse]` +- New function `*ManagedInstanceVulnerabilityAssessmentsClient.NewListByInstancePager(string, string, *ManagedInstanceVulnerabilityAssessmentsClientListByInstanceOptions) *runtime.Pager[ManagedInstanceVulnerabilityAssessmentsClientListByInstanceResponse]` +- New function `*ReplicationLinksClient.NewListByDatabasePager(string, string, string, *ReplicationLinksClientListByDatabaseOptions) *runtime.Pager[ReplicationLinksClientListByDatabaseResponse]` +- New function `*BackupShortTermRetentionPoliciesClient.NewListByDatabasePager(string, string, string, *BackupShortTermRetentionPoliciesClientListByDatabaseOptions) *runtime.Pager[BackupShortTermRetentionPoliciesClientListByDatabaseResponse]` +- New function `*ServersClient.NewListPager(*ServersClientListOptions) *runtime.Pager[ServersClientListResponse]` +- New function `*ManagedInstancesClient.NewListByResourceGroupPager(string, *ManagedInstancesClientListByResourceGroupOptions) *runtime.Pager[ManagedInstancesClientListByResourceGroupResponse]` +- New function `*ManagedDatabaseSensitivityLabelsClient.NewListRecommendedByDatabasePager(string, string, string, *ManagedDatabaseSensitivityLabelsClientListRecommendedByDatabaseOptions) *runtime.Pager[ManagedDatabaseSensitivityLabelsClientListRecommendedByDatabaseResponse]` +- New function `*LongTermRetentionManagedInstanceBackupsClient.NewListByResourceGroupInstancePager(string, string, string, *LongTermRetentionManagedInstanceBackupsClientListByResourceGroupInstanceOptions) *runtime.Pager[LongTermRetentionManagedInstanceBackupsClientListByResourceGroupInstanceResponse]` +- New function `*JobTargetGroupsClient.NewListByAgentPager(string, string, string, *JobTargetGroupsClientListByAgentOptions) *runtime.Pager[JobTargetGroupsClientListByAgentResponse]` +- New function `*ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient.NewListByRestorableDroppedDatabasePager(string, string, string, *ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClientListByRestorableDroppedDatabaseOptions) *runtime.Pager[ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClientListByRestorableDroppedDatabaseResponse]` +- New function `*DataWarehouseUserActivitiesClient.NewListByDatabasePager(string, string, string, *DataWarehouseUserActivitiesClientListByDatabaseOptions) *runtime.Pager[DataWarehouseUserActivitiesClientListByDatabaseResponse]` +- New function `*ServerCommunicationLinksClient.NewListByServerPager(string, string, *ServerCommunicationLinksClientListByServerOptions) *runtime.Pager[ServerCommunicationLinksClientListByServerResponse]` +- New function `*ManagedDatabaseSensitivityLabelsClient.NewListCurrentByDatabasePager(string, string, string, *ManagedDatabaseSensitivityLabelsClientListCurrentByDatabaseOptions) *runtime.Pager[ManagedDatabaseSensitivityLabelsClientListCurrentByDatabaseResponse]` +- New function `*SensitivityLabelsClient.NewListCurrentByDatabasePager(string, string, string, *SensitivityLabelsClientListCurrentByDatabaseOptions) *runtime.Pager[SensitivityLabelsClientListCurrentByDatabaseResponse]` +- New function `*ServerTrustCertificatesClient.NewListByInstancePager(string, string, *ServerTrustCertificatesClientListByInstanceOptions) *runtime.Pager[ServerTrustCertificatesClientListByInstanceResponse]` +- New function `*ServersClient.NewListByResourceGroupPager(string, *ServersClientListByResourceGroupOptions) *runtime.Pager[ServersClientListByResourceGroupResponse]` +- New function `*ElasticPoolsClient.NewListByServerPager(string, string, *ElasticPoolsClientListByServerOptions) *runtime.Pager[ElasticPoolsClientListByServerResponse]` +- New function `*DatabaseExtensionsClient.NewListByDatabasePager(string, string, string, *DatabaseExtensionsClientListByDatabaseOptions) *runtime.Pager[DatabaseExtensionsClientListByDatabaseResponse]` +- New function `*ElasticPoolOperationsClient.NewListByElasticPoolPager(string, string, string, *ElasticPoolOperationsClientListByElasticPoolOptions) *runtime.Pager[ElasticPoolOperationsClientListByElasticPoolResponse]` +- New function `*DatabaseVulnerabilityAssessmentsClient.NewListByDatabasePager(string, string, string, *DatabaseVulnerabilityAssessmentsClientListByDatabaseOptions) *runtime.Pager[DatabaseVulnerabilityAssessmentsClientListByDatabaseResponse]` +- New function `*ElasticPoolDatabaseActivitiesClient.NewListByElasticPoolPager(string, string, string, *ElasticPoolDatabaseActivitiesClientListByElasticPoolOptions) *runtime.Pager[ElasticPoolDatabaseActivitiesClientListByElasticPoolResponse]` +- New function `*SyncMembersClient.NewListMemberSchemasPager(string, string, string, string, string, *SyncMembersClientListMemberSchemasOptions) *runtime.Pager[SyncMembersClientListMemberSchemasResponse]` +- New function `*DatabaseOperationsClient.NewListByDatabasePager(string, string, string, *DatabaseOperationsClientListByDatabaseOptions) *runtime.Pager[DatabaseOperationsClientListByDatabaseResponse]` +- New function `*RestorePointsClient.NewListByDatabasePager(string, string, string, *RestorePointsClientListByDatabaseOptions) *runtime.Pager[RestorePointsClientListByDatabaseResponse]` +- New function `*ManagedDatabasesClient.NewListInaccessibleByInstancePager(string, string, *ManagedDatabasesClientListInaccessibleByInstanceOptions) *runtime.Pager[ManagedDatabasesClientListInaccessibleByInstanceResponse]` +- New function `*SyncMembersClient.NewListBySyncGroupPager(string, string, string, string, *SyncMembersClientListBySyncGroupOptions) *runtime.Pager[SyncMembersClientListBySyncGroupResponse]` +- New function `*DeletedServersClient.NewListPager(*DeletedServersClientListOptions) *runtime.Pager[DeletedServersClientListResponse]` +- New function `*DatabaseColumnsClient.NewListByDatabasePager(string, string, string, *DatabaseColumnsClientListByDatabaseOptions) *runtime.Pager[DatabaseColumnsClientListByDatabaseResponse]` +- New function `*DatabaseUsagesClient.NewListByDatabasePager(string, string, string, *DatabaseUsagesClientListByDatabaseOptions) *runtime.Pager[DatabaseUsagesClientListByDatabaseResponse]` +- New function `*ManagedInstancesClient.NewListByInstancePoolPager(string, string, *ManagedInstancesClientListByInstancePoolOptions) *runtime.Pager[ManagedInstancesClientListByInstancePoolResponse]` +- New function `*InstancePoolsClient.NewListByResourceGroupPager(string, *InstancePoolsClientListByResourceGroupOptions) *runtime.Pager[InstancePoolsClientListByResourceGroupResponse]` +- New function `*FirewallRulesClient.NewListByServerPager(string, string, *FirewallRulesClientListByServerOptions) *runtime.Pager[FirewallRulesClientListByServerResponse]` +- New function `*ExtendedDatabaseBlobAuditingPoliciesClient.NewListByDatabasePager(string, string, string, *ExtendedDatabaseBlobAuditingPoliciesClientListByDatabaseOptions) *runtime.Pager[ExtendedDatabaseBlobAuditingPoliciesClientListByDatabaseResponse]` +- New function `*ManagedDatabaseTransparentDataEncryptionClient.NewListByDatabasePager(string, string, string, *ManagedDatabaseTransparentDataEncryptionClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseTransparentDataEncryptionClientListByDatabaseResponse]` +- New function `*ServerConnectionPoliciesClient.NewListByServerPager(string, string, *ServerConnectionPoliciesClientListByServerOptions) *runtime.Pager[ServerConnectionPoliciesClientListByServerResponse]` +- New function `*LongTermRetentionManagedInstanceBackupsClient.NewListByInstancePager(string, string, *LongTermRetentionManagedInstanceBackupsClientListByInstanceOptions) *runtime.Pager[LongTermRetentionManagedInstanceBackupsClientListByInstanceResponse]` +- New function `*ManagedDatabaseSensitivityLabelsClient.NewListByDatabasePager(string, string, string, *ManagedDatabaseSensitivityLabelsClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseSensitivityLabelsClientListByDatabaseResponse]` +- New function `*LongTermRetentionBackupsClient.NewListByDatabasePager(string, string, string, *LongTermRetentionBackupsClientListByDatabaseOptions) *runtime.Pager[LongTermRetentionBackupsClientListByDatabaseResponse]` +- New function `*ManagedServerDNSAliasesClient.NewListByManagedInstancePager(string, string, *ManagedServerDNSAliasesClientListByManagedInstanceOptions) *runtime.Pager[ManagedServerDNSAliasesClientListByManagedInstanceResponse]` +- New function `*ElasticPoolsClient.NewListMetricDefinitionsPager(string, string, string, *ElasticPoolsClientListMetricDefinitionsOptions) *runtime.Pager[ElasticPoolsClientListMetricDefinitionsResponse]` +- New function `*PrivateEndpointConnectionsClient.NewListByServerPager(string, string, *PrivateEndpointConnectionsClientListByServerOptions) *runtime.Pager[PrivateEndpointConnectionsClientListByServerResponse]` +- New function `*ManagedInstanceAdministratorsClient.NewListByInstancePager(string, string, *ManagedInstanceAdministratorsClientListByInstanceOptions) *runtime.Pager[ManagedInstanceAdministratorsClientListByInstanceResponse]` +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` +- New function `*DatabaseSchemasClient.NewListByDatabasePager(string, string, string, *DatabaseSchemasClientListByDatabaseOptions) *runtime.Pager[DatabaseSchemasClientListByDatabaseResponse]` +- New function `*ManagedInstancePrivateLinkResourcesClient.NewListByManagedInstancePager(string, string, *ManagedInstancePrivateLinkResourcesClientListByManagedInstanceOptions) *runtime.Pager[ManagedInstancePrivateLinkResourcesClientListByManagedInstanceResponse]` +- New function `*ServerAzureADAdministratorsClient.NewListByServerPager(string, string, *ServerAzureADAdministratorsClientListByServerOptions) *runtime.Pager[ServerAzureADAdministratorsClientListByServerResponse]` +- New function `*ManagedDatabaseSecurityAlertPoliciesClient.NewListByDatabasePager(string, string, string, *ManagedDatabaseSecurityAlertPoliciesClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseSecurityAlertPoliciesClientListByDatabaseResponse]` +- New function `*WorkloadGroupsClient.NewListByDatabasePager(string, string, string, *WorkloadGroupsClientListByDatabaseOptions) *runtime.Pager[WorkloadGroupsClientListByDatabaseResponse]` +- New function `*LongTermRetentionManagedInstanceBackupsClient.NewListByResourceGroupLocationPager(string, string, *LongTermRetentionManagedInstanceBackupsClientListByResourceGroupLocationOptions) *runtime.Pager[LongTermRetentionManagedInstanceBackupsClientListByResourceGroupLocationResponse]` +- New function `*ManagedDatabaseTablesClient.NewListBySchemaPager(string, string, string, string, *ManagedDatabaseTablesClientListBySchemaOptions) *runtime.Pager[ManagedDatabaseTablesClientListBySchemaResponse]` +- New function `*VirtualClustersClient.NewListByResourceGroupPager(string, *VirtualClustersClientListByResourceGroupOptions) *runtime.Pager[VirtualClustersClientListByResourceGroupResponse]` +- New function `*ManagedDatabaseSchemasClient.NewListByDatabasePager(string, string, string, *ManagedDatabaseSchemasClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseSchemasClientListByDatabaseResponse]` +- New function `*ServerTrustGroupsClient.NewListByLocationPager(string, string, *ServerTrustGroupsClientListByLocationOptions) *runtime.Pager[ServerTrustGroupsClientListByLocationResponse]` +- New function `*RecoverableDatabasesClient.NewListByServerPager(string, string, *RecoverableDatabasesClientListByServerOptions) *runtime.Pager[RecoverableDatabasesClientListByServerResponse]` +- New function `*ManagedDatabaseColumnsClient.NewListByTablePager(string, string, string, string, string, *ManagedDatabaseColumnsClientListByTableOptions) *runtime.Pager[ManagedDatabaseColumnsClientListByTableResponse]` +- New function `*EncryptionProtectorsClient.NewListByServerPager(string, string, *EncryptionProtectorsClientListByServerOptions) *runtime.Pager[EncryptionProtectorsClientListByServerResponse]` +- New function `*JobStepExecutionsClient.NewListByJobExecutionPager(string, string, string, string, string, *JobStepExecutionsClientListByJobExecutionOptions) *runtime.Pager[JobStepExecutionsClientListByJobExecutionResponse]` +- New function `*SyncAgentsClient.NewListByServerPager(string, string, *SyncAgentsClientListByServerOptions) *runtime.Pager[SyncAgentsClientListByServerResponse]` + + ## 0.4.0 (2022-04-13) ### Breaking Changes diff --git a/sdk/resourcemanager/sql/armsql/autorest.md b/sdk/resourcemanager/sql/armsql/autorest.md index b5235b74cd96..5de15ab53d02 100644 --- a/sdk/resourcemanager/sql/armsql/autorest.md +++ b/sdk/resourcemanager/sql/armsql/autorest.md @@ -5,10 +5,10 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/sql/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/sql/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/sql/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/sql/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.4.0 +module-version: 0.5.0 modelerfour: seal-single-value-enum-by-default: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_backupshorttermretentionpolicies_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_backupshorttermretentionpolicies_client_test.go index 48cbb8330e4e..4d3668cbad8e 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_backupshorttermretentionpolicies_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_backupshorttermretentionpolicies_client_test.go @@ -123,7 +123,7 @@ func ExampleBackupShortTermRetentionPoliciesClient_BeginUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-02-01-preview/examples/ListShortTermRetentionPoliciesByDatabase.json -func ExampleBackupShortTermRetentionPoliciesClient_ListByDatabase() { +func ExampleBackupShortTermRetentionPoliciesClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -135,7 +135,7 @@ func ExampleBackupShortTermRetentionPoliciesClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_databaseblobauditingpolicies_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_databaseblobauditingpolicies_client_test.go index 72773524e966..4106fea9d250 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_databaseblobauditingpolicies_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_databaseblobauditingpolicies_client_test.go @@ -76,7 +76,7 @@ func ExampleDatabaseBlobAuditingPoliciesClient_CreateOrUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/DatabaseAuditingSettingsList.json -func ExampleDatabaseBlobAuditingPoliciesClient_ListByDatabase() { +func ExampleDatabaseBlobAuditingPoliciesClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -88,7 +88,7 @@ func ExampleDatabaseBlobAuditingPoliciesClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_databasecolumns_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_databasecolumns_client_test.go index ceacb05e4f6d..0a189534bd1d 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_databasecolumns_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_databasecolumns_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ColumnsListByDatabaseMax.json -func ExampleDatabaseColumnsClient_ListByDatabase() { +func ExampleDatabaseColumnsClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleDatabaseColumnsClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", &armsql.DatabaseColumnsClientListByDatabaseOptions{Schema: []string{ @@ -59,7 +59,7 @@ func ExampleDatabaseColumnsClient_ListByDatabase() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/DatabaseColumnListByTable.json -func ExampleDatabaseColumnsClient_ListByTable() { +func ExampleDatabaseColumnsClient_NewListByTablePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -71,7 +71,7 @@ func ExampleDatabaseColumnsClient_ListByTable() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByTable("", + pager := client.NewListByTablePager("", "", "", "", diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_databaseextensions_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_databaseextensions_client_test.go index cf7c86fdd08e..1e94b1e1e4db 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_databaseextensions_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_databaseextensions_client_test.go @@ -85,7 +85,7 @@ func ExampleDatabaseExtensionsClient_BeginCreateOrUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-02-01-preview/examples/ListDatabaseExtensions.json -func ExampleDatabaseExtensionsClient_ListByDatabase() { +func ExampleDatabaseExtensionsClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -97,7 +97,7 @@ func ExampleDatabaseExtensionsClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_databaseoperations_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_databaseoperations_client_test.go index bfee6abe9972..0d708302c6f3 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_databaseoperations_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_databaseoperations_client_test.go @@ -42,7 +42,7 @@ func ExampleDatabaseOperationsClient_Cancel() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-02-01-preview/examples/ListDatabaseOperations.json -func ExampleDatabaseOperationsClient_ListByDatabase() { +func ExampleDatabaseOperationsClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -54,7 +54,7 @@ func ExampleDatabaseOperationsClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_databases_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_databases_client_test.go index 4678cc7074e8..edc8a8312c36 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_databases_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_databases_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/DatabaseMetricsListWithFilter.json -func ExampleDatabasesClient_ListMetrics() { +func ExampleDatabasesClient_NewListMetricsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleDatabasesClient_ListMetrics() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListMetrics("", + pager := client.NewListMetricsPager("", "", "", "", @@ -51,7 +51,7 @@ func ExampleDatabasesClient_ListMetrics() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/DatabaseMetricsDefinitionsList.json -func ExampleDatabasesClient_ListMetricDefinitions() { +func ExampleDatabasesClient_NewListMetricDefinitionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -63,7 +63,7 @@ func ExampleDatabasesClient_ListMetricDefinitions() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListMetricDefinitions("", + pager := client.NewListMetricDefinitionsPager("", "", "", nil) @@ -81,7 +81,7 @@ func ExampleDatabasesClient_ListMetricDefinitions() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/ListVCoreDatabasesByServer.json -func ExampleDatabasesClient_ListByServer() { +func ExampleDatabasesClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -93,7 +93,7 @@ func ExampleDatabasesClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", &armsql.DatabasesClientListByServerOptions{SkipToken: nil}) for pager.More() { @@ -478,7 +478,7 @@ func ExampleDatabasesClient_BeginUpgradeDataWarehouse() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/ListDatabasesByElasticPool.json -func ExampleDatabasesClient_ListByElasticPool() { +func ExampleDatabasesClient_NewListByElasticPoolPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -490,7 +490,7 @@ func ExampleDatabasesClient_ListByElasticPool() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByElasticPool("", + pager := client.NewListByElasticPoolPager("", "", "", nil) @@ -508,7 +508,7 @@ func ExampleDatabasesClient_ListByElasticPool() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/ListVCoreInaccessibleDatabasesByServer.json -func ExampleDatabasesClient_ListInaccessibleByServer() { +func ExampleDatabasesClient_NewListInaccessibleByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -520,7 +520,7 @@ func ExampleDatabasesClient_ListInaccessibleByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListInaccessibleByServer("", + pager := client.NewListInaccessibleByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_databaseschemas_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_databaseschemas_client_test.go index 63f1e0e0f193..2a84cd783286 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_databaseschemas_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_databaseschemas_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/DatabaseSchemaListByDatabase.json -func ExampleDatabaseSchemasClient_ListByDatabase() { +func ExampleDatabaseSchemasClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleDatabaseSchemasClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", &armsql.DatabaseSchemasClientListByDatabaseOptions{Filter: nil}) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_databasesecurityalertpolicies_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_databasesecurityalertpolicies_client_test.go index 36cac0c0b8b0..472e6fae52a0 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_databasesecurityalertpolicies_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_databasesecurityalertpolicies_client_test.go @@ -87,7 +87,7 @@ func ExampleDatabaseSecurityAlertPoliciesClient_CreateOrUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/DatabaseSecurityAlertListByDatabase.json -func ExampleDatabaseSecurityAlertPoliciesClient_ListByDatabase() { +func ExampleDatabaseSecurityAlertPoliciesClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -99,7 +99,7 @@ func ExampleDatabaseSecurityAlertPoliciesClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_databasetables_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_databasetables_client_test.go index e33c719106ac..c8d296ccf57b 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_databasetables_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_databasetables_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/DatabaseTableListBySchema.json -func ExampleDatabaseTablesClient_ListBySchema() { +func ExampleDatabaseTablesClient_NewListBySchemaPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleDatabaseTablesClient_ListBySchema() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListBySchema("", + pager := client.NewListBySchemaPager("", "", "", "", diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_databaseusages_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_databaseusages_client_test.go index 9c770ddee769..5aff451edcff 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_databaseusages_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_databaseusages_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-02-01-preview/examples/GetDatabaseUsages.json -func ExampleDatabaseUsagesClient_ListByDatabase() { +func ExampleDatabaseUsagesClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleDatabaseUsagesClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_databasevulnerabilityassessments_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_databasevulnerabilityassessments_client_test.go index a615dabde187..6cd32102a027 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_databasevulnerabilityassessments_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_databasevulnerabilityassessments_client_test.go @@ -111,7 +111,7 @@ func ExampleDatabaseVulnerabilityAssessmentsClient_Delete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/DatabaseVulnerabilityAssessmentListByDatabase.json -func ExampleDatabaseVulnerabilityAssessmentsClient_ListByDatabase() { +func ExampleDatabaseVulnerabilityAssessmentsClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -123,7 +123,7 @@ func ExampleDatabaseVulnerabilityAssessmentsClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_databasevulnerabilityassessmentscans_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_databasevulnerabilityassessmentscans_client_test.go index c725dd812afd..5a2fc2a5998a 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_databasevulnerabilityassessmentscans_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_databasevulnerabilityassessmentscans_client_test.go @@ -50,7 +50,7 @@ func ExampleDatabaseVulnerabilityAssessmentScansClient_BeginInitiateScan() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/DatabaseVulnerabilityAssessmentScanRecordsListByDatabase.json -func ExampleDatabaseVulnerabilityAssessmentScansClient_ListByDatabase() { +func ExampleDatabaseVulnerabilityAssessmentScansClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -62,7 +62,7 @@ func ExampleDatabaseVulnerabilityAssessmentScansClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", armsql.VulnerabilityAssessmentNameDefault, diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_datamaskingrules_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_datamaskingrules_client_test.go index 0a2e318a99ef..136565c81184 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_datamaskingrules_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_datamaskingrules_client_test.go @@ -55,7 +55,7 @@ func ExampleDataMaskingRulesClient_CreateOrUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/DataMaskingRuleList.json -func ExampleDataMaskingRulesClient_ListByDatabase() { +func ExampleDataMaskingRulesClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -67,7 +67,7 @@ func ExampleDataMaskingRulesClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_datawarehouseuseractivities_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_datawarehouseuseractivities_client_test.go index 4517db739aad..f6af1366a7ff 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_datawarehouseuseractivities_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_datawarehouseuseractivities_client_test.go @@ -44,7 +44,7 @@ func ExampleDataWarehouseUserActivitiesClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ListDataWarehouseUserActivities.json -func ExampleDataWarehouseUserActivitiesClient_ListByDatabase() { +func ExampleDataWarehouseUserActivitiesClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -56,7 +56,7 @@ func ExampleDataWarehouseUserActivitiesClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_deletedservers_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_deletedservers_client_test.go index 8db5c4fb3206..41d3fecc1837 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_deletedservers_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_deletedservers_client_test.go @@ -19,7 +19,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/DeletedServerListBySubscription.json -func ExampleDeletedServersClient_List() { +func ExampleDeletedServersClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -31,7 +31,7 @@ func ExampleDeletedServersClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(nil) + pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { @@ -71,7 +71,7 @@ func ExampleDeletedServersClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/DeletedServerList.json -func ExampleDeletedServersClient_ListByLocation() { +func ExampleDeletedServersClient_NewListByLocationPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -83,7 +83,7 @@ func ExampleDeletedServersClient_ListByLocation() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByLocation("", + pager := client.NewListByLocationPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_distributedavailabilitygroups_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_distributedavailabilitygroups_client_test.go index 343b62a20c12..a6f002e0cbbe 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_distributedavailabilitygroups_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_distributedavailabilitygroups_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/DistributedAvailabilityGroupsListByInstance.json -func ExampleDistributedAvailabilityGroupsClient_ListByInstance() { +func ExampleDistributedAvailabilityGroupsClient_NewListByInstancePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleDistributedAvailabilityGroupsClient_ListByInstance() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInstance("", + pager := client.NewListByInstancePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_elasticpoolactivities_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_elasticpoolactivities_client_test.go index 188caeca8049..27d462b92e1d 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_elasticpoolactivities_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_elasticpoolactivities_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ElasticPoolActivityList.json -func ExampleElasticPoolActivitiesClient_ListByElasticPool() { +func ExampleElasticPoolActivitiesClient_NewListByElasticPoolPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleElasticPoolActivitiesClient_ListByElasticPool() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByElasticPool("", + pager := client.NewListByElasticPoolPager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_elasticpooldatabaseactivities_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_elasticpooldatabaseactivities_client_test.go index b42dcc523ebe..44c395c8836d 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_elasticpooldatabaseactivities_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_elasticpooldatabaseactivities_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ElasticPoolDatabaseActivityList.json -func ExampleElasticPoolDatabaseActivitiesClient_ListByElasticPool() { +func ExampleElasticPoolDatabaseActivitiesClient_NewListByElasticPoolPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleElasticPoolDatabaseActivitiesClient_ListByElasticPool() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByElasticPool("", + pager := client.NewListByElasticPoolPager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_elasticpooloperations_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_elasticpooloperations_client_test.go index 3f7cc6f54084..4bd277f43667 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_elasticpooloperations_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_elasticpooloperations_client_test.go @@ -42,7 +42,7 @@ func ExampleElasticPoolOperationsClient_Cancel() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ListElasticPoolOperations.json -func ExampleElasticPoolOperationsClient_ListByElasticPool() { +func ExampleElasticPoolOperationsClient_NewListByElasticPoolPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -54,7 +54,7 @@ func ExampleElasticPoolOperationsClient_ListByElasticPool() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByElasticPool("", + pager := client.NewListByElasticPoolPager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_elasticpools_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_elasticpools_client_test.go index c75b7230ca66..a6fd482cebf4 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_elasticpools_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_elasticpools_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ElasticPoolMetricsListWithFilter.json -func ExampleElasticPoolsClient_ListMetrics() { +func ExampleElasticPoolsClient_NewListMetricsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleElasticPoolsClient_ListMetrics() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListMetrics("", + pager := client.NewListMetricsPager("", "", "", "", @@ -51,7 +51,7 @@ func ExampleElasticPoolsClient_ListMetrics() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ElasticPoolMetricsDefinitionsList.json -func ExampleElasticPoolsClient_ListMetricDefinitions() { +func ExampleElasticPoolsClient_NewListMetricDefinitionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -63,7 +63,7 @@ func ExampleElasticPoolsClient_ListMetricDefinitions() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListMetricDefinitions("", + pager := client.NewListMetricDefinitionsPager("", "", "", nil) @@ -81,7 +81,7 @@ func ExampleElasticPoolsClient_ListMetricDefinitions() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-08-01-preview/examples/ElasticPoolListByServer.json -func ExampleElasticPoolsClient_ListByServer() { +func ExampleElasticPoolsClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -93,7 +93,7 @@ func ExampleElasticPoolsClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", &armsql.ElasticPoolsClientListByServerOptions{Skip: nil}) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_encryptionprotectors_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_encryptionprotectors_client_test.go index 6c9f71e341c7..456b648a8310 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_encryptionprotectors_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_encryptionprotectors_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/EncryptionProtectorList.json -func ExampleEncryptionProtectorsClient_ListByServer() { +func ExampleEncryptionProtectorsClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleEncryptionProtectorsClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_endpointcertificates_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_endpointcertificates_client_test.go index 7ce47f400585..a24e342506f1 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_endpointcertificates_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_endpointcertificates_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/EndpointCertificatesListByInstance.json -func ExampleEndpointCertificatesClient_ListByInstance() { +func ExampleEndpointCertificatesClient_NewListByInstancePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleEndpointCertificatesClient_ListByInstance() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInstance("", + pager := client.NewListByInstancePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_extendeddatabaseblobauditingpolicies_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_extendeddatabaseblobauditingpolicies_client_test.go index 21b00d5471ad..45e7ed42b081 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_extendeddatabaseblobauditingpolicies_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_extendeddatabaseblobauditingpolicies_client_test.go @@ -76,7 +76,7 @@ func ExampleExtendedDatabaseBlobAuditingPoliciesClient_CreateOrUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/DatabaseExtendedAuditingSettingsList.json -func ExampleExtendedDatabaseBlobAuditingPoliciesClient_ListByDatabase() { +func ExampleExtendedDatabaseBlobAuditingPoliciesClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -88,7 +88,7 @@ func ExampleExtendedDatabaseBlobAuditingPoliciesClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_extendedserverblobauditingpolicies_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_extendedserverblobauditingpolicies_client_test.go index 660eb1964ed4..17fddb02cd6b 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_extendedserverblobauditingpolicies_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_extendedserverblobauditingpolicies_client_test.go @@ -92,7 +92,7 @@ func ExampleExtendedServerBlobAuditingPoliciesClient_BeginCreateOrUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ServerExtendedAuditingSettingsList.json -func ExampleExtendedServerBlobAuditingPoliciesClient_ListByServer() { +func ExampleExtendedServerBlobAuditingPoliciesClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -104,7 +104,7 @@ func ExampleExtendedServerBlobAuditingPoliciesClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_failovergroups_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_failovergroups_client_test.go index e99b9e7d34e5..e796d66614bb 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_failovergroups_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_failovergroups_client_test.go @@ -165,7 +165,7 @@ func ExampleFailoverGroupsClient_BeginUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/FailoverGroupList.json -func ExampleFailoverGroupsClient_ListByServer() { +func ExampleFailoverGroupsClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -177,7 +177,7 @@ func ExampleFailoverGroupsClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_firewallrules_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_firewallrules_client_test.go index e22908e7d557..4a4a343c2edc 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_firewallrules_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_firewallrules_client_test.go @@ -100,7 +100,7 @@ func ExampleFirewallRulesClient_Delete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/FirewallRuleList.json -func ExampleFirewallRulesClient_ListByServer() { +func ExampleFirewallRulesClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -112,7 +112,7 @@ func ExampleFirewallRulesClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_geobackuppolicies_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_geobackuppolicies_client_test.go index 4380ee46ae41..c7d5c3a19da8 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_geobackuppolicies_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_geobackuppolicies_client_test.go @@ -77,7 +77,7 @@ func ExampleGeoBackupPoliciesClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/GeoBackupPoliciesList.json -func ExampleGeoBackupPoliciesClient_ListByDatabase() { +func ExampleGeoBackupPoliciesClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -89,7 +89,7 @@ func ExampleGeoBackupPoliciesClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_instancefailovergroups_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_instancefailovergroups_client_test.go index b6657bf01339..40771c5e0562 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_instancefailovergroups_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_instancefailovergroups_client_test.go @@ -126,7 +126,7 @@ func ExampleInstanceFailoverGroupsClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/InstanceFailoverGroupList.json -func ExampleInstanceFailoverGroupsClient_ListByLocation() { +func ExampleInstanceFailoverGroupsClient_NewListByLocationPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -138,7 +138,7 @@ func ExampleInstanceFailoverGroupsClient_ListByLocation() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByLocation("", + pager := client.NewListByLocationPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_instancepools_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_instancepools_client_test.go index 5a8d620bda3e..98183a22240c 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_instancepools_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_instancepools_client_test.go @@ -154,7 +154,7 @@ func ExampleInstancePoolsClient_BeginUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ListInstancePoolsByResourceGroup.json -func ExampleInstancePoolsClient_ListByResourceGroup() { +func ExampleInstancePoolsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -166,7 +166,7 @@ func ExampleInstancePoolsClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -182,7 +182,7 @@ func ExampleInstancePoolsClient_ListByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ListInstancePoolsBySubscriptionId.json -func ExampleInstancePoolsClient_List() { +func ExampleInstancePoolsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -194,7 +194,7 @@ func ExampleInstancePoolsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(nil) + pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_ipv6firewallrules_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_ipv6firewallrules_client_test.go index a0fe60aab940..113ebffa6f87 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_ipv6firewallrules_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_ipv6firewallrules_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/IPv6FirewallRuleList.json -func ExampleIPv6FirewallRulesClient_ListByServer() { +func ExampleIPv6FirewallRulesClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleIPv6FirewallRulesClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_jobagents_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_jobagents_client_test.go index 5739cf9fca72..66a05eec0366 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_jobagents_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_jobagents_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ListJobAgentsByServer.json -func ExampleJobAgentsClient_ListByServer() { +func ExampleJobAgentsClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleJobAgentsClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_jobcredentials_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_jobcredentials_client_test.go index 60d7c2ffc6f7..8198e5cd9d30 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_jobcredentials_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_jobcredentials_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ListJobCredentialsByAgent.json -func ExampleJobCredentialsClient_ListByAgent() { +func ExampleJobCredentialsClient_NewListByAgentPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleJobCredentialsClient_ListByAgent() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByAgent("", + pager := client.NewListByAgentPager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_jobexecutions_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_jobexecutions_client_test.go index ec14c3a96795..ee035063048f 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_jobexecutions_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_jobexecutions_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ListJobExecutionsByAgentWithFilter.json -func ExampleJobExecutionsClient_ListByAgent() { +func ExampleJobExecutionsClient_NewListByAgentPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleJobExecutionsClient_ListByAgent() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByAgent("", + pager := client.NewListByAgentPager("", "", "", &armsql.JobExecutionsClientListByAgentOptions{CreateTimeMin: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-21T19:00:00Z"); return t }()), @@ -115,7 +115,7 @@ func ExampleJobExecutionsClient_BeginCreate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ListJobExecutionsByJob.json -func ExampleJobExecutionsClient_ListByJob() { +func ExampleJobExecutionsClient_NewListByJobPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -127,7 +127,7 @@ func ExampleJobExecutionsClient_ListByJob() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByJob("", + pager := client.NewListByJobPager("", "", "", "", diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_jobs_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_jobs_client_test.go index 25952c53e055..55dfe64f7a37 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_jobs_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_jobs_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ListJobsByAgent.json -func ExampleJobsClient_ListByAgent() { +func ExampleJobsClient_NewListByAgentPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleJobsClient_ListByAgent() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByAgent("", + pager := client.NewListByAgentPager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_jobstepexecutions_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_jobstepexecutions_client_test.go index bee8cd27ad5c..6e3641f61d8b 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_jobstepexecutions_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_jobstepexecutions_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ListJobExecutionSteps.json -func ExampleJobStepExecutionsClient_ListByJobExecution() { +func ExampleJobStepExecutionsClient_NewListByJobExecutionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleJobStepExecutionsClient_ListByJobExecution() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByJobExecution("", + pager := client.NewListByJobExecutionPager("", "", "", "", diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_jobsteps_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_jobsteps_client_test.go index 61906bc48a4b..e5249b8b0bab 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_jobsteps_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_jobsteps_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ListJobStepsByVersion.json -func ExampleJobStepsClient_ListByVersion() { +func ExampleJobStepsClient_NewListByVersionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleJobStepsClient_ListByVersion() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByVersion("", + pager := client.NewListByVersionPager("", "", "", "", @@ -79,7 +79,7 @@ func ExampleJobStepsClient_GetByVersion() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ListJobStepsByJob.json -func ExampleJobStepsClient_ListByJob() { +func ExampleJobStepsClient_NewListByJobPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -91,7 +91,7 @@ func ExampleJobStepsClient_ListByJob() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByJob("", + pager := client.NewListByJobPager("", "", "", "", diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_jobtargetexecutions_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_jobtargetexecutions_client_test.go index 6cee919b1224..2e56bf188644 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_jobtargetexecutions_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_jobtargetexecutions_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ListJobExecutionTargetsByExecution.json -func ExampleJobTargetExecutionsClient_ListByJobExecution() { +func ExampleJobTargetExecutionsClient_NewListByJobExecutionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleJobTargetExecutionsClient_ListByJobExecution() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByJobExecution("", + pager := client.NewListByJobExecutionPager("", "", "", "", @@ -56,7 +56,7 @@ func ExampleJobTargetExecutionsClient_ListByJobExecution() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ListJobExecutionTargetsByStep.json -func ExampleJobTargetExecutionsClient_ListByStep() { +func ExampleJobTargetExecutionsClient_NewListByStepPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -68,7 +68,7 @@ func ExampleJobTargetExecutionsClient_ListByStep() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByStep("", + pager := client.NewListByStepPager("", "", "", "", diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_jobtargetgroups_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_jobtargetgroups_client_test.go index adb0018bbc1c..33c725b2dca5 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_jobtargetgroups_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_jobtargetgroups_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ListJobTargetGroups.json -func ExampleJobTargetGroupsClient_ListByAgent() { +func ExampleJobTargetGroupsClient_NewListByAgentPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleJobTargetGroupsClient_ListByAgent() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByAgent("", + pager := client.NewListByAgentPager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_jobversions_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_jobversions_client_test.go index b87d93a1ffb5..ae28bec9bd53 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_jobversions_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_jobversions_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ListJobVersions.json -func ExampleJobVersionsClient_ListByJob() { +func ExampleJobVersionsClient_NewListByJobPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleJobVersionsClient_ListByJob() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByJob("", + pager := client.NewListByJobPager("", "", "", "", diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_ledgerdigestuploads_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_ledgerdigestuploads_client_test.go index a766a3841dd7..bfd1fb200dc4 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_ledgerdigestuploads_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_ledgerdigestuploads_client_test.go @@ -84,7 +84,7 @@ func ExampleLedgerDigestUploadsClient_BeginCreateOrUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-02-01-preview/examples/LedgerDigestUploadsList.json -func ExampleLedgerDigestUploadsClient_ListByDatabase() { +func ExampleLedgerDigestUploadsClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -96,7 +96,7 @@ func ExampleLedgerDigestUploadsClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_longtermretentionbackups_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_longtermretentionbackups_client_test.go index 4e183aa35ff4..5bf55ab3c8ad 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_longtermretentionbackups_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_longtermretentionbackups_client_test.go @@ -153,7 +153,7 @@ func ExampleLongTermRetentionBackupsClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/LongTermRetentionBackupListByDatabase.json -func ExampleLongTermRetentionBackupsClient_ListByDatabase() { +func ExampleLongTermRetentionBackupsClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -165,7 +165,7 @@ func ExampleLongTermRetentionBackupsClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", &armsql.LongTermRetentionBackupsClientListByDatabaseOptions{OnlyLatestPerDatabase: nil, @@ -185,7 +185,7 @@ func ExampleLongTermRetentionBackupsClient_ListByDatabase() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/LongTermRetentionBackupListByLocation.json -func ExampleLongTermRetentionBackupsClient_ListByLocation() { +func ExampleLongTermRetentionBackupsClient_NewListByLocationPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -197,7 +197,7 @@ func ExampleLongTermRetentionBackupsClient_ListByLocation() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByLocation("", + pager := client.NewListByLocationPager("", &armsql.LongTermRetentionBackupsClientListByLocationOptions{OnlyLatestPerDatabase: nil, DatabaseState: nil, }) @@ -215,7 +215,7 @@ func ExampleLongTermRetentionBackupsClient_ListByLocation() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/LongTermRetentionBackupListByServer.json -func ExampleLongTermRetentionBackupsClient_ListByServer() { +func ExampleLongTermRetentionBackupsClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -227,7 +227,7 @@ func ExampleLongTermRetentionBackupsClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", &armsql.LongTermRetentionBackupsClientListByServerOptions{OnlyLatestPerDatabase: nil, DatabaseState: nil, @@ -383,7 +383,7 @@ func ExampleLongTermRetentionBackupsClient_BeginDeleteByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/ResourceGroupBasedLongTermRetentionBackupListByDatabase.json -func ExampleLongTermRetentionBackupsClient_ListByResourceGroupDatabase() { +func ExampleLongTermRetentionBackupsClient_NewListByResourceGroupDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -395,7 +395,7 @@ func ExampleLongTermRetentionBackupsClient_ListByResourceGroupDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroupDatabase("", + pager := client.NewListByResourceGroupDatabasePager("", "", "", "", @@ -416,7 +416,7 @@ func ExampleLongTermRetentionBackupsClient_ListByResourceGroupDatabase() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/ResourceGroupBasedLongTermRetentionBackupListByLocation.json -func ExampleLongTermRetentionBackupsClient_ListByResourceGroupLocation() { +func ExampleLongTermRetentionBackupsClient_NewListByResourceGroupLocationPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -428,7 +428,7 @@ func ExampleLongTermRetentionBackupsClient_ListByResourceGroupLocation() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroupLocation("", + pager := client.NewListByResourceGroupLocationPager("", "", &armsql.LongTermRetentionBackupsClientListByResourceGroupLocationOptions{OnlyLatestPerDatabase: nil, DatabaseState: nil, @@ -447,7 +447,7 @@ func ExampleLongTermRetentionBackupsClient_ListByResourceGroupLocation() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/ResourceGroupBasedLongTermRetentionBackupListByServer.json -func ExampleLongTermRetentionBackupsClient_ListByResourceGroupServer() { +func ExampleLongTermRetentionBackupsClient_NewListByResourceGroupServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -459,7 +459,7 @@ func ExampleLongTermRetentionBackupsClient_ListByResourceGroupServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroupServer("", + pager := client.NewListByResourceGroupServerPager("", "", "", &armsql.LongTermRetentionBackupsClientListByResourceGroupServerOptions{OnlyLatestPerDatabase: nil, diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_longtermretentionmanagedinstancebackups_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_longtermretentionmanagedinstancebackups_client_test.go index 20374aae7441..cd5f8ca56780 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_longtermretentionmanagedinstancebackups_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_longtermretentionmanagedinstancebackups_client_test.go @@ -76,7 +76,7 @@ func ExampleLongTermRetentionManagedInstanceBackupsClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/ManagedInstanceLongTermRetentionBackupListByDatabase.json -func ExampleLongTermRetentionManagedInstanceBackupsClient_ListByDatabase() { +func ExampleLongTermRetentionManagedInstanceBackupsClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -88,7 +88,7 @@ func ExampleLongTermRetentionManagedInstanceBackupsClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", &armsql.LongTermRetentionManagedInstanceBackupsClientListByDatabaseOptions{OnlyLatestPerDatabase: nil, @@ -108,7 +108,7 @@ func ExampleLongTermRetentionManagedInstanceBackupsClient_ListByDatabase() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/ManagedInstanceLongTermRetentionBackupListByInstance.json -func ExampleLongTermRetentionManagedInstanceBackupsClient_ListByInstance() { +func ExampleLongTermRetentionManagedInstanceBackupsClient_NewListByInstancePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -120,7 +120,7 @@ func ExampleLongTermRetentionManagedInstanceBackupsClient_ListByInstance() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInstance("", + pager := client.NewListByInstancePager("", "", &armsql.LongTermRetentionManagedInstanceBackupsClientListByInstanceOptions{OnlyLatestPerDatabase: nil, DatabaseState: nil, @@ -139,7 +139,7 @@ func ExampleLongTermRetentionManagedInstanceBackupsClient_ListByInstance() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/ManagedInstanceLongTermRetentionBackupListByLocation.json -func ExampleLongTermRetentionManagedInstanceBackupsClient_ListByLocation() { +func ExampleLongTermRetentionManagedInstanceBackupsClient_NewListByLocationPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -151,7 +151,7 @@ func ExampleLongTermRetentionManagedInstanceBackupsClient_ListByLocation() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByLocation("", + pager := client.NewListByLocationPager("", &armsql.LongTermRetentionManagedInstanceBackupsClientListByLocationOptions{OnlyLatestPerDatabase: nil, DatabaseState: nil, }) @@ -228,7 +228,7 @@ func ExampleLongTermRetentionManagedInstanceBackupsClient_BeginDeleteByResourceG } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/ResourceGroupBasedManagedInstanceLongTermRetentionBackupListByDatabase.json -func ExampleLongTermRetentionManagedInstanceBackupsClient_ListByResourceGroupDatabase() { +func ExampleLongTermRetentionManagedInstanceBackupsClient_NewListByResourceGroupDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -240,7 +240,7 @@ func ExampleLongTermRetentionManagedInstanceBackupsClient_ListByResourceGroupDat log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroupDatabase("", + pager := client.NewListByResourceGroupDatabasePager("", "", "", "", @@ -261,7 +261,7 @@ func ExampleLongTermRetentionManagedInstanceBackupsClient_ListByResourceGroupDat } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/ResourceGroupBasedManagedInstanceLongTermRetentionBackupListByInstance.json -func ExampleLongTermRetentionManagedInstanceBackupsClient_ListByResourceGroupInstance() { +func ExampleLongTermRetentionManagedInstanceBackupsClient_NewListByResourceGroupInstancePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -273,7 +273,7 @@ func ExampleLongTermRetentionManagedInstanceBackupsClient_ListByResourceGroupIns log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroupInstance("", + pager := client.NewListByResourceGroupInstancePager("", "", "", &armsql.LongTermRetentionManagedInstanceBackupsClientListByResourceGroupInstanceOptions{OnlyLatestPerDatabase: nil, @@ -293,7 +293,7 @@ func ExampleLongTermRetentionManagedInstanceBackupsClient_ListByResourceGroupIns } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/ResourceGroupBasedManagedInstanceLongTermRetentionBackupListByLocation.json -func ExampleLongTermRetentionManagedInstanceBackupsClient_ListByResourceGroupLocation() { +func ExampleLongTermRetentionManagedInstanceBackupsClient_NewListByResourceGroupLocationPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -305,7 +305,7 @@ func ExampleLongTermRetentionManagedInstanceBackupsClient_ListByResourceGroupLoc log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroupLocation("", + pager := client.NewListByResourceGroupLocationPager("", "", &armsql.LongTermRetentionManagedInstanceBackupsClientListByResourceGroupLocationOptions{OnlyLatestPerDatabase: nil, DatabaseState: nil, diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_longtermretentionpolicies_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_longtermretentionpolicies_client_test.go index 2b06fc25c4a9..98a87f95c559 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_longtermretentionpolicies_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_longtermretentionpolicies_client_test.go @@ -87,7 +87,7 @@ func ExampleLongTermRetentionPoliciesClient_BeginCreateOrUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/LongTermRetentionPolicyListByDatabase.json -func ExampleLongTermRetentionPoliciesClient_ListByDatabase() { +func ExampleLongTermRetentionPoliciesClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -99,7 +99,7 @@ func ExampleLongTermRetentionPoliciesClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedbackupshorttermretentionpolicies_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedbackupshorttermretentionpolicies_client_test.go index 8a06ed61e343..419b85f6bb97 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedbackupshorttermretentionpolicies_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedbackupshorttermretentionpolicies_client_test.go @@ -121,7 +121,7 @@ func ExampleManagedBackupShortTermRetentionPoliciesClient_BeginUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/GetListManagedShortTermRetentionPolicy.json -func ExampleManagedBackupShortTermRetentionPoliciesClient_ListByDatabase() { +func ExampleManagedBackupShortTermRetentionPoliciesClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -133,7 +133,7 @@ func ExampleManagedBackupShortTermRetentionPoliciesClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasecolumns_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasecolumns_client_test.go index d6041002ecc5..21f97bb3ae37 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasecolumns_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasecolumns_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ManagedColumnsListByDatabaseMax.json -func ExampleManagedDatabaseColumnsClient_ListByDatabase() { +func ExampleManagedDatabaseColumnsClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleManagedDatabaseColumnsClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", &armsql.ManagedDatabaseColumnsClientListByDatabaseOptions{Schema: []string{ @@ -59,7 +59,7 @@ func ExampleManagedDatabaseColumnsClient_ListByDatabase() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ManagedDatabaseColumnListByTable.json -func ExampleManagedDatabaseColumnsClient_ListByTable() { +func ExampleManagedDatabaseColumnsClient_NewListByTablePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -71,7 +71,7 @@ func ExampleManagedDatabaseColumnsClient_ListByTable() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByTable("", + pager := client.NewListByTablePager("", "", "", "", diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasequeries_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasequeries_client_test.go index 1ef9afcf046b..2077eb628849 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasequeries_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasequeries_client_test.go @@ -44,7 +44,7 @@ func ExampleManagedDatabaseQueriesClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ManagedInstanceQueryStatisticsList.json -func ExampleManagedDatabaseQueriesClient_ListByQuery() { +func ExampleManagedDatabaseQueriesClient_NewListByQueryPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -56,7 +56,7 @@ func ExampleManagedDatabaseQueriesClient_ListByQuery() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByQuery("", + pager := client.NewListByQueryPager("", "", "", "", diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabases_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabases_client_test.go index 70b1c8e721bb..3c2a60ba9c88 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabases_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabases_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ManagedDatabaseListByManagedInstance.json -func ExampleManagedDatabasesClient_ListByInstance() { +func ExampleManagedDatabasesClient_NewListByInstancePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleManagedDatabasesClient_ListByInstance() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInstance("", + pager := client.NewListByInstancePager("", "", nil) for pager.More() { @@ -214,7 +214,7 @@ func ExampleManagedDatabasesClient_BeginCompleteRestore() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/InaccessibleManagedDatabaseListByManagedInstance.json -func ExampleManagedDatabasesClient_ListInaccessibleByInstance() { +func ExampleManagedDatabasesClient_NewListInaccessibleByInstancePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -226,7 +226,7 @@ func ExampleManagedDatabasesClient_ListInaccessibleByInstance() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListInaccessibleByInstance("", + pager := client.NewListInaccessibleByInstancePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabaseschemas_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabaseschemas_client_test.go index 8758524df55b..6f00d0e5fd9a 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabaseschemas_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabaseschemas_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ManagedDatabaseSchemaListByDatabase.json -func ExampleManagedDatabaseSchemasClient_ListByDatabase() { +func ExampleManagedDatabaseSchemasClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleManagedDatabaseSchemasClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", &armsql.ManagedDatabaseSchemasClientListByDatabaseOptions{Filter: nil}) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasesecurityalertpolicies_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasesecurityalertpolicies_client_test.go index 7de35d75eb57..83928f60f8fd 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasesecurityalertpolicies_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasesecurityalertpolicies_client_test.go @@ -87,7 +87,7 @@ func ExampleManagedDatabaseSecurityAlertPoliciesClient_CreateOrUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ManagedDatabaseSecurityAlertListByDatabase.json -func ExampleManagedDatabaseSecurityAlertPoliciesClient_ListByDatabase() { +func ExampleManagedDatabaseSecurityAlertPoliciesClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -99,7 +99,7 @@ func ExampleManagedDatabaseSecurityAlertPoliciesClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasesecurityevents_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasesecurityevents_client_test.go index 442577710304..4d8dc3afb860 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasesecurityevents_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasesecurityevents_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ManagedDatabaseSecurityEventsGetMax.json -func ExampleManagedDatabaseSecurityEventsClient_ListByDatabase() { +func ExampleManagedDatabaseSecurityEventsClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleManagedDatabaseSecurityEventsClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", &armsql.ManagedDatabaseSecurityEventsClientListByDatabaseOptions{Filter: to.Ptr(""), diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasesensitivitylabels_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasesensitivitylabels_client_test.go index 7eea1ecc249b..05f5a457fb94 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasesensitivitylabels_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasesensitivitylabels_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/ManagedDatabaseSensitivityLabelsListByDatabaseCurrent.json -func ExampleManagedDatabaseSensitivityLabelsClient_ListCurrentByDatabase() { +func ExampleManagedDatabaseSensitivityLabelsClient_NewListCurrentByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleManagedDatabaseSensitivityLabelsClient_ListCurrentByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListCurrentByDatabase("", + pager := client.NewListCurrentByDatabasePager("", "", "", &armsql.ManagedDatabaseSensitivityLabelsClientListCurrentByDatabaseOptions{SkipToken: nil, @@ -118,7 +118,7 @@ func ExampleManagedDatabaseSensitivityLabelsClient_Update() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/ManagedDatabaseSensitivityLabelsListByDatabaseRecommended.json -func ExampleManagedDatabaseSensitivityLabelsClient_ListRecommendedByDatabase() { +func ExampleManagedDatabaseSensitivityLabelsClient_NewListRecommendedByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -130,7 +130,7 @@ func ExampleManagedDatabaseSensitivityLabelsClient_ListRecommendedByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListRecommendedByDatabase("", + pager := client.NewListRecommendedByDatabasePager("", "", "", &armsql.ManagedDatabaseSensitivityLabelsClientListRecommendedByDatabaseOptions{SkipToken: nil, @@ -300,7 +300,7 @@ func ExampleManagedDatabaseSensitivityLabelsClient_EnableRecommendation() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/ManagedDatabaseSensitivityLabelsListByDatabase.json -func ExampleManagedDatabaseSensitivityLabelsClient_ListByDatabase() { +func ExampleManagedDatabaseSensitivityLabelsClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -312,7 +312,7 @@ func ExampleManagedDatabaseSensitivityLabelsClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", &armsql.ManagedDatabaseSensitivityLabelsClientListByDatabaseOptions{Filter: nil}) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasetables_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasetables_client_test.go index 1b7254f0bf53..0b51cd68add0 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasetables_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasetables_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ManagedDatabaseTableListBySchema.json -func ExampleManagedDatabaseTablesClient_ListBySchema() { +func ExampleManagedDatabaseTablesClient_NewListBySchemaPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleManagedDatabaseTablesClient_ListBySchema() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListBySchema("", + pager := client.NewListBySchemaPager("", "", "", "", diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasetransparentdataencryption_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasetransparentdataencryption_client_test.go index aadf811ded57..e834f95a2cf3 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasetransparentdataencryption_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasetransparentdataencryption_client_test.go @@ -77,7 +77,7 @@ func ExampleManagedDatabaseTransparentDataEncryptionClient_CreateOrUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ManagedTransparentDataEncryptionList.json -func ExampleManagedDatabaseTransparentDataEncryptionClient_ListByDatabase() { +func ExampleManagedDatabaseTransparentDataEncryptionClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -89,7 +89,7 @@ func ExampleManagedDatabaseTransparentDataEncryptionClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasevulnerabilityassessments_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasevulnerabilityassessments_client_test.go index 0de12ee0dc4f..6ff516392b95 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasevulnerabilityassessments_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasevulnerabilityassessments_client_test.go @@ -110,7 +110,7 @@ func ExampleManagedDatabaseVulnerabilityAssessmentsClient_Delete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ManagedDatabaseVulnerabilityAssessmentListByDatabase.json -func ExampleManagedDatabaseVulnerabilityAssessmentsClient_ListByDatabase() { +func ExampleManagedDatabaseVulnerabilityAssessmentsClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -122,7 +122,7 @@ func ExampleManagedDatabaseVulnerabilityAssessmentsClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasevulnerabilityassessmentscans_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasevulnerabilityassessmentscans_client_test.go index 4dfc4dd0915b..502863ba5578 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasevulnerabilityassessmentscans_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_manageddatabasevulnerabilityassessmentscans_client_test.go @@ -78,7 +78,7 @@ func ExampleManagedDatabaseVulnerabilityAssessmentScansClient_Export() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ManagedDatabaseVulnerabilityAssessmentScanRecordsListByDatabase.json -func ExampleManagedDatabaseVulnerabilityAssessmentScansClient_ListByDatabase() { +func ExampleManagedDatabaseVulnerabilityAssessmentScansClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -90,7 +90,7 @@ func ExampleManagedDatabaseVulnerabilityAssessmentScansClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", armsql.VulnerabilityAssessmentNameDefault, diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceadministrators_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceadministrators_client_test.go index e8cc05e23aae..8a2528c4d733 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceadministrators_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceadministrators_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ManagedInstanceAdministratorListByInstance.json -func ExampleManagedInstanceAdministratorsClient_ListByInstance() { +func ExampleManagedInstanceAdministratorsClient_NewListByInstancePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleManagedInstanceAdministratorsClient_ListByInstance() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInstance("", + pager := client.NewListByInstancePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceazureadonlyauthentications_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceazureadonlyauthentications_client_test.go index cbc59f3d3b34..60ad8e55fb90 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceazureadonlyauthentications_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceazureadonlyauthentications_client_test.go @@ -111,7 +111,7 @@ func ExampleManagedInstanceAzureADOnlyAuthenticationsClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ManagedInstanceAzureADOnlyAuthListByInstance.json -func ExampleManagedInstanceAzureADOnlyAuthenticationsClient_ListByInstance() { +func ExampleManagedInstanceAzureADOnlyAuthenticationsClient_NewListByInstancePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -123,7 +123,7 @@ func ExampleManagedInstanceAzureADOnlyAuthenticationsClient_ListByInstance() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInstance("", + pager := client.NewListByInstancePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceencryptionprotectors_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceencryptionprotectors_client_test.go index 6c7b8d7a036a..a48fe5406793 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceencryptionprotectors_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceencryptionprotectors_client_test.go @@ -49,7 +49,7 @@ func ExampleManagedInstanceEncryptionProtectorsClient_BeginRevalidate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ManagedInstanceEncryptionProtectorList.json -func ExampleManagedInstanceEncryptionProtectorsClient_ListByInstance() { +func ExampleManagedInstanceEncryptionProtectorsClient_NewListByInstancePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -61,7 +61,7 @@ func ExampleManagedInstanceEncryptionProtectorsClient_ListByInstance() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInstance("", + pager := client.NewListByInstancePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstancekeys_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstancekeys_client_test.go index 5fbe5b7d9130..c85f548dd277 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstancekeys_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstancekeys_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ManagedInstanceKeyList.json -func ExampleManagedInstanceKeysClient_ListByInstance() { +func ExampleManagedInstanceKeysClient_NewListByInstancePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleManagedInstanceKeysClient_ListByInstance() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInstance("", + pager := client.NewListByInstancePager("", "", &armsql.ManagedInstanceKeysClientListByInstanceOptions{Filter: nil}) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstancelongtermretentionpolicies_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstancelongtermretentionpolicies_client_test.go index 0fd037e76408..2c35a4b89517 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstancelongtermretentionpolicies_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstancelongtermretentionpolicies_client_test.go @@ -87,7 +87,7 @@ func ExampleManagedInstanceLongTermRetentionPoliciesClient_BeginCreateOrUpdate() } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ManagedInstanceLongTermRetentionPolicyListByDatabase.json -func ExampleManagedInstanceLongTermRetentionPoliciesClient_ListByDatabase() { +func ExampleManagedInstanceLongTermRetentionPoliciesClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -99,7 +99,7 @@ func ExampleManagedInstanceLongTermRetentionPoliciesClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceoperations_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceoperations_client_test.go index 4c9a27cfe271..931d31eee7e9 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceoperations_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceoperations_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ListManagedInstanceOperations.json -func ExampleManagedInstanceOperationsClient_ListByManagedInstance() { +func ExampleManagedInstanceOperationsClient_NewListByManagedInstancePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleManagedInstanceOperationsClient_ListByManagedInstance() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByManagedInstance("", + pager := client.NewListByManagedInstancePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceprivateendpointconnections_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceprivateendpointconnections_client_test.go index 2b6ac26ebac1..e5b7d08ea9ac 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceprivateendpointconnections_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceprivateendpointconnections_client_test.go @@ -114,7 +114,7 @@ func ExampleManagedInstancePrivateEndpointConnectionsClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ManagedInstancePrivateEndpointConnectionList.json -func ExampleManagedInstancePrivateEndpointConnectionsClient_ListByManagedInstance() { +func ExampleManagedInstancePrivateEndpointConnectionsClient_NewListByManagedInstancePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -126,7 +126,7 @@ func ExampleManagedInstancePrivateEndpointConnectionsClient_ListByManagedInstanc log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByManagedInstance("", + pager := client.NewListByManagedInstancePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceprivatelinkresources_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceprivatelinkresources_client_test.go index d38698f6b3ca..80adaf471608 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceprivatelinkresources_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstanceprivatelinkresources_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ManagedInstancePrivateLinkResourcesList.json -func ExampleManagedInstancePrivateLinkResourcesClient_ListByManagedInstance() { +func ExampleManagedInstancePrivateLinkResourcesClient_NewListByManagedInstancePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleManagedInstancePrivateLinkResourcesClient_ListByManagedInstance() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByManagedInstance("", + pager := client.NewListByManagedInstancePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstances_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstances_client_test.go index bd8ae4878804..1ac0f1a0691f 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstances_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstances_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/ManagedInstanceListByInstancePool.json -func ExampleManagedInstancesClient_ListByInstancePool() { +func ExampleManagedInstancesClient_NewListByInstancePoolPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleManagedInstancesClient_ListByInstancePool() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInstancePool("", + pager := client.NewListByInstancePoolPager("", "", &armsql.ManagedInstancesClientListByInstancePoolOptions{Expand: nil}) for pager.More() { @@ -49,7 +49,7 @@ func ExampleManagedInstancesClient_ListByInstancePool() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/ManagedInstanceList.json -func ExampleManagedInstancesClient_List() { +func ExampleManagedInstancesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -61,7 +61,7 @@ func ExampleManagedInstancesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(&armsql.ManagedInstancesClientListOptions{Expand: nil}) + pager := client.NewListPager(&armsql.ManagedInstancesClientListOptions{Expand: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { @@ -76,7 +76,7 @@ func ExampleManagedInstancesClient_List() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/ManagedInstanceListByResourceGroup.json -func ExampleManagedInstancesClient_ListByResourceGroup() { +func ExampleManagedInstancesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -88,7 +88,7 @@ func ExampleManagedInstancesClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", &armsql.ManagedInstancesClientListByResourceGroupOptions{Expand: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -259,7 +259,7 @@ func ExampleManagedInstancesClient_BeginUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/ManagedInstanceTopQueriesList.json -func ExampleManagedInstancesClient_ListByManagedInstance() { +func ExampleManagedInstancesClient_NewListByManagedInstancePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -271,7 +271,7 @@ func ExampleManagedInstancesClient_ListByManagedInstance() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByManagedInstance("", + pager := client.NewListByManagedInstancePager("", "", &armsql.ManagedInstancesClientListByManagedInstanceOptions{NumberOfQueries: nil, Databases: nil, diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstancevulnerabilityassessments_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstancevulnerabilityassessments_client_test.go index fb22146053a0..de57049ce247 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstancevulnerabilityassessments_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedinstancevulnerabilityassessments_client_test.go @@ -108,7 +108,7 @@ func ExampleManagedInstanceVulnerabilityAssessmentsClient_Delete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ManagedInstanceVulnerabilityAssessmentListByInstance.json -func ExampleManagedInstanceVulnerabilityAssessmentsClient_ListByInstance() { +func ExampleManagedInstanceVulnerabilityAssessmentsClient_NewListByInstancePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -120,7 +120,7 @@ func ExampleManagedInstanceVulnerabilityAssessmentsClient_ListByInstance() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInstance("", + pager := client.NewListByInstancePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedrestorabledroppeddatabasebackupshorttermretentionpolicies_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedrestorabledroppeddatabasebackupshorttermretentionpolicies_client_test.go index d1bcb49e298e..0b219cb58b81 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedrestorabledroppeddatabasebackupshorttermretentionpolicies_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedrestorabledroppeddatabasebackupshorttermretentionpolicies_client_test.go @@ -121,7 +121,7 @@ func ExampleManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClie } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/GetListManagedShortTermRetentionPolicyRestorableDropped.json -func ExampleManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient_ListByRestorableDroppedDatabase() { +func ExampleManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient_NewListByRestorableDroppedDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -133,7 +133,7 @@ func ExampleManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClie log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByRestorableDroppedDatabase("", + pager := client.NewListByRestorableDroppedDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedserverdnsaliases_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedserverdnsaliases_client_test.go index c7ef76018707..428e34c868a1 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedserverdnsaliases_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedserverdnsaliases_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/ManagedServerDnsAliasList.json -func ExampleManagedServerDNSAliasesClient_ListByManagedInstance() { +func ExampleManagedServerDNSAliasesClient_NewListByManagedInstancePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleManagedServerDNSAliasesClient_ListByManagedInstance() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByManagedInstance("", + pager := client.NewListByManagedInstancePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedserversecurityalertpolicies_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedserversecurityalertpolicies_client_test.go index 369bf81a4b67..8861e8c46fc3 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_managedserversecurityalertpolicies_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_managedserversecurityalertpolicies_client_test.go @@ -91,7 +91,7 @@ func ExampleManagedServerSecurityAlertPoliciesClient_BeginCreateOrUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ManagedServerSecurityAlertListByInstance.json -func ExampleManagedServerSecurityAlertPoliciesClient_ListByInstance() { +func ExampleManagedServerSecurityAlertPoliciesClient_NewListByInstancePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -103,7 +103,7 @@ func ExampleManagedServerSecurityAlertPoliciesClient_ListByInstance() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInstance("", + pager := client.NewListByInstancePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_outboundfirewallrules_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_outboundfirewallrules_client_test.go index 375073f91791..7e901018dcfa 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_outboundfirewallrules_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_outboundfirewallrules_client_test.go @@ -106,7 +106,7 @@ func ExampleOutboundFirewallRulesClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-02-01-preview/examples/OutboundFirewallRuleList.json -func ExampleOutboundFirewallRulesClient_ListByServer() { +func ExampleOutboundFirewallRulesClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -118,7 +118,7 @@ func ExampleOutboundFirewallRulesClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_privateendpointconnections_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_privateendpointconnections_client_test.go index 76ddf5885623..b7d93221c223 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_privateendpointconnections_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_privateendpointconnections_client_test.go @@ -114,7 +114,7 @@ func ExamplePrivateEndpointConnectionsClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/PrivateEndpointConnectionList.json -func ExamplePrivateEndpointConnectionsClient_ListByServer() { +func ExamplePrivateEndpointConnectionsClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -126,7 +126,7 @@ func ExamplePrivateEndpointConnectionsClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_privatelinkresources_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_privatelinkresources_client_test.go index ac09bd301899..8cfffcb2abfb 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_privatelinkresources_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_privatelinkresources_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/PrivateLinkResourcesList.json -func ExamplePrivateLinkResourcesClient_ListByServer() { +func ExamplePrivateLinkResourcesClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExamplePrivateLinkResourcesClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_recoverabledatabases_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_recoverabledatabases_client_test.go index 7136163247e1..8c622c4aa6ed 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_recoverabledatabases_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_recoverabledatabases_client_test.go @@ -43,7 +43,7 @@ func ExampleRecoverableDatabasesClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/RecoverableDatabaseList.json -func ExampleRecoverableDatabasesClient_ListByServer() { +func ExampleRecoverableDatabasesClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -55,7 +55,7 @@ func ExampleRecoverableDatabasesClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_recoverablemanageddatabases_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_recoverablemanageddatabases_client_test.go index 82a89ccda0dc..d912421beaa5 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_recoverablemanageddatabases_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_recoverablemanageddatabases_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ListRecoverableManagedDatabasesByServer.json -func ExampleRecoverableManagedDatabasesClient_ListByInstance() { +func ExampleRecoverableManagedDatabasesClient_NewListByInstancePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleRecoverableManagedDatabasesClient_ListByInstance() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInstance("", + pager := client.NewListByInstancePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_replicationlinks_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_replicationlinks_client_test.go index eb4b72d2cd8d..978593ccbbbc 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_replicationlinks_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_replicationlinks_client_test.go @@ -19,7 +19,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/ReplicationLinkListByDatabase.json -func ExampleReplicationLinksClient_ListByDatabase() { +func ExampleReplicationLinksClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -31,7 +31,7 @@ func ExampleReplicationLinksClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) @@ -165,7 +165,7 @@ func ExampleReplicationLinksClient_BeginFailoverAllowDataLoss() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/ReplicationLinkListByServer.json -func ExampleReplicationLinksClient_ListByServer() { +func ExampleReplicationLinksClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -177,7 +177,7 @@ func ExampleReplicationLinksClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_restorabledroppeddatabases_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_restorabledroppeddatabases_client_test.go index 2e955cae0e6b..fc93f7c09afe 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_restorabledroppeddatabases_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_restorabledroppeddatabases_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/ListRestorableDroppedDatabasesByServer.json -func ExampleRestorableDroppedDatabasesClient_ListByServer() { +func ExampleRestorableDroppedDatabasesClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleRestorableDroppedDatabasesClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_restorabledroppedmanageddatabases_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_restorabledroppedmanageddatabases_client_test.go index dfba69102653..9378bae7a0b9 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_restorabledroppedmanageddatabases_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_restorabledroppedmanageddatabases_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/RestorableDroppedManagedDatabaseListByManagedInstance.json -func ExampleRestorableDroppedManagedDatabasesClient_ListByInstance() { +func ExampleRestorableDroppedManagedDatabasesClient_NewListByInstancePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleRestorableDroppedManagedDatabasesClient_ListByInstance() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInstance("", + pager := client.NewListByInstancePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_restorepoints_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_restorepoints_client_test.go index 4c1d7c7431da..90910ce2c0f8 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_restorepoints_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_restorepoints_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/DatabaseRestorePointsListByDatabase.json -func ExampleRestorePointsClient_ListByDatabase() { +func ExampleRestorePointsClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleRestorePointsClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_sensitivitylabels_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_sensitivitylabels_client_test.go index 7b5ac20d9993..acc33c9e2ece 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_sensitivitylabels_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_sensitivitylabels_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/SensitivityLabelsListByDatabaseWithSourceCurrent.json -func ExampleSensitivityLabelsClient_ListCurrentByDatabase() { +func ExampleSensitivityLabelsClient_NewListCurrentByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleSensitivityLabelsClient_ListCurrentByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListCurrentByDatabase("", + pager := client.NewListCurrentByDatabasePager("", "", "", &armsql.SensitivityLabelsClientListCurrentByDatabaseOptions{SkipToken: nil, @@ -120,7 +120,7 @@ func ExampleSensitivityLabelsClient_Update() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/SensitivityLabelsListByDatabaseWithSourceRecommended.json -func ExampleSensitivityLabelsClient_ListRecommendedByDatabase() { +func ExampleSensitivityLabelsClient_NewListRecommendedByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -132,7 +132,7 @@ func ExampleSensitivityLabelsClient_ListRecommendedByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListRecommendedByDatabase("", + pager := client.NewListRecommendedByDatabasePager("", "", "", &armsql.SensitivityLabelsClientListRecommendedByDatabaseOptions{SkipToken: nil, @@ -302,7 +302,7 @@ func ExampleSensitivityLabelsClient_EnableRecommendation() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/SensitivityLabelsListByDatabase.json -func ExampleSensitivityLabelsClient_ListByDatabase() { +func ExampleSensitivityLabelsClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -314,7 +314,7 @@ func ExampleSensitivityLabelsClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", &armsql.SensitivityLabelsClientListByDatabaseOptions{Filter: nil}) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_serverazureadadministrators_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_serverazureadadministrators_client_test.go index ca1a636dddd9..133b3bad7c4c 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_serverazureadadministrators_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_serverazureadadministrators_client_test.go @@ -114,7 +114,7 @@ func ExampleServerAzureADAdministratorsClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/AdministratorList.json -func ExampleServerAzureADAdministratorsClient_ListByServer() { +func ExampleServerAzureADAdministratorsClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -126,7 +126,7 @@ func ExampleServerAzureADAdministratorsClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_serverazureadonlyauthentications_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_serverazureadonlyauthentications_client_test.go index dc3ec4db1cc1..c0316b24c923 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_serverazureadonlyauthentications_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_serverazureadonlyauthentications_client_test.go @@ -111,7 +111,7 @@ func ExampleServerAzureADOnlyAuthenticationsClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/AzureADOnlyAuthList.json -func ExampleServerAzureADOnlyAuthenticationsClient_ListByServer() { +func ExampleServerAzureADOnlyAuthenticationsClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -123,7 +123,7 @@ func ExampleServerAzureADOnlyAuthenticationsClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_serverblobauditingpolicies_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_serverblobauditingpolicies_client_test.go index 8fdd605c8433..eb0c0a28b0e1 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_serverblobauditingpolicies_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_serverblobauditingpolicies_client_test.go @@ -91,7 +91,7 @@ func ExampleServerBlobAuditingPoliciesClient_BeginCreateOrUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ServerAuditingSettingsList.json -func ExampleServerBlobAuditingPoliciesClient_ListByServer() { +func ExampleServerBlobAuditingPoliciesClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -103,7 +103,7 @@ func ExampleServerBlobAuditingPoliciesClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_servercommunicationlinks_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_servercommunicationlinks_client_test.go index 409489955330..f9ef888f409a 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_servercommunicationlinks_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_servercommunicationlinks_client_test.go @@ -104,7 +104,7 @@ func ExampleServerCommunicationLinksClient_BeginCreateOrUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ServerCommunicationLinkList.json -func ExampleServerCommunicationLinksClient_ListByServer() { +func ExampleServerCommunicationLinksClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -116,7 +116,7 @@ func ExampleServerCommunicationLinksClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_serverconnectionpolicies_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_serverconnectionpolicies_client_test.go index 3b5f05d2fb1a..e269d191b579 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_serverconnectionpolicies_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_serverconnectionpolicies_client_test.go @@ -82,7 +82,7 @@ func ExampleServerConnectionPoliciesClient_BeginCreateOrUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-05-01-preview/examples/ServerConnectionPoliciesList.json -func ExampleServerConnectionPoliciesClient_ListByServer() { +func ExampleServerConnectionPoliciesClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -94,7 +94,7 @@ func ExampleServerConnectionPoliciesClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_serverdevopsauditsettings_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_serverdevopsauditsettings_client_test.go index c438812fbf2b..d7159b6ab0d2 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_serverdevopsauditsettings_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_serverdevopsauditsettings_client_test.go @@ -86,7 +86,7 @@ func ExampleServerDevOpsAuditSettingsClient_BeginCreateOrUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ServerDevOpsAuditSettingsList.json -func ExampleServerDevOpsAuditSettingsClient_ListByServer() { +func ExampleServerDevOpsAuditSettingsClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -98,7 +98,7 @@ func ExampleServerDevOpsAuditSettingsClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_serverdnsaliases_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_serverdnsaliases_client_test.go index 161cb17bbf21..95167dd3e33a 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_serverdnsaliases_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_serverdnsaliases_client_test.go @@ -106,7 +106,7 @@ func ExampleServerDNSAliasesClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ServerDnsAliasList.json -func ExampleServerDNSAliasesClient_ListByServer() { +func ExampleServerDNSAliasesClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -118,7 +118,7 @@ func ExampleServerDNSAliasesClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_serverkeys_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_serverkeys_client_test.go index 04d72a486e6f..b5574c0ab843 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_serverkeys_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_serverkeys_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ServerKeyList.json -func ExampleServerKeysClient_ListByServer() { +func ExampleServerKeysClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleServerKeysClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_serveroperations_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_serveroperations_client_test.go index c83d17478dc4..9bbc0fc2174c 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_serveroperations_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_serveroperations_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ListServerOperations.json -func ExampleServerOperationsClient_ListByServer() { +func ExampleServerOperationsClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleServerOperationsClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_servers_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_servers_client_test.go index 71b5a22bc9fc..b6de1d3024cf 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_servers_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_servers_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-02-01-preview/examples/ServerListByResourceGroup.json -func ExampleServersClient_ListByResourceGroup() { +func ExampleServersClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleServersClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", &armsql.ServersClientListByResourceGroupOptions{Expand: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -185,7 +185,7 @@ func ExampleServersClient_BeginUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-02-01-preview/examples/ServerList.json -func ExampleServersClient_List() { +func ExampleServersClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -197,7 +197,7 @@ func ExampleServersClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(&armsql.ServersClientListOptions{Expand: nil}) + pager := client.NewListPager(&armsql.ServersClientListOptions{Expand: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_serversecurityalertpolicies_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_serversecurityalertpolicies_client_test.go index 98b32b80afe8..eb7f0f583b55 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_serversecurityalertpolicies_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_serversecurityalertpolicies_client_test.go @@ -91,7 +91,7 @@ func ExampleServerSecurityAlertPoliciesClient_BeginCreateOrUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ServerSecurityAlertsListByServer.json -func ExampleServerSecurityAlertPoliciesClient_ListByServer() { +func ExampleServerSecurityAlertPoliciesClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -103,7 +103,7 @@ func ExampleServerSecurityAlertPoliciesClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_servertrustcertificates_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_servertrustcertificates_client_test.go index ded9610a57b0..21020b7af003 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_servertrustcertificates_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_servertrustcertificates_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-11-01-preview/examples/ServerTrustCertificatesListByInstance.json -func ExampleServerTrustCertificatesClient_ListByInstance() { +func ExampleServerTrustCertificatesClient_NewListByInstancePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleServerTrustCertificatesClient_ListByInstance() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInstance("", + pager := client.NewListByInstancePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_servertrustgroups_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_servertrustgroups_client_test.go index c04fad2fd3a6..1dd44ab431d2 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_servertrustgroups_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_servertrustgroups_client_test.go @@ -120,7 +120,7 @@ func ExampleServerTrustGroupsClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ServerTrustGroupList.json -func ExampleServerTrustGroupsClient_ListByLocation() { +func ExampleServerTrustGroupsClient_NewListByLocationPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -132,7 +132,7 @@ func ExampleServerTrustGroupsClient_ListByLocation() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByLocation("", + pager := client.NewListByLocationPager("", "", nil) for pager.More() { @@ -149,7 +149,7 @@ func ExampleServerTrustGroupsClient_ListByLocation() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ServerTrustGroupListByManagedInstance.json -func ExampleServerTrustGroupsClient_ListByInstance() { +func ExampleServerTrustGroupsClient_NewListByInstancePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -161,7 +161,7 @@ func ExampleServerTrustGroupsClient_ListByInstance() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInstance("", + pager := client.NewListByInstancePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_serverusages_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_serverusages_client_test.go index 9b71859bf869..e7553b872866 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_serverusages_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_serverusages_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ServerUsageMetricsList.json -func ExampleServerUsagesClient_ListByServer() { +func ExampleServerUsagesClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleServerUsagesClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_servervulnerabilityassessments_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_servervulnerabilityassessments_client_test.go index 660112669234..335123172bcb 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_servervulnerabilityassessments_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_servervulnerabilityassessments_client_test.go @@ -108,7 +108,7 @@ func ExampleServerVulnerabilityAssessmentsClient_Delete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ServerVulnerabilityAssessmentListByServer.json -func ExampleServerVulnerabilityAssessmentsClient_ListByServer() { +func ExampleServerVulnerabilityAssessmentsClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -120,7 +120,7 @@ func ExampleServerVulnerabilityAssessmentsClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_serviceobjectives_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_serviceobjectives_client_test.go index 1535fcb9d2b1..8ca6037d8b6e 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_serviceobjectives_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_serviceobjectives_client_test.go @@ -43,7 +43,7 @@ func ExampleServiceObjectivesClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ServiceObjectiveList.json -func ExampleServiceObjectivesClient_ListByServer() { +func ExampleServiceObjectivesClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -55,7 +55,7 @@ func ExampleServiceObjectivesClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_subscriptionusages_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_subscriptionusages_client_test.go index 21efab46fbc0..9256953699e7 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_subscriptionusages_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_subscriptionusages_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/SubscriptionUsageListByLocation.json -func ExampleSubscriptionUsagesClient_ListByLocation() { +func ExampleSubscriptionUsagesClient_NewListByLocationPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleSubscriptionUsagesClient_ListByLocation() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByLocation("", + pager := client.NewListByLocationPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_syncagents_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_syncagents_client_test.go index bd584f91e719..fbfa4ffeac8f 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_syncagents_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_syncagents_client_test.go @@ -111,7 +111,7 @@ func ExampleSyncAgentsClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/SyncAgentListByServer.json -func ExampleSyncAgentsClient_ListByServer() { +func ExampleSyncAgentsClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -123,7 +123,7 @@ func ExampleSyncAgentsClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { @@ -166,7 +166,7 @@ func ExampleSyncAgentsClient_GenerateKey() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/SyncAgentGetLinkedDatabases.json -func ExampleSyncAgentsClient_ListLinkedDatabases() { +func ExampleSyncAgentsClient_NewListLinkedDatabasesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -178,7 +178,7 @@ func ExampleSyncAgentsClient_ListLinkedDatabases() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListLinkedDatabases("", + pager := client.NewListLinkedDatabasesPager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_syncgroups_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_syncgroups_client_test.go index f93eaeab498c..83545d4202eb 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_syncgroups_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_syncgroups_client_test.go @@ -50,7 +50,7 @@ func ExampleSyncGroupsClient_BeginRefreshHubSchema() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/SyncGroupGetHubSchema.json -func ExampleSyncGroupsClient_ListHubSchemas() { +func ExampleSyncGroupsClient_NewListHubSchemasPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -62,7 +62,7 @@ func ExampleSyncGroupsClient_ListHubSchemas() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListHubSchemas("", + pager := client.NewListHubSchemasPager("", "", "", "", @@ -81,7 +81,7 @@ func ExampleSyncGroupsClient_ListHubSchemas() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/SyncGroupGetLog.json -func ExampleSyncGroupsClient_ListLogs() { +func ExampleSyncGroupsClient_NewListLogsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -93,7 +93,7 @@ func ExampleSyncGroupsClient_ListLogs() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListLogs("", + pager := client.NewListLogsPager("", "", "", "", @@ -305,7 +305,7 @@ func ExampleSyncGroupsClient_BeginUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/SyncGroupListByDatabase.json -func ExampleSyncGroupsClient_ListByDatabase() { +func ExampleSyncGroupsClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -317,7 +317,7 @@ func ExampleSyncGroupsClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_syncmembers_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_syncmembers_client_test.go index 665112326b60..b912e663240c 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_syncmembers_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_syncmembers_client_test.go @@ -167,7 +167,7 @@ func ExampleSyncMembersClient_BeginUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/SyncMemberListBySyncGroup.json -func ExampleSyncMembersClient_ListBySyncGroup() { +func ExampleSyncMembersClient_NewListBySyncGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -179,7 +179,7 @@ func ExampleSyncMembersClient_ListBySyncGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListBySyncGroup("", + pager := client.NewListBySyncGroupPager("", "", "", "", @@ -198,7 +198,7 @@ func ExampleSyncMembersClient_ListBySyncGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/SyncMemberGetSchema.json -func ExampleSyncMembersClient_ListMemberSchemas() { +func ExampleSyncMembersClient_NewListMemberSchemasPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -210,7 +210,7 @@ func ExampleSyncMembersClient_ListMemberSchemas() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListMemberSchemas("", + pager := client.NewListMemberSchemasPager("", "", "", "", diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_timezones_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_timezones_client_test.go index 3ccf75a182b6..049e6dbc6540 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_timezones_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_timezones_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/ManagedInstanceTimeZoneListByLocation.json -func ExampleTimeZonesClient_ListByLocation() { +func ExampleTimeZonesClient_NewListByLocationPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleTimeZonesClient_ListByLocation() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByLocation("", + pager := client.NewListByLocationPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_transparentdataencryptions_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_transparentdataencryptions_client_test.go index b904a2df42f8..bd2188cee117 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_transparentdataencryptions_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_transparentdataencryptions_client_test.go @@ -77,7 +77,7 @@ func ExampleTransparentDataEncryptionsClient_CreateOrUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-02-01-preview/examples/TransparentDataEncryptionList.json -func ExampleTransparentDataEncryptionsClient_ListByDatabase() { +func ExampleTransparentDataEncryptionsClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -89,7 +89,7 @@ func ExampleTransparentDataEncryptionsClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_usages_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_usages_client_test.go index 322c475408a2..e5266faa1ef2 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_usages_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_usages_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2021-02-01-preview/examples/ListInstancePoolUsageExpanded.json -func ExampleUsagesClient_ListByInstancePool() { +func ExampleUsagesClient_NewListByInstancePoolPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleUsagesClient_ListByInstancePool() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInstancePool("", + pager := client.NewListByInstancePoolPager("", "", &armsql.UsagesClientListByInstancePoolOptions{ExpandChildren: to.Ptr(true)}) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_virtualclusters_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_virtualclusters_client_test.go index a9430d605a91..c885bc96331a 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_virtualclusters_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_virtualclusters_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/VirtualClusterList.json -func ExampleVirtualClustersClient_List() { +func ExampleVirtualClustersClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleVirtualClustersClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(nil) + pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { @@ -47,7 +47,7 @@ func ExampleVirtualClustersClient_List() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/VirtualClusterListByResourceGroup.json -func ExampleVirtualClustersClient_ListByResourceGroup() { +func ExampleVirtualClustersClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -59,7 +59,7 @@ func ExampleVirtualClustersClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_virtualnetworkrules_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_virtualnetworkrules_client_test.go index 1d2a5589bfdd..11fa60ac7208 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_virtualnetworkrules_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_virtualnetworkrules_client_test.go @@ -112,7 +112,7 @@ func ExampleVirtualNetworkRulesClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/VirtualNetworkRulesList.json -func ExampleVirtualNetworkRulesClient_ListByServer() { +func ExampleVirtualNetworkRulesClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -124,7 +124,7 @@ func ExampleVirtualNetworkRulesClient_ListByServer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByServer("", + pager := client.NewListByServerPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_workloadclassifiers_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_workloadclassifiers_client_test.go index 25870f76e83c..ec853b8db6b5 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_workloadclassifiers_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_workloadclassifiers_client_test.go @@ -122,7 +122,7 @@ func ExampleWorkloadClassifiersClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/GetWorkloadClassifierList.json -func ExampleWorkloadClassifiersClient_ListByWorkloadGroup() { +func ExampleWorkloadClassifiersClient_NewListByWorkloadGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -134,7 +134,7 @@ func ExampleWorkloadClassifiersClient_ListByWorkloadGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByWorkloadGroup("", + pager := client.NewListByWorkloadGroupPager("", "", "", "", diff --git a/sdk/resourcemanager/sql/armsql/ze_generated_example_workloadgroups_client_test.go b/sdk/resourcemanager/sql/armsql/ze_generated_example_workloadgroups_client_test.go index d39c8143e1b5..cf9a49e9a9a9 100644 --- a/sdk/resourcemanager/sql/armsql/ze_generated_example_workloadgroups_client_test.go +++ b/sdk/resourcemanager/sql/armsql/ze_generated_example_workloadgroups_client_test.go @@ -119,7 +119,7 @@ func ExampleWorkloadGroupsClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sql/resource-manager/Microsoft.Sql/preview/2020-11-01-preview/examples/GetWorkloadGroupList.json -func ExampleWorkloadGroupsClient_ListByDatabase() { +func ExampleWorkloadGroupsClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -131,7 +131,7 @@ func ExampleWorkloadGroupsClient_ListByDatabase() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByDatabase("", + pager := client.NewListByDatabasePager("", "", "", nil) diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_backupshorttermretentionpolicies_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_backupshorttermretentionpolicies_client.go index 091a04976708..8e19ced28c4c 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_backupshorttermretentionpolicies_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_backupshorttermretentionpolicies_client.go @@ -194,7 +194,7 @@ func (client *BackupShortTermRetentionPoliciesClient) getHandleResponse(resp *ht return result, nil } -// ListByDatabase - Gets a database's short term retention policy. +// NewListByDatabasePager - Gets a database's short term retention policy. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -202,7 +202,7 @@ func (client *BackupShortTermRetentionPoliciesClient) getHandleResponse(resp *ht // databaseName - The name of the database. // options - BackupShortTermRetentionPoliciesClientListByDatabaseOptions contains the optional parameters for the BackupShortTermRetentionPoliciesClient.ListByDatabase // method. -func (client *BackupShortTermRetentionPoliciesClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, options *BackupShortTermRetentionPoliciesClientListByDatabaseOptions) *runtime.Pager[BackupShortTermRetentionPoliciesClientListByDatabaseResponse] { +func (client *BackupShortTermRetentionPoliciesClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *BackupShortTermRetentionPoliciesClientListByDatabaseOptions) *runtime.Pager[BackupShortTermRetentionPoliciesClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[BackupShortTermRetentionPoliciesClientListByDatabaseResponse]{ More: func(page BackupShortTermRetentionPoliciesClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_constants.go b/sdk/resourcemanager/sql/armsql/zz_generated_constants.go index ce5065baeeed..096f13f73165 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_constants.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_constants.go @@ -10,7 +10,7 @@ package armsql const ( moduleName = "armsql" - moduleVersion = "v0.4.0" + moduleVersion = "v0.5.0" ) type AdministratorName string diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_databaseblobauditingpolicies_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_databaseblobauditingpolicies_client.go index 2c2aa3f73ff6..0bab5bf10ab9 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_databaseblobauditingpolicies_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_databaseblobauditingpolicies_client.go @@ -181,7 +181,7 @@ func (client *DatabaseBlobAuditingPoliciesClient) getHandleResponse(resp *http.R return result, nil } -// ListByDatabase - Lists auditing settings of a database. +// NewListByDatabasePager - Lists auditing settings of a database. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -189,7 +189,7 @@ func (client *DatabaseBlobAuditingPoliciesClient) getHandleResponse(resp *http.R // databaseName - The name of the database. // options - DatabaseBlobAuditingPoliciesClientListByDatabaseOptions contains the optional parameters for the DatabaseBlobAuditingPoliciesClient.ListByDatabase // method. -func (client *DatabaseBlobAuditingPoliciesClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, options *DatabaseBlobAuditingPoliciesClientListByDatabaseOptions) *runtime.Pager[DatabaseBlobAuditingPoliciesClientListByDatabaseResponse] { +func (client *DatabaseBlobAuditingPoliciesClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *DatabaseBlobAuditingPoliciesClientListByDatabaseOptions) *runtime.Pager[DatabaseBlobAuditingPoliciesClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[DatabaseBlobAuditingPoliciesClientListByDatabaseResponse]{ More: func(page DatabaseBlobAuditingPoliciesClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_databasecolumns_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_databasecolumns_client.go index 766778a00177..e16776ae3178 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_databasecolumns_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_databasecolumns_client.go @@ -130,7 +130,7 @@ func (client *DatabaseColumnsClient) getHandleResponse(resp *http.Response) (Dat return result, nil } -// ListByDatabase - List database columns +// NewListByDatabasePager - List database columns // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -138,7 +138,7 @@ func (client *DatabaseColumnsClient) getHandleResponse(resp *http.Response) (Dat // databaseName - The name of the database. // options - DatabaseColumnsClientListByDatabaseOptions contains the optional parameters for the DatabaseColumnsClient.ListByDatabase // method. -func (client *DatabaseColumnsClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, options *DatabaseColumnsClientListByDatabaseOptions) *runtime.Pager[DatabaseColumnsClientListByDatabaseResponse] { +func (client *DatabaseColumnsClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *DatabaseColumnsClientListByDatabaseOptions) *runtime.Pager[DatabaseColumnsClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[DatabaseColumnsClientListByDatabaseResponse]{ More: func(page DatabaseColumnsClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -228,7 +228,7 @@ func (client *DatabaseColumnsClient) listByDatabaseHandleResponse(resp *http.Res return result, nil } -// ListByTable - List database columns +// NewListByTablePager - List database columns // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -238,7 +238,7 @@ func (client *DatabaseColumnsClient) listByDatabaseHandleResponse(resp *http.Res // tableName - The name of the table. // options - DatabaseColumnsClientListByTableOptions contains the optional parameters for the DatabaseColumnsClient.ListByTable // method. -func (client *DatabaseColumnsClient) ListByTable(resourceGroupName string, serverName string, databaseName string, schemaName string, tableName string, options *DatabaseColumnsClientListByTableOptions) *runtime.Pager[DatabaseColumnsClientListByTableResponse] { +func (client *DatabaseColumnsClient) NewListByTablePager(resourceGroupName string, serverName string, databaseName string, schemaName string, tableName string, options *DatabaseColumnsClientListByTableOptions) *runtime.Pager[DatabaseColumnsClientListByTableResponse] { return runtime.NewPager(runtime.PageProcessor[DatabaseColumnsClientListByTableResponse]{ More: func(page DatabaseColumnsClientListByTableResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_databaseextensions_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_databaseextensions_client.go index 12851702c833..542f62715515 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_databaseextensions_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_databaseextensions_client.go @@ -181,7 +181,7 @@ func (client *DatabaseExtensionsClient) getCreateRequest(ctx context.Context, re return req, nil } -// ListByDatabase - List database extension. This will return an empty list as it is not supported. +// NewListByDatabasePager - List database extension. This will return an empty list as it is not supported. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -189,7 +189,7 @@ func (client *DatabaseExtensionsClient) getCreateRequest(ctx context.Context, re // databaseName - The name of the database. // options - DatabaseExtensionsClientListByDatabaseOptions contains the optional parameters for the DatabaseExtensionsClient.ListByDatabase // method. -func (client *DatabaseExtensionsClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, options *DatabaseExtensionsClientListByDatabaseOptions) *runtime.Pager[DatabaseExtensionsClientListByDatabaseResponse] { +func (client *DatabaseExtensionsClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *DatabaseExtensionsClientListByDatabaseOptions) *runtime.Pager[DatabaseExtensionsClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[DatabaseExtensionsClientListByDatabaseResponse]{ More: func(page DatabaseExtensionsClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_databaseoperations_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_databaseoperations_client.go index 312ed08885e3..d775fcd36bcc 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_databaseoperations_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_databaseoperations_client.go @@ -108,7 +108,7 @@ func (client *DatabaseOperationsClient) cancelCreateRequest(ctx context.Context, return req, nil } -// ListByDatabase - Gets a list of operations performed on the database. +// NewListByDatabasePager - Gets a list of operations performed on the database. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -116,7 +116,7 @@ func (client *DatabaseOperationsClient) cancelCreateRequest(ctx context.Context, // databaseName - The name of the database. // options - DatabaseOperationsClientListByDatabaseOptions contains the optional parameters for the DatabaseOperationsClient.ListByDatabase // method. -func (client *DatabaseOperationsClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, options *DatabaseOperationsClientListByDatabaseOptions) *runtime.Pager[DatabaseOperationsClientListByDatabaseResponse] { +func (client *DatabaseOperationsClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *DatabaseOperationsClientListByDatabaseOptions) *runtime.Pager[DatabaseOperationsClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[DatabaseOperationsClientListByDatabaseResponse]{ More: func(page DatabaseOperationsClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_databases_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_databases_client.go index 492a6f2c6f5f..fd35f0f7779e 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_databases_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_databases_client.go @@ -450,7 +450,7 @@ func (client *DatabasesClient) importCreateRequest(ctx context.Context, resource return req, runtime.MarshalAsJSON(req, parameters) } -// ListByElasticPool - Gets a list of databases in an elastic pool. +// NewListByElasticPoolPager - Gets a list of databases in an elastic pool. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -458,7 +458,7 @@ func (client *DatabasesClient) importCreateRequest(ctx context.Context, resource // elasticPoolName - The name of the elastic pool. // options - DatabasesClientListByElasticPoolOptions contains the optional parameters for the DatabasesClient.ListByElasticPool // method. -func (client *DatabasesClient) ListByElasticPool(resourceGroupName string, serverName string, elasticPoolName string, options *DatabasesClientListByElasticPoolOptions) *runtime.Pager[DatabasesClientListByElasticPoolResponse] { +func (client *DatabasesClient) NewListByElasticPoolPager(resourceGroupName string, serverName string, elasticPoolName string, options *DatabasesClientListByElasticPoolOptions) *runtime.Pager[DatabasesClientListByElasticPoolResponse] { return runtime.NewPager(runtime.PageProcessor[DatabasesClientListByElasticPoolResponse]{ More: func(page DatabasesClientListByElasticPoolResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -525,13 +525,13 @@ func (client *DatabasesClient) listByElasticPoolHandleResponse(resp *http.Respon return result, nil } -// ListByServer - Gets a list of databases. +// NewListByServerPager - Gets a list of databases. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - DatabasesClientListByServerOptions contains the optional parameters for the DatabasesClient.ListByServer method. -func (client *DatabasesClient) ListByServer(resourceGroupName string, serverName string, options *DatabasesClientListByServerOptions) *runtime.Pager[DatabasesClientListByServerResponse] { +func (client *DatabasesClient) NewListByServerPager(resourceGroupName string, serverName string, options *DatabasesClientListByServerOptions) *runtime.Pager[DatabasesClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[DatabasesClientListByServerResponse]{ More: func(page DatabasesClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -597,14 +597,14 @@ func (client *DatabasesClient) listByServerHandleResponse(resp *http.Response) ( return result, nil } -// ListInaccessibleByServer - Gets a list of inaccessible databases in a logical server +// NewListInaccessibleByServerPager - Gets a list of inaccessible databases in a logical server // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - DatabasesClientListInaccessibleByServerOptions contains the optional parameters for the DatabasesClient.ListInaccessibleByServer // method. -func (client *DatabasesClient) ListInaccessibleByServer(resourceGroupName string, serverName string, options *DatabasesClientListInaccessibleByServerOptions) *runtime.Pager[DatabasesClientListInaccessibleByServerResponse] { +func (client *DatabasesClient) NewListInaccessibleByServerPager(resourceGroupName string, serverName string, options *DatabasesClientListInaccessibleByServerOptions) *runtime.Pager[DatabasesClientListInaccessibleByServerResponse] { return runtime.NewPager(runtime.PageProcessor[DatabasesClientListInaccessibleByServerResponse]{ More: func(page DatabasesClientListInaccessibleByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -667,7 +667,7 @@ func (client *DatabasesClient) listInaccessibleByServerHandleResponse(resp *http return result, nil } -// ListMetricDefinitions - Returns database metric definitions. +// NewListMetricDefinitionsPager - Returns database metric definitions. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -675,7 +675,7 @@ func (client *DatabasesClient) listInaccessibleByServerHandleResponse(resp *http // databaseName - The name of the database. // options - DatabasesClientListMetricDefinitionsOptions contains the optional parameters for the DatabasesClient.ListMetricDefinitions // method. -func (client *DatabasesClient) ListMetricDefinitions(resourceGroupName string, serverName string, databaseName string, options *DatabasesClientListMetricDefinitionsOptions) *runtime.Pager[DatabasesClientListMetricDefinitionsResponse] { +func (client *DatabasesClient) NewListMetricDefinitionsPager(resourceGroupName string, serverName string, databaseName string, options *DatabasesClientListMetricDefinitionsOptions) *runtime.Pager[DatabasesClientListMetricDefinitionsResponse] { return runtime.NewPager(runtime.PageProcessor[DatabasesClientListMetricDefinitionsResponse]{ More: func(page DatabasesClientListMetricDefinitionsResponse) bool { return false @@ -736,7 +736,7 @@ func (client *DatabasesClient) listMetricDefinitionsHandleResponse(resp *http.Re return result, nil } -// ListMetrics - Returns database metrics. +// NewListMetricsPager - Returns database metrics. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -744,7 +744,7 @@ func (client *DatabasesClient) listMetricDefinitionsHandleResponse(resp *http.Re // databaseName - The name of the database. // filter - An OData filter expression that describes a subset of metrics to return. // options - DatabasesClientListMetricsOptions contains the optional parameters for the DatabasesClient.ListMetrics method. -func (client *DatabasesClient) ListMetrics(resourceGroupName string, serverName string, databaseName string, filter string, options *DatabasesClientListMetricsOptions) *runtime.Pager[DatabasesClientListMetricsResponse] { +func (client *DatabasesClient) NewListMetricsPager(resourceGroupName string, serverName string, databaseName string, filter string, options *DatabasesClientListMetricsOptions) *runtime.Pager[DatabasesClientListMetricsResponse] { return runtime.NewPager(runtime.PageProcessor[DatabasesClientListMetricsResponse]{ More: func(page DatabasesClientListMetricsResponse) bool { return false diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_databaseschemas_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_databaseschemas_client.go index 386506c5783c..e856084cdc08 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_databaseschemas_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_databaseschemas_client.go @@ -120,7 +120,7 @@ func (client *DatabaseSchemasClient) getHandleResponse(resp *http.Response) (Dat return result, nil } -// ListByDatabase - List database schemas +// NewListByDatabasePager - List database schemas // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -128,7 +128,7 @@ func (client *DatabaseSchemasClient) getHandleResponse(resp *http.Response) (Dat // databaseName - The name of the database. // options - DatabaseSchemasClientListByDatabaseOptions contains the optional parameters for the DatabaseSchemasClient.ListByDatabase // method. -func (client *DatabaseSchemasClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, options *DatabaseSchemasClientListByDatabaseOptions) *runtime.Pager[DatabaseSchemasClientListByDatabaseResponse] { +func (client *DatabaseSchemasClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *DatabaseSchemasClientListByDatabaseOptions) *runtime.Pager[DatabaseSchemasClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[DatabaseSchemasClientListByDatabaseResponse]{ More: func(page DatabaseSchemasClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_databasesecurityalertpolicies_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_databasesecurityalertpolicies_client.go index 64aa21bbe979..746ca80cf1f4 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_databasesecurityalertpolicies_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_databasesecurityalertpolicies_client.go @@ -189,7 +189,7 @@ func (client *DatabaseSecurityAlertPoliciesClient) getHandleResponse(resp *http. return result, nil } -// ListByDatabase - Gets a list of database's security alert policies. +// NewListByDatabasePager - Gets a list of database's security alert policies. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -197,7 +197,7 @@ func (client *DatabaseSecurityAlertPoliciesClient) getHandleResponse(resp *http. // databaseName - The name of the database for which the security alert policy is defined. // options - DatabaseSecurityAlertPoliciesClientListByDatabaseOptions contains the optional parameters for the DatabaseSecurityAlertPoliciesClient.ListByDatabase // method. -func (client *DatabaseSecurityAlertPoliciesClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, options *DatabaseSecurityAlertPoliciesClientListByDatabaseOptions) *runtime.Pager[DatabaseSecurityAlertPoliciesClientListByDatabaseResponse] { +func (client *DatabaseSecurityAlertPoliciesClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *DatabaseSecurityAlertPoliciesClientListByDatabaseOptions) *runtime.Pager[DatabaseSecurityAlertPoliciesClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[DatabaseSecurityAlertPoliciesClientListByDatabaseResponse]{ More: func(page DatabaseSecurityAlertPoliciesClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_databasetables_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_databasetables_client.go index 44846fdfe420..911c7b5deaa8 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_databasetables_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_databasetables_client.go @@ -125,7 +125,7 @@ func (client *DatabaseTablesClient) getHandleResponse(resp *http.Response) (Data return result, nil } -// ListBySchema - List database tables +// NewListBySchemaPager - List database tables // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -134,7 +134,7 @@ func (client *DatabaseTablesClient) getHandleResponse(resp *http.Response) (Data // schemaName - The name of the schema. // options - DatabaseTablesClientListBySchemaOptions contains the optional parameters for the DatabaseTablesClient.ListBySchema // method. -func (client *DatabaseTablesClient) ListBySchema(resourceGroupName string, serverName string, databaseName string, schemaName string, options *DatabaseTablesClientListBySchemaOptions) *runtime.Pager[DatabaseTablesClientListBySchemaResponse] { +func (client *DatabaseTablesClient) NewListBySchemaPager(resourceGroupName string, serverName string, databaseName string, schemaName string, options *DatabaseTablesClientListBySchemaOptions) *runtime.Pager[DatabaseTablesClientListBySchemaResponse] { return runtime.NewPager(runtime.PageProcessor[DatabaseTablesClientListBySchemaResponse]{ More: func(page DatabaseTablesClientListBySchemaResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_databaseusages_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_databaseusages_client.go index fae8e7d90348..0d2cfb92e239 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_databaseusages_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_databaseusages_client.go @@ -54,7 +54,7 @@ func NewDatabaseUsagesClient(subscriptionID string, credential azcore.TokenCrede return client, nil } -// ListByDatabase - Gets database usages. +// NewListByDatabasePager - Gets database usages. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -62,7 +62,7 @@ func NewDatabaseUsagesClient(subscriptionID string, credential azcore.TokenCrede // databaseName - The name of the database. // options - DatabaseUsagesClientListByDatabaseOptions contains the optional parameters for the DatabaseUsagesClient.ListByDatabase // method. -func (client *DatabaseUsagesClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, options *DatabaseUsagesClientListByDatabaseOptions) *runtime.Pager[DatabaseUsagesClientListByDatabaseResponse] { +func (client *DatabaseUsagesClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *DatabaseUsagesClientListByDatabaseOptions) *runtime.Pager[DatabaseUsagesClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[DatabaseUsagesClientListByDatabaseResponse]{ More: func(page DatabaseUsagesClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_databasevulnerabilityassessments_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_databasevulnerabilityassessments_client.go index 74b30144feb8..6d7a6ccd15f6 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_databasevulnerabilityassessments_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_databasevulnerabilityassessments_client.go @@ -246,7 +246,7 @@ func (client *DatabaseVulnerabilityAssessmentsClient) getHandleResponse(resp *ht return result, nil } -// ListByDatabase - Lists the vulnerability assessment policies associated with a database. +// NewListByDatabasePager - Lists the vulnerability assessment policies associated with a database. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -254,7 +254,7 @@ func (client *DatabaseVulnerabilityAssessmentsClient) getHandleResponse(resp *ht // databaseName - The name of the database for which the vulnerability assessment policies are defined. // options - DatabaseVulnerabilityAssessmentsClientListByDatabaseOptions contains the optional parameters for the DatabaseVulnerabilityAssessmentsClient.ListByDatabase // method. -func (client *DatabaseVulnerabilityAssessmentsClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, options *DatabaseVulnerabilityAssessmentsClientListByDatabaseOptions) *runtime.Pager[DatabaseVulnerabilityAssessmentsClientListByDatabaseResponse] { +func (client *DatabaseVulnerabilityAssessmentsClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *DatabaseVulnerabilityAssessmentsClientListByDatabaseOptions) *runtime.Pager[DatabaseVulnerabilityAssessmentsClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[DatabaseVulnerabilityAssessmentsClientListByDatabaseResponse]{ More: func(page DatabaseVulnerabilityAssessmentsClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_databasevulnerabilityassessmentscans_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_databasevulnerabilityassessmentscans_client.go index 367a3be54b7d..80e57c436c94 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_databasevulnerabilityassessmentscans_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_databasevulnerabilityassessmentscans_client.go @@ -274,7 +274,7 @@ func (client *DatabaseVulnerabilityAssessmentScansClient) initiateScanCreateRequ return req, nil } -// ListByDatabase - Lists the vulnerability assessment scans of a database. +// NewListByDatabasePager - Lists the vulnerability assessment scans of a database. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -283,7 +283,7 @@ func (client *DatabaseVulnerabilityAssessmentScansClient) initiateScanCreateRequ // vulnerabilityAssessmentName - The name of the vulnerability assessment. // options - DatabaseVulnerabilityAssessmentScansClientListByDatabaseOptions contains the optional parameters for the DatabaseVulnerabilityAssessmentScansClient.ListByDatabase // method. -func (client *DatabaseVulnerabilityAssessmentScansClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, vulnerabilityAssessmentName VulnerabilityAssessmentName, options *DatabaseVulnerabilityAssessmentScansClientListByDatabaseOptions) *runtime.Pager[DatabaseVulnerabilityAssessmentScansClientListByDatabaseResponse] { +func (client *DatabaseVulnerabilityAssessmentScansClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, vulnerabilityAssessmentName VulnerabilityAssessmentName, options *DatabaseVulnerabilityAssessmentScansClientListByDatabaseOptions) *runtime.Pager[DatabaseVulnerabilityAssessmentScansClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[DatabaseVulnerabilityAssessmentScansClientListByDatabaseResponse]{ More: func(page DatabaseVulnerabilityAssessmentScansClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_datamaskingrules_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_datamaskingrules_client.go index 52f59f6f9059..b2ab056f3189 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_datamaskingrules_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_datamaskingrules_client.go @@ -123,7 +123,7 @@ func (client *DataMaskingRulesClient) createOrUpdateHandleResponse(resp *http.Re return result, nil } -// ListByDatabase - Gets a list of database data masking rules. +// NewListByDatabasePager - Gets a list of database data masking rules. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -131,7 +131,7 @@ func (client *DataMaskingRulesClient) createOrUpdateHandleResponse(resp *http.Re // databaseName - The name of the database. // options - DataMaskingRulesClientListByDatabaseOptions contains the optional parameters for the DataMaskingRulesClient.ListByDatabase // method. -func (client *DataMaskingRulesClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, options *DataMaskingRulesClientListByDatabaseOptions) *runtime.Pager[DataMaskingRulesClientListByDatabaseResponse] { +func (client *DataMaskingRulesClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *DataMaskingRulesClientListByDatabaseOptions) *runtime.Pager[DataMaskingRulesClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[DataMaskingRulesClientListByDatabaseResponse]{ More: func(page DataMaskingRulesClientListByDatabaseResponse) bool { return false diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_datawarehouseuseractivities_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_datawarehouseuseractivities_client.go index 3a026dcae6ba..6bd6222a1e04 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_datawarehouseuseractivities_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_datawarehouseuseractivities_client.go @@ -121,7 +121,7 @@ func (client *DataWarehouseUserActivitiesClient) getHandleResponse(resp *http.Re return result, nil } -// ListByDatabase - List the user activities of a data warehouse which includes running and suspended queries +// NewListByDatabasePager - List the user activities of a data warehouse which includes running and suspended queries // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -129,7 +129,7 @@ func (client *DataWarehouseUserActivitiesClient) getHandleResponse(resp *http.Re // databaseName - The name of the database. // options - DataWarehouseUserActivitiesClientListByDatabaseOptions contains the optional parameters for the DataWarehouseUserActivitiesClient.ListByDatabase // method. -func (client *DataWarehouseUserActivitiesClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, options *DataWarehouseUserActivitiesClientListByDatabaseOptions) *runtime.Pager[DataWarehouseUserActivitiesClientListByDatabaseResponse] { +func (client *DataWarehouseUserActivitiesClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *DataWarehouseUserActivitiesClientListByDatabaseOptions) *runtime.Pager[DataWarehouseUserActivitiesClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[DataWarehouseUserActivitiesClientListByDatabaseResponse]{ More: func(page DataWarehouseUserActivitiesClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_deletedservers_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_deletedservers_client.go index bbea3503a93f..ab4ee53aa0b1 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_deletedservers_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_deletedservers_client.go @@ -109,10 +109,10 @@ func (client *DeletedServersClient) getHandleResponse(resp *http.Response) (Dele return result, nil } -// List - Gets a list of all deleted servers in a subscription. +// NewListPager - Gets a list of all deleted servers in a subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - DeletedServersClientListOptions contains the optional parameters for the DeletedServersClient.List method. -func (client *DeletedServersClient) List(options *DeletedServersClientListOptions) *runtime.Pager[DeletedServersClientListResponse] { +func (client *DeletedServersClient) NewListPager(options *DeletedServersClientListOptions) *runtime.Pager[DeletedServersClientListResponse] { return runtime.NewPager(runtime.PageProcessor[DeletedServersClientListResponse]{ More: func(page DeletedServersClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -167,12 +167,12 @@ func (client *DeletedServersClient) listHandleResponse(resp *http.Response) (Del return result, nil } -// ListByLocation - Gets a list of deleted servers for a location. +// NewListByLocationPager - Gets a list of deleted servers for a location. // If the operation fails it returns an *azcore.ResponseError type. // locationName - The name of the region where the resource is located. // options - DeletedServersClientListByLocationOptions contains the optional parameters for the DeletedServersClient.ListByLocation // method. -func (client *DeletedServersClient) ListByLocation(locationName string, options *DeletedServersClientListByLocationOptions) *runtime.Pager[DeletedServersClientListByLocationResponse] { +func (client *DeletedServersClient) NewListByLocationPager(locationName string, options *DeletedServersClientListByLocationOptions) *runtime.Pager[DeletedServersClientListByLocationResponse] { return runtime.NewPager(runtime.PageProcessor[DeletedServersClientListByLocationResponse]{ More: func(page DeletedServersClientListByLocationResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_distributedavailabilitygroups_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_distributedavailabilitygroups_client.go index d455a7e6ff84..31195d1608d6 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_distributedavailabilitygroups_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_distributedavailabilitygroups_client.go @@ -250,14 +250,14 @@ func (client *DistributedAvailabilityGroupsClient) getHandleResponse(resp *http. return result, nil } -// ListByInstance - Gets a list of a distributed availability groups in instance. +// NewListByInstancePager - Gets a list of a distributed availability groups in instance. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // managedInstanceName - The name of the managed instance. // options - DistributedAvailabilityGroupsClientListByInstanceOptions contains the optional parameters for the DistributedAvailabilityGroupsClient.ListByInstance // method. -func (client *DistributedAvailabilityGroupsClient) ListByInstance(resourceGroupName string, managedInstanceName string, options *DistributedAvailabilityGroupsClientListByInstanceOptions) *runtime.Pager[DistributedAvailabilityGroupsClientListByInstanceResponse] { +func (client *DistributedAvailabilityGroupsClient) NewListByInstancePager(resourceGroupName string, managedInstanceName string, options *DistributedAvailabilityGroupsClientListByInstanceOptions) *runtime.Pager[DistributedAvailabilityGroupsClientListByInstanceResponse] { return runtime.NewPager(runtime.PageProcessor[DistributedAvailabilityGroupsClientListByInstanceResponse]{ More: func(page DistributedAvailabilityGroupsClientListByInstanceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_elasticpoolactivities_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_elasticpoolactivities_client.go index a53b857f3d48..61d59a373699 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_elasticpoolactivities_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_elasticpoolactivities_client.go @@ -54,7 +54,7 @@ func NewElasticPoolActivitiesClient(subscriptionID string, credential azcore.Tok return client, nil } -// ListByElasticPool - Returns elastic pool activities. +// NewListByElasticPoolPager - Returns elastic pool activities. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -62,7 +62,7 @@ func NewElasticPoolActivitiesClient(subscriptionID string, credential azcore.Tok // elasticPoolName - The name of the elastic pool for which to get the current activity. // options - ElasticPoolActivitiesClientListByElasticPoolOptions contains the optional parameters for the ElasticPoolActivitiesClient.ListByElasticPool // method. -func (client *ElasticPoolActivitiesClient) ListByElasticPool(resourceGroupName string, serverName string, elasticPoolName string, options *ElasticPoolActivitiesClientListByElasticPoolOptions) *runtime.Pager[ElasticPoolActivitiesClientListByElasticPoolResponse] { +func (client *ElasticPoolActivitiesClient) NewListByElasticPoolPager(resourceGroupName string, serverName string, elasticPoolName string, options *ElasticPoolActivitiesClientListByElasticPoolOptions) *runtime.Pager[ElasticPoolActivitiesClientListByElasticPoolResponse] { return runtime.NewPager(runtime.PageProcessor[ElasticPoolActivitiesClientListByElasticPoolResponse]{ More: func(page ElasticPoolActivitiesClientListByElasticPoolResponse) bool { return false diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_elasticpooldatabaseactivities_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_elasticpooldatabaseactivities_client.go index 487240c71f27..3e1ed3af5a2e 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_elasticpooldatabaseactivities_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_elasticpooldatabaseactivities_client.go @@ -54,7 +54,7 @@ func NewElasticPoolDatabaseActivitiesClient(subscriptionID string, credential az return client, nil } -// ListByElasticPool - Returns activity on databases inside of an elastic pool. +// NewListByElasticPoolPager - Returns activity on databases inside of an elastic pool. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -62,7 +62,7 @@ func NewElasticPoolDatabaseActivitiesClient(subscriptionID string, credential az // elasticPoolName - The name of the elastic pool. // options - ElasticPoolDatabaseActivitiesClientListByElasticPoolOptions contains the optional parameters for the ElasticPoolDatabaseActivitiesClient.ListByElasticPool // method. -func (client *ElasticPoolDatabaseActivitiesClient) ListByElasticPool(resourceGroupName string, serverName string, elasticPoolName string, options *ElasticPoolDatabaseActivitiesClientListByElasticPoolOptions) *runtime.Pager[ElasticPoolDatabaseActivitiesClientListByElasticPoolResponse] { +func (client *ElasticPoolDatabaseActivitiesClient) NewListByElasticPoolPager(resourceGroupName string, serverName string, elasticPoolName string, options *ElasticPoolDatabaseActivitiesClientListByElasticPoolOptions) *runtime.Pager[ElasticPoolDatabaseActivitiesClientListByElasticPoolResponse] { return runtime.NewPager(runtime.PageProcessor[ElasticPoolDatabaseActivitiesClientListByElasticPoolResponse]{ More: func(page ElasticPoolDatabaseActivitiesClientListByElasticPoolResponse) bool { return false diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_elasticpooloperations_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_elasticpooloperations_client.go index b1759dab225a..f414b176da8a 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_elasticpooloperations_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_elasticpooloperations_client.go @@ -107,14 +107,14 @@ func (client *ElasticPoolOperationsClient) cancelCreateRequest(ctx context.Conte return req, nil } -// ListByElasticPool - Gets a list of operations performed on the elastic pool. +// NewListByElasticPoolPager - Gets a list of operations performed on the elastic pool. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - ElasticPoolOperationsClientListByElasticPoolOptions contains the optional parameters for the ElasticPoolOperationsClient.ListByElasticPool // method. -func (client *ElasticPoolOperationsClient) ListByElasticPool(resourceGroupName string, serverName string, elasticPoolName string, options *ElasticPoolOperationsClientListByElasticPoolOptions) *runtime.Pager[ElasticPoolOperationsClientListByElasticPoolResponse] { +func (client *ElasticPoolOperationsClient) NewListByElasticPoolPager(resourceGroupName string, serverName string, elasticPoolName string, options *ElasticPoolOperationsClientListByElasticPoolOptions) *runtime.Pager[ElasticPoolOperationsClientListByElasticPoolResponse] { return runtime.NewPager(runtime.PageProcessor[ElasticPoolOperationsClientListByElasticPoolResponse]{ More: func(page ElasticPoolOperationsClientListByElasticPoolResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_elasticpools_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_elasticpools_client.go index 47009a5c3e51..c89d22c99a80 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_elasticpools_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_elasticpools_client.go @@ -316,14 +316,14 @@ func (client *ElasticPoolsClient) getHandleResponse(resp *http.Response) (Elasti return result, nil } -// ListByServer - Gets all elastic pools in a server. +// NewListByServerPager - Gets all elastic pools in a server. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - ElasticPoolsClientListByServerOptions contains the optional parameters for the ElasticPoolsClient.ListByServer // method. -func (client *ElasticPoolsClient) ListByServer(resourceGroupName string, serverName string, options *ElasticPoolsClientListByServerOptions) *runtime.Pager[ElasticPoolsClientListByServerResponse] { +func (client *ElasticPoolsClient) NewListByServerPager(resourceGroupName string, serverName string, options *ElasticPoolsClientListByServerOptions) *runtime.Pager[ElasticPoolsClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[ElasticPoolsClientListByServerResponse]{ More: func(page ElasticPoolsClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -389,7 +389,7 @@ func (client *ElasticPoolsClient) listByServerHandleResponse(resp *http.Response return result, nil } -// ListMetricDefinitions - Returns elastic pool metric definitions. +// NewListMetricDefinitionsPager - Returns elastic pool metric definitions. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -397,7 +397,7 @@ func (client *ElasticPoolsClient) listByServerHandleResponse(resp *http.Response // elasticPoolName - The name of the elastic pool. // options - ElasticPoolsClientListMetricDefinitionsOptions contains the optional parameters for the ElasticPoolsClient.ListMetricDefinitions // method. -func (client *ElasticPoolsClient) ListMetricDefinitions(resourceGroupName string, serverName string, elasticPoolName string, options *ElasticPoolsClientListMetricDefinitionsOptions) *runtime.Pager[ElasticPoolsClientListMetricDefinitionsResponse] { +func (client *ElasticPoolsClient) NewListMetricDefinitionsPager(resourceGroupName string, serverName string, elasticPoolName string, options *ElasticPoolsClientListMetricDefinitionsOptions) *runtime.Pager[ElasticPoolsClientListMetricDefinitionsResponse] { return runtime.NewPager(runtime.PageProcessor[ElasticPoolsClientListMetricDefinitionsResponse]{ More: func(page ElasticPoolsClientListMetricDefinitionsResponse) bool { return false @@ -458,7 +458,7 @@ func (client *ElasticPoolsClient) listMetricDefinitionsHandleResponse(resp *http return result, nil } -// ListMetrics - Returns elastic pool metrics. +// NewListMetricsPager - Returns elastic pool metrics. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -467,7 +467,7 @@ func (client *ElasticPoolsClient) listMetricDefinitionsHandleResponse(resp *http // filter - An OData filter expression that describes a subset of metrics to return. // options - ElasticPoolsClientListMetricsOptions contains the optional parameters for the ElasticPoolsClient.ListMetrics // method. -func (client *ElasticPoolsClient) ListMetrics(resourceGroupName string, serverName string, elasticPoolName string, filter string, options *ElasticPoolsClientListMetricsOptions) *runtime.Pager[ElasticPoolsClientListMetricsResponse] { +func (client *ElasticPoolsClient) NewListMetricsPager(resourceGroupName string, serverName string, elasticPoolName string, filter string, options *ElasticPoolsClientListMetricsOptions) *runtime.Pager[ElasticPoolsClientListMetricsResponse] { return runtime.NewPager(runtime.PageProcessor[ElasticPoolsClientListMetricsResponse]{ More: func(page ElasticPoolsClientListMetricsResponse) bool { return false diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_encryptionprotectors_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_encryptionprotectors_client.go index fc9617e0d46e..dcd97b52106a 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_encryptionprotectors_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_encryptionprotectors_client.go @@ -184,14 +184,14 @@ func (client *EncryptionProtectorsClient) getHandleResponse(resp *http.Response) return result, nil } -// ListByServer - Gets a list of server encryption protectors +// NewListByServerPager - Gets a list of server encryption protectors // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - EncryptionProtectorsClientListByServerOptions contains the optional parameters for the EncryptionProtectorsClient.ListByServer // method. -func (client *EncryptionProtectorsClient) ListByServer(resourceGroupName string, serverName string, options *EncryptionProtectorsClientListByServerOptions) *runtime.Pager[EncryptionProtectorsClientListByServerResponse] { +func (client *EncryptionProtectorsClient) NewListByServerPager(resourceGroupName string, serverName string, options *EncryptionProtectorsClientListByServerOptions) *runtime.Pager[EncryptionProtectorsClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[EncryptionProtectorsClientListByServerResponse]{ More: func(page EncryptionProtectorsClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_endpointcertificates_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_endpointcertificates_client.go index 4991bdf3c14d..44683ead0129 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_endpointcertificates_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_endpointcertificates_client.go @@ -116,14 +116,14 @@ func (client *EndpointCertificatesClient) getHandleResponse(resp *http.Response) return result, nil } -// ListByInstance - List certificates used on endpoints on the target instance. +// NewListByInstancePager - List certificates used on endpoints on the target instance. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // managedInstanceName - The name of the managed instance. // options - EndpointCertificatesClientListByInstanceOptions contains the optional parameters for the EndpointCertificatesClient.ListByInstance // method. -func (client *EndpointCertificatesClient) ListByInstance(resourceGroupName string, managedInstanceName string, options *EndpointCertificatesClientListByInstanceOptions) *runtime.Pager[EndpointCertificatesClientListByInstanceResponse] { +func (client *EndpointCertificatesClient) NewListByInstancePager(resourceGroupName string, managedInstanceName string, options *EndpointCertificatesClientListByInstanceOptions) *runtime.Pager[EndpointCertificatesClientListByInstanceResponse] { return runtime.NewPager(runtime.PageProcessor[EndpointCertificatesClientListByInstanceResponse]{ More: func(page EndpointCertificatesClientListByInstanceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_extendeddatabaseblobauditingpolicies_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_extendeddatabaseblobauditingpolicies_client.go index cdaf4047e7ee..adc5d41f3438 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_extendeddatabaseblobauditingpolicies_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_extendeddatabaseblobauditingpolicies_client.go @@ -181,7 +181,7 @@ func (client *ExtendedDatabaseBlobAuditingPoliciesClient) getHandleResponse(resp return result, nil } -// ListByDatabase - Lists extended auditing settings of a database. +// NewListByDatabasePager - Lists extended auditing settings of a database. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -189,7 +189,7 @@ func (client *ExtendedDatabaseBlobAuditingPoliciesClient) getHandleResponse(resp // databaseName - The name of the database. // options - ExtendedDatabaseBlobAuditingPoliciesClientListByDatabaseOptions contains the optional parameters for the ExtendedDatabaseBlobAuditingPoliciesClient.ListByDatabase // method. -func (client *ExtendedDatabaseBlobAuditingPoliciesClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, options *ExtendedDatabaseBlobAuditingPoliciesClientListByDatabaseOptions) *runtime.Pager[ExtendedDatabaseBlobAuditingPoliciesClientListByDatabaseResponse] { +func (client *ExtendedDatabaseBlobAuditingPoliciesClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *ExtendedDatabaseBlobAuditingPoliciesClientListByDatabaseOptions) *runtime.Pager[ExtendedDatabaseBlobAuditingPoliciesClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[ExtendedDatabaseBlobAuditingPoliciesClientListByDatabaseResponse]{ More: func(page ExtendedDatabaseBlobAuditingPoliciesClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_extendedserverblobauditingpolicies_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_extendedserverblobauditingpolicies_client.go index a588936083cf..2474d502ad48 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_extendedserverblobauditingpolicies_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_extendedserverblobauditingpolicies_client.go @@ -176,14 +176,14 @@ func (client *ExtendedServerBlobAuditingPoliciesClient) getHandleResponse(resp * return result, nil } -// ListByServer - Lists extended auditing settings of a server. +// NewListByServerPager - Lists extended auditing settings of a server. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - ExtendedServerBlobAuditingPoliciesClientListByServerOptions contains the optional parameters for the ExtendedServerBlobAuditingPoliciesClient.ListByServer // method. -func (client *ExtendedServerBlobAuditingPoliciesClient) ListByServer(resourceGroupName string, serverName string, options *ExtendedServerBlobAuditingPoliciesClientListByServerOptions) *runtime.Pager[ExtendedServerBlobAuditingPoliciesClientListByServerResponse] { +func (client *ExtendedServerBlobAuditingPoliciesClient) NewListByServerPager(resourceGroupName string, serverName string, options *ExtendedServerBlobAuditingPoliciesClientListByServerOptions) *runtime.Pager[ExtendedServerBlobAuditingPoliciesClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[ExtendedServerBlobAuditingPoliciesClientListByServerResponse]{ More: func(page ExtendedServerBlobAuditingPoliciesClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_failovergroups_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_failovergroups_client.go index 672df273ae3a..b4dd78e2b749 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_failovergroups_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_failovergroups_client.go @@ -385,14 +385,14 @@ func (client *FailoverGroupsClient) getHandleResponse(resp *http.Response) (Fail return result, nil } -// ListByServer - Lists the failover groups in a server. +// NewListByServerPager - Lists the failover groups in a server. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server containing the failover group. // options - FailoverGroupsClientListByServerOptions contains the optional parameters for the FailoverGroupsClient.ListByServer // method. -func (client *FailoverGroupsClient) ListByServer(resourceGroupName string, serverName string, options *FailoverGroupsClientListByServerOptions) *runtime.Pager[FailoverGroupsClientListByServerResponse] { +func (client *FailoverGroupsClient) NewListByServerPager(resourceGroupName string, serverName string, options *FailoverGroupsClientListByServerOptions) *runtime.Pager[FailoverGroupsClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[FailoverGroupsClientListByServerResponse]{ More: func(page FailoverGroupsClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_firewallrules_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_firewallrules_client.go index 5c988123e6a1..2021a87d7415 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_firewallrules_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_firewallrules_client.go @@ -229,14 +229,14 @@ func (client *FirewallRulesClient) getHandleResponse(resp *http.Response) (Firew return result, nil } -// ListByServer - Gets a list of firewall rules. +// NewListByServerPager - Gets a list of firewall rules. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - FirewallRulesClientListByServerOptions contains the optional parameters for the FirewallRulesClient.ListByServer // method. -func (client *FirewallRulesClient) ListByServer(resourceGroupName string, serverName string, options *FirewallRulesClientListByServerOptions) *runtime.Pager[FirewallRulesClientListByServerResponse] { +func (client *FirewallRulesClient) NewListByServerPager(resourceGroupName string, serverName string, options *FirewallRulesClientListByServerOptions) *runtime.Pager[FirewallRulesClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[FirewallRulesClientListByServerResponse]{ More: func(page FirewallRulesClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_geobackuppolicies_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_geobackuppolicies_client.go index d4a62210590f..a2b29003675f 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_geobackuppolicies_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_geobackuppolicies_client.go @@ -188,7 +188,7 @@ func (client *GeoBackupPoliciesClient) getHandleResponse(resp *http.Response) (G return result, nil } -// ListByDatabase - Returns a list of geo backup policies. +// NewListByDatabasePager - Returns a list of geo backup policies. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -196,7 +196,7 @@ func (client *GeoBackupPoliciesClient) getHandleResponse(resp *http.Response) (G // databaseName - The name of the database. // options - GeoBackupPoliciesClientListByDatabaseOptions contains the optional parameters for the GeoBackupPoliciesClient.ListByDatabase // method. -func (client *GeoBackupPoliciesClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, options *GeoBackupPoliciesClientListByDatabaseOptions) *runtime.Pager[GeoBackupPoliciesClientListByDatabaseResponse] { +func (client *GeoBackupPoliciesClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *GeoBackupPoliciesClientListByDatabaseOptions) *runtime.Pager[GeoBackupPoliciesClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[GeoBackupPoliciesClientListByDatabaseResponse]{ More: func(page GeoBackupPoliciesClientListByDatabaseResponse) bool { return false diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_instancefailovergroups_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_instancefailovergroups_client.go index ef50c3749dab..b30bf5e41861 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_instancefailovergroups_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_instancefailovergroups_client.go @@ -386,14 +386,14 @@ func (client *InstanceFailoverGroupsClient) getHandleResponse(resp *http.Respons return result, nil } -// ListByLocation - Lists the failover groups in a location. +// NewListByLocationPager - Lists the failover groups in a location. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // locationName - The name of the region where the resource is located. // options - InstanceFailoverGroupsClientListByLocationOptions contains the optional parameters for the InstanceFailoverGroupsClient.ListByLocation // method. -func (client *InstanceFailoverGroupsClient) ListByLocation(resourceGroupName string, locationName string, options *InstanceFailoverGroupsClientListByLocationOptions) *runtime.Pager[InstanceFailoverGroupsClientListByLocationResponse] { +func (client *InstanceFailoverGroupsClient) NewListByLocationPager(resourceGroupName string, locationName string, options *InstanceFailoverGroupsClientListByLocationOptions) *runtime.Pager[InstanceFailoverGroupsClientListByLocationResponse] { return runtime.NewPager(runtime.PageProcessor[InstanceFailoverGroupsClientListByLocationResponse]{ More: func(page InstanceFailoverGroupsClientListByLocationResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_instancepools_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_instancepools_client.go index e69cb74d3cb6..2a6f446d1bac 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_instancepools_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_instancepools_client.go @@ -234,10 +234,10 @@ func (client *InstancePoolsClient) getHandleResponse(resp *http.Response) (Insta return result, nil } -// List - Gets a list of all instance pools in the subscription. +// NewListPager - Gets a list of all instance pools in the subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - InstancePoolsClientListOptions contains the optional parameters for the InstancePoolsClient.List method. -func (client *InstancePoolsClient) List(options *InstancePoolsClientListOptions) *runtime.Pager[InstancePoolsClientListResponse] { +func (client *InstancePoolsClient) NewListPager(options *InstancePoolsClientListOptions) *runtime.Pager[InstancePoolsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[InstancePoolsClientListResponse]{ More: func(page InstancePoolsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -292,13 +292,13 @@ func (client *InstancePoolsClient) listHandleResponse(resp *http.Response) (Inst return result, nil } -// ListByResourceGroup - Gets a list of instance pools in the resource group +// NewListByResourceGroupPager - Gets a list of instance pools in the resource group // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // options - InstancePoolsClientListByResourceGroupOptions contains the optional parameters for the InstancePoolsClient.ListByResourceGroup // method. -func (client *InstancePoolsClient) ListByResourceGroup(resourceGroupName string, options *InstancePoolsClientListByResourceGroupOptions) *runtime.Pager[InstancePoolsClientListByResourceGroupResponse] { +func (client *InstancePoolsClient) NewListByResourceGroupPager(resourceGroupName string, options *InstancePoolsClientListByResourceGroupOptions) *runtime.Pager[InstancePoolsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[InstancePoolsClientListByResourceGroupResponse]{ More: func(page InstancePoolsClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_ipv6firewallrules_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_ipv6firewallrules_client.go index f7a53b7a6c1c..89b3125ea498 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_ipv6firewallrules_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_ipv6firewallrules_client.go @@ -230,14 +230,14 @@ func (client *IPv6FirewallRulesClient) getHandleResponse(resp *http.Response) (I return result, nil } -// ListByServer - Gets a list of IPv6 firewall rules. +// NewListByServerPager - Gets a list of IPv6 firewall rules. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - IPv6FirewallRulesClientListByServerOptions contains the optional parameters for the IPv6FirewallRulesClient.ListByServer // method. -func (client *IPv6FirewallRulesClient) ListByServer(resourceGroupName string, serverName string, options *IPv6FirewallRulesClientListByServerOptions) *runtime.Pager[IPv6FirewallRulesClientListByServerResponse] { +func (client *IPv6FirewallRulesClient) NewListByServerPager(resourceGroupName string, serverName string, options *IPv6FirewallRulesClientListByServerOptions) *runtime.Pager[IPv6FirewallRulesClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[IPv6FirewallRulesClientListByServerResponse]{ More: func(page IPv6FirewallRulesClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_jobagents_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_jobagents_client.go index 5ca9aa13eb1e..2bf16cccf976 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_jobagents_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_jobagents_client.go @@ -248,13 +248,13 @@ func (client *JobAgentsClient) getHandleResponse(resp *http.Response) (JobAgents return result, nil } -// ListByServer - Gets a list of job agents in a server. +// NewListByServerPager - Gets a list of job agents in a server. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - JobAgentsClientListByServerOptions contains the optional parameters for the JobAgentsClient.ListByServer method. -func (client *JobAgentsClient) ListByServer(resourceGroupName string, serverName string, options *JobAgentsClientListByServerOptions) *runtime.Pager[JobAgentsClientListByServerResponse] { +func (client *JobAgentsClient) NewListByServerPager(resourceGroupName string, serverName string, options *JobAgentsClientListByServerOptions) *runtime.Pager[JobAgentsClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[JobAgentsClientListByServerResponse]{ More: func(page JobAgentsClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_jobcredentials_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_jobcredentials_client.go index 0823f8de80e6..46a9bc7ce7c7 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_jobcredentials_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_jobcredentials_client.go @@ -244,7 +244,7 @@ func (client *JobCredentialsClient) getHandleResponse(resp *http.Response) (JobC return result, nil } -// ListByAgent - Gets a list of jobs credentials. +// NewListByAgentPager - Gets a list of jobs credentials. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -252,7 +252,7 @@ func (client *JobCredentialsClient) getHandleResponse(resp *http.Response) (JobC // jobAgentName - The name of the job agent. // options - JobCredentialsClientListByAgentOptions contains the optional parameters for the JobCredentialsClient.ListByAgent // method. -func (client *JobCredentialsClient) ListByAgent(resourceGroupName string, serverName string, jobAgentName string, options *JobCredentialsClientListByAgentOptions) *runtime.Pager[JobCredentialsClientListByAgentResponse] { +func (client *JobCredentialsClient) NewListByAgentPager(resourceGroupName string, serverName string, jobAgentName string, options *JobCredentialsClientListByAgentOptions) *runtime.Pager[JobCredentialsClientListByAgentResponse] { return runtime.NewPager(runtime.PageProcessor[JobCredentialsClientListByAgentResponse]{ More: func(page JobCredentialsClientListByAgentResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_jobexecutions_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_jobexecutions_client.go index 7bdee9ba5c42..eb5aaf093af6 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_jobexecutions_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_jobexecutions_client.go @@ -328,7 +328,7 @@ func (client *JobExecutionsClient) getHandleResponse(resp *http.Response) (JobEx return result, nil } -// ListByAgent - Lists all executions in a job agent. +// NewListByAgentPager - Lists all executions in a job agent. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -336,7 +336,7 @@ func (client *JobExecutionsClient) getHandleResponse(resp *http.Response) (JobEx // jobAgentName - The name of the job agent. // options - JobExecutionsClientListByAgentOptions contains the optional parameters for the JobExecutionsClient.ListByAgent // method. -func (client *JobExecutionsClient) ListByAgent(resourceGroupName string, serverName string, jobAgentName string, options *JobExecutionsClientListByAgentOptions) *runtime.Pager[JobExecutionsClientListByAgentResponse] { +func (client *JobExecutionsClient) NewListByAgentPager(resourceGroupName string, serverName string, jobAgentName string, options *JobExecutionsClientListByAgentOptions) *runtime.Pager[JobExecutionsClientListByAgentResponse] { return runtime.NewPager(runtime.PageProcessor[JobExecutionsClientListByAgentResponse]{ More: func(page JobExecutionsClientListByAgentResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -424,7 +424,7 @@ func (client *JobExecutionsClient) listByAgentHandleResponse(resp *http.Response return result, nil } -// ListByJob - Lists a job's executions. +// NewListByJobPager - Lists a job's executions. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -432,7 +432,7 @@ func (client *JobExecutionsClient) listByAgentHandleResponse(resp *http.Response // jobAgentName - The name of the job agent. // jobName - The name of the job to get. // options - JobExecutionsClientListByJobOptions contains the optional parameters for the JobExecutionsClient.ListByJob method. -func (client *JobExecutionsClient) ListByJob(resourceGroupName string, serverName string, jobAgentName string, jobName string, options *JobExecutionsClientListByJobOptions) *runtime.Pager[JobExecutionsClientListByJobResponse] { +func (client *JobExecutionsClient) NewListByJobPager(resourceGroupName string, serverName string, jobAgentName string, jobName string, options *JobExecutionsClientListByJobOptions) *runtime.Pager[JobExecutionsClientListByJobResponse] { return runtime.NewPager(runtime.PageProcessor[JobExecutionsClientListByJobResponse]{ More: func(page JobExecutionsClientListByJobResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_jobs_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_jobs_client.go index cf5728894ef5..72b862bca350 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_jobs_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_jobs_client.go @@ -243,14 +243,14 @@ func (client *JobsClient) getHandleResponse(resp *http.Response) (JobsClientGetR return result, nil } -// ListByAgent - Gets a list of jobs. +// NewListByAgentPager - Gets a list of jobs. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // jobAgentName - The name of the job agent. // options - JobsClientListByAgentOptions contains the optional parameters for the JobsClient.ListByAgent method. -func (client *JobsClient) ListByAgent(resourceGroupName string, serverName string, jobAgentName string, options *JobsClientListByAgentOptions) *runtime.Pager[JobsClientListByAgentResponse] { +func (client *JobsClient) NewListByAgentPager(resourceGroupName string, serverName string, jobAgentName string, options *JobsClientListByAgentOptions) *runtime.Pager[JobsClientListByAgentResponse] { return runtime.NewPager(runtime.PageProcessor[JobsClientListByAgentResponse]{ More: func(page JobsClientListByAgentResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_jobstepexecutions_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_jobstepexecutions_client.go index 395f8af0b037..6a1c177757bb 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_jobstepexecutions_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_jobstepexecutions_client.go @@ -129,7 +129,7 @@ func (client *JobStepExecutionsClient) getHandleResponse(resp *http.Response) (J return result, nil } -// ListByJobExecution - Lists the step executions of a job execution. +// NewListByJobExecutionPager - Lists the step executions of a job execution. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -139,7 +139,7 @@ func (client *JobStepExecutionsClient) getHandleResponse(resp *http.Response) (J // jobExecutionID - The id of the job execution // options - JobStepExecutionsClientListByJobExecutionOptions contains the optional parameters for the JobStepExecutionsClient.ListByJobExecution // method. -func (client *JobStepExecutionsClient) ListByJobExecution(resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID string, options *JobStepExecutionsClientListByJobExecutionOptions) *runtime.Pager[JobStepExecutionsClientListByJobExecutionResponse] { +func (client *JobStepExecutionsClient) NewListByJobExecutionPager(resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID string, options *JobStepExecutionsClientListByJobExecutionOptions) *runtime.Pager[JobStepExecutionsClientListByJobExecutionResponse] { return runtime.NewPager(runtime.PageProcessor[JobStepExecutionsClientListByJobExecutionResponse]{ More: func(page JobStepExecutionsClientListByJobExecutionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_jobsteps_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_jobsteps_client.go index 3379ab1d5079..8d4c271a74a4 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_jobsteps_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_jobsteps_client.go @@ -332,7 +332,7 @@ func (client *JobStepsClient) getByVersionHandleResponse(resp *http.Response) (J return result, nil } -// ListByJob - Gets all job steps for a job's current version. +// NewListByJobPager - Gets all job steps for a job's current version. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -340,7 +340,7 @@ func (client *JobStepsClient) getByVersionHandleResponse(resp *http.Response) (J // jobAgentName - The name of the job agent. // jobName - The name of the job to get. // options - JobStepsClientListByJobOptions contains the optional parameters for the JobStepsClient.ListByJob method. -func (client *JobStepsClient) ListByJob(resourceGroupName string, serverName string, jobAgentName string, jobName string, options *JobStepsClientListByJobOptions) *runtime.Pager[JobStepsClientListByJobResponse] { +func (client *JobStepsClient) NewListByJobPager(resourceGroupName string, serverName string, jobAgentName string, jobName string, options *JobStepsClientListByJobOptions) *runtime.Pager[JobStepsClientListByJobResponse] { return runtime.NewPager(runtime.PageProcessor[JobStepsClientListByJobResponse]{ More: func(page JobStepsClientListByJobResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -411,7 +411,7 @@ func (client *JobStepsClient) listByJobHandleResponse(resp *http.Response) (JobS return result, nil } -// ListByVersion - Gets all job steps in the specified job version. +// NewListByVersionPager - Gets all job steps in the specified job version. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -420,7 +420,7 @@ func (client *JobStepsClient) listByJobHandleResponse(resp *http.Response) (JobS // jobName - The name of the job to get. // jobVersion - The version of the job to get. // options - JobStepsClientListByVersionOptions contains the optional parameters for the JobStepsClient.ListByVersion method. -func (client *JobStepsClient) ListByVersion(resourceGroupName string, serverName string, jobAgentName string, jobName string, jobVersion int32, options *JobStepsClientListByVersionOptions) *runtime.Pager[JobStepsClientListByVersionResponse] { +func (client *JobStepsClient) NewListByVersionPager(resourceGroupName string, serverName string, jobAgentName string, jobName string, jobVersion int32, options *JobStepsClientListByVersionOptions) *runtime.Pager[JobStepsClientListByVersionResponse] { return runtime.NewPager(runtime.PageProcessor[JobStepsClientListByVersionResponse]{ More: func(page JobStepsClientListByVersionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_jobtargetexecutions_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_jobtargetexecutions_client.go index cda3a817b4c0..cc0995bc297f 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_jobtargetexecutions_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_jobtargetexecutions_client.go @@ -131,7 +131,7 @@ func (client *JobTargetExecutionsClient) getHandleResponse(resp *http.Response) return result, nil } -// ListByJobExecution - Lists target executions for all steps of a job execution. +// NewListByJobExecutionPager - Lists target executions for all steps of a job execution. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -141,7 +141,7 @@ func (client *JobTargetExecutionsClient) getHandleResponse(resp *http.Response) // jobExecutionID - The id of the job execution // options - JobTargetExecutionsClientListByJobExecutionOptions contains the optional parameters for the JobTargetExecutionsClient.ListByJobExecution // method. -func (client *JobTargetExecutionsClient) ListByJobExecution(resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID string, options *JobTargetExecutionsClientListByJobExecutionOptions) *runtime.Pager[JobTargetExecutionsClientListByJobExecutionResponse] { +func (client *JobTargetExecutionsClient) NewListByJobExecutionPager(resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID string, options *JobTargetExecutionsClientListByJobExecutionOptions) *runtime.Pager[JobTargetExecutionsClientListByJobExecutionResponse] { return runtime.NewPager(runtime.PageProcessor[JobTargetExecutionsClientListByJobExecutionResponse]{ More: func(page JobTargetExecutionsClientListByJobExecutionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -234,7 +234,7 @@ func (client *JobTargetExecutionsClient) listByJobExecutionHandleResponse(resp * return result, nil } -// ListByStep - Lists the target executions of a job step execution. +// NewListByStepPager - Lists the target executions of a job step execution. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -245,7 +245,7 @@ func (client *JobTargetExecutionsClient) listByJobExecutionHandleResponse(resp * // stepName - The name of the step. // options - JobTargetExecutionsClientListByStepOptions contains the optional parameters for the JobTargetExecutionsClient.ListByStep // method. -func (client *JobTargetExecutionsClient) ListByStep(resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID string, stepName string, options *JobTargetExecutionsClientListByStepOptions) *runtime.Pager[JobTargetExecutionsClientListByStepResponse] { +func (client *JobTargetExecutionsClient) NewListByStepPager(resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID string, stepName string, options *JobTargetExecutionsClientListByStepOptions) *runtime.Pager[JobTargetExecutionsClientListByStepResponse] { return runtime.NewPager(runtime.PageProcessor[JobTargetExecutionsClientListByStepResponse]{ More: func(page JobTargetExecutionsClientListByStepResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_jobtargetgroups_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_jobtargetgroups_client.go index 6004a20d7f95..da2ce6758f18 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_jobtargetgroups_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_jobtargetgroups_client.go @@ -244,7 +244,7 @@ func (client *JobTargetGroupsClient) getHandleResponse(resp *http.Response) (Job return result, nil } -// ListByAgent - Gets all target groups in an agent. +// NewListByAgentPager - Gets all target groups in an agent. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -252,7 +252,7 @@ func (client *JobTargetGroupsClient) getHandleResponse(resp *http.Response) (Job // jobAgentName - The name of the job agent. // options - JobTargetGroupsClientListByAgentOptions contains the optional parameters for the JobTargetGroupsClient.ListByAgent // method. -func (client *JobTargetGroupsClient) ListByAgent(resourceGroupName string, serverName string, jobAgentName string, options *JobTargetGroupsClientListByAgentOptions) *runtime.Pager[JobTargetGroupsClientListByAgentResponse] { +func (client *JobTargetGroupsClient) NewListByAgentPager(resourceGroupName string, serverName string, jobAgentName string, options *JobTargetGroupsClientListByAgentOptions) *runtime.Pager[JobTargetGroupsClientListByAgentResponse] { return runtime.NewPager(runtime.PageProcessor[JobTargetGroupsClientListByAgentResponse]{ More: func(page JobTargetGroupsClientListByAgentResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_jobversions_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_jobversions_client.go index 83f0aab606d1..c618719fff66 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_jobversions_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_jobversions_client.go @@ -123,7 +123,7 @@ func (client *JobVersionsClient) getHandleResponse(resp *http.Response) (JobVers return result, nil } -// ListByJob - Gets all versions of a job. +// NewListByJobPager - Gets all versions of a job. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -131,7 +131,7 @@ func (client *JobVersionsClient) getHandleResponse(resp *http.Response) (JobVers // jobAgentName - The name of the job agent. // jobName - The name of the job to get. // options - JobVersionsClientListByJobOptions contains the optional parameters for the JobVersionsClient.ListByJob method. -func (client *JobVersionsClient) ListByJob(resourceGroupName string, serverName string, jobAgentName string, jobName string, options *JobVersionsClientListByJobOptions) *runtime.Pager[JobVersionsClientListByJobResponse] { +func (client *JobVersionsClient) NewListByJobPager(resourceGroupName string, serverName string, jobAgentName string, jobName string, options *JobVersionsClientListByJobOptions) *runtime.Pager[JobVersionsClientListByJobResponse] { return runtime.NewPager(runtime.PageProcessor[JobVersionsClientListByJobResponse]{ More: func(page JobVersionsClientListByJobResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_ledgerdigestuploads_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_ledgerdigestuploads_client.go index e34c44e4571e..6529bb2191f5 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_ledgerdigestuploads_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_ledgerdigestuploads_client.go @@ -261,7 +261,7 @@ func (client *LedgerDigestUploadsClient) getHandleResponse(resp *http.Response) return result, nil } -// ListByDatabase - Gets all ledger digest upload settings on a database. +// NewListByDatabasePager - Gets all ledger digest upload settings on a database. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -269,7 +269,7 @@ func (client *LedgerDigestUploadsClient) getHandleResponse(resp *http.Response) // databaseName - The name of the database. // options - LedgerDigestUploadsClientListByDatabaseOptions contains the optional parameters for the LedgerDigestUploadsClient.ListByDatabase // method. -func (client *LedgerDigestUploadsClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, options *LedgerDigestUploadsClientListByDatabaseOptions) *runtime.Pager[LedgerDigestUploadsClientListByDatabaseResponse] { +func (client *LedgerDigestUploadsClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *LedgerDigestUploadsClientListByDatabaseOptions) *runtime.Pager[LedgerDigestUploadsClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[LedgerDigestUploadsClientListByDatabaseResponse]{ More: func(page LedgerDigestUploadsClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_longtermretentionbackups_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_longtermretentionbackups_client.go index f991f7237176..5338f45b9d17 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_longtermretentionbackups_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_longtermretentionbackups_client.go @@ -489,14 +489,14 @@ func (client *LongTermRetentionBackupsClient) getByResourceGroupHandleResponse(r return result, nil } -// ListByDatabase - Lists all long term retention backups for a database. +// NewListByDatabasePager - Lists all long term retention backups for a database. // If the operation fails it returns an *azcore.ResponseError type. // locationName - The location of the database // longTermRetentionServerName - The name of the server // longTermRetentionDatabaseName - The name of the database // options - LongTermRetentionBackupsClientListByDatabaseOptions contains the optional parameters for the LongTermRetentionBackupsClient.ListByDatabase // method. -func (client *LongTermRetentionBackupsClient) ListByDatabase(locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, options *LongTermRetentionBackupsClientListByDatabaseOptions) *runtime.Pager[LongTermRetentionBackupsClientListByDatabaseResponse] { +func (client *LongTermRetentionBackupsClient) NewListByDatabasePager(locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, options *LongTermRetentionBackupsClientListByDatabaseOptions) *runtime.Pager[LongTermRetentionBackupsClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[LongTermRetentionBackupsClientListByDatabaseResponse]{ More: func(page LongTermRetentionBackupsClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -569,12 +569,12 @@ func (client *LongTermRetentionBackupsClient) listByDatabaseHandleResponse(resp return result, nil } -// ListByLocation - Lists the long term retention backups for a given location. +// NewListByLocationPager - Lists the long term retention backups for a given location. // If the operation fails it returns an *azcore.ResponseError type. // locationName - The location of the database // options - LongTermRetentionBackupsClientListByLocationOptions contains the optional parameters for the LongTermRetentionBackupsClient.ListByLocation // method. -func (client *LongTermRetentionBackupsClient) ListByLocation(locationName string, options *LongTermRetentionBackupsClientListByLocationOptions) *runtime.Pager[LongTermRetentionBackupsClientListByLocationResponse] { +func (client *LongTermRetentionBackupsClient) NewListByLocationPager(locationName string, options *LongTermRetentionBackupsClientListByLocationOptions) *runtime.Pager[LongTermRetentionBackupsClientListByLocationResponse] { return runtime.NewPager(runtime.PageProcessor[LongTermRetentionBackupsClientListByLocationResponse]{ More: func(page LongTermRetentionBackupsClientListByLocationResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -639,7 +639,7 @@ func (client *LongTermRetentionBackupsClient) listByLocationHandleResponse(resp return result, nil } -// ListByResourceGroupDatabase - Lists all long term retention backups for a database. +// NewListByResourceGroupDatabasePager - Lists all long term retention backups for a database. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -648,7 +648,7 @@ func (client *LongTermRetentionBackupsClient) listByLocationHandleResponse(resp // longTermRetentionDatabaseName - The name of the database // options - LongTermRetentionBackupsClientListByResourceGroupDatabaseOptions contains the optional parameters for the LongTermRetentionBackupsClient.ListByResourceGroupDatabase // method. -func (client *LongTermRetentionBackupsClient) ListByResourceGroupDatabase(resourceGroupName string, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, options *LongTermRetentionBackupsClientListByResourceGroupDatabaseOptions) *runtime.Pager[LongTermRetentionBackupsClientListByResourceGroupDatabaseResponse] { +func (client *LongTermRetentionBackupsClient) NewListByResourceGroupDatabasePager(resourceGroupName string, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, options *LongTermRetentionBackupsClientListByResourceGroupDatabaseOptions) *runtime.Pager[LongTermRetentionBackupsClientListByResourceGroupDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[LongTermRetentionBackupsClientListByResourceGroupDatabaseResponse]{ More: func(page LongTermRetentionBackupsClientListByResourceGroupDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -725,14 +725,14 @@ func (client *LongTermRetentionBackupsClient) listByResourceGroupDatabaseHandleR return result, nil } -// ListByResourceGroupLocation - Lists the long term retention backups for a given location. +// NewListByResourceGroupLocationPager - Lists the long term retention backups for a given location. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // locationName - The location of the database // options - LongTermRetentionBackupsClientListByResourceGroupLocationOptions contains the optional parameters for the LongTermRetentionBackupsClient.ListByResourceGroupLocation // method. -func (client *LongTermRetentionBackupsClient) ListByResourceGroupLocation(resourceGroupName string, locationName string, options *LongTermRetentionBackupsClientListByResourceGroupLocationOptions) *runtime.Pager[LongTermRetentionBackupsClientListByResourceGroupLocationResponse] { +func (client *LongTermRetentionBackupsClient) NewListByResourceGroupLocationPager(resourceGroupName string, locationName string, options *LongTermRetentionBackupsClientListByResourceGroupLocationOptions) *runtime.Pager[LongTermRetentionBackupsClientListByResourceGroupLocationResponse] { return runtime.NewPager(runtime.PageProcessor[LongTermRetentionBackupsClientListByResourceGroupLocationResponse]{ More: func(page LongTermRetentionBackupsClientListByResourceGroupLocationResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -801,7 +801,7 @@ func (client *LongTermRetentionBackupsClient) listByResourceGroupLocationHandleR return result, nil } -// ListByResourceGroupServer - Lists the long term retention backups for a given server. +// NewListByResourceGroupServerPager - Lists the long term retention backups for a given server. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -809,7 +809,7 @@ func (client *LongTermRetentionBackupsClient) listByResourceGroupLocationHandleR // longTermRetentionServerName - The name of the server // options - LongTermRetentionBackupsClientListByResourceGroupServerOptions contains the optional parameters for the LongTermRetentionBackupsClient.ListByResourceGroupServer // method. -func (client *LongTermRetentionBackupsClient) ListByResourceGroupServer(resourceGroupName string, locationName string, longTermRetentionServerName string, options *LongTermRetentionBackupsClientListByResourceGroupServerOptions) *runtime.Pager[LongTermRetentionBackupsClientListByResourceGroupServerResponse] { +func (client *LongTermRetentionBackupsClient) NewListByResourceGroupServerPager(resourceGroupName string, locationName string, longTermRetentionServerName string, options *LongTermRetentionBackupsClientListByResourceGroupServerOptions) *runtime.Pager[LongTermRetentionBackupsClientListByResourceGroupServerResponse] { return runtime.NewPager(runtime.PageProcessor[LongTermRetentionBackupsClientListByResourceGroupServerResponse]{ More: func(page LongTermRetentionBackupsClientListByResourceGroupServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -882,13 +882,13 @@ func (client *LongTermRetentionBackupsClient) listByResourceGroupServerHandleRes return result, nil } -// ListByServer - Lists the long term retention backups for a given server. +// NewListByServerPager - Lists the long term retention backups for a given server. // If the operation fails it returns an *azcore.ResponseError type. // locationName - The location of the database // longTermRetentionServerName - The name of the server // options - LongTermRetentionBackupsClientListByServerOptions contains the optional parameters for the LongTermRetentionBackupsClient.ListByServer // method. -func (client *LongTermRetentionBackupsClient) ListByServer(locationName string, longTermRetentionServerName string, options *LongTermRetentionBackupsClientListByServerOptions) *runtime.Pager[LongTermRetentionBackupsClientListByServerResponse] { +func (client *LongTermRetentionBackupsClient) NewListByServerPager(locationName string, longTermRetentionServerName string, options *LongTermRetentionBackupsClientListByServerOptions) *runtime.Pager[LongTermRetentionBackupsClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[LongTermRetentionBackupsClientListByServerResponse]{ More: func(page LongTermRetentionBackupsClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_longtermretentionmanagedinstancebackups_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_longtermretentionmanagedinstancebackups_client.go index a2fae90674b7..27bafac740cf 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_longtermretentionmanagedinstancebackups_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_longtermretentionmanagedinstancebackups_client.go @@ -339,14 +339,14 @@ func (client *LongTermRetentionManagedInstanceBackupsClient) getByResourceGroupH return result, nil } -// ListByDatabase - Lists all long term retention backups for a managed database. +// NewListByDatabasePager - Lists all long term retention backups for a managed database. // If the operation fails it returns an *azcore.ResponseError type. // locationName - The location of the database. // managedInstanceName - The name of the managed instance. // databaseName - The name of the managed database. // options - LongTermRetentionManagedInstanceBackupsClientListByDatabaseOptions contains the optional parameters for the LongTermRetentionManagedInstanceBackupsClient.ListByDatabase // method. -func (client *LongTermRetentionManagedInstanceBackupsClient) ListByDatabase(locationName string, managedInstanceName string, databaseName string, options *LongTermRetentionManagedInstanceBackupsClientListByDatabaseOptions) *runtime.Pager[LongTermRetentionManagedInstanceBackupsClientListByDatabaseResponse] { +func (client *LongTermRetentionManagedInstanceBackupsClient) NewListByDatabasePager(locationName string, managedInstanceName string, databaseName string, options *LongTermRetentionManagedInstanceBackupsClientListByDatabaseOptions) *runtime.Pager[LongTermRetentionManagedInstanceBackupsClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[LongTermRetentionManagedInstanceBackupsClientListByDatabaseResponse]{ More: func(page LongTermRetentionManagedInstanceBackupsClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -419,13 +419,13 @@ func (client *LongTermRetentionManagedInstanceBackupsClient) listByDatabaseHandl return result, nil } -// ListByInstance - Lists the long term retention backups for a given managed instance. +// NewListByInstancePager - Lists the long term retention backups for a given managed instance. // If the operation fails it returns an *azcore.ResponseError type. // locationName - The location of the database // managedInstanceName - The name of the managed instance. // options - LongTermRetentionManagedInstanceBackupsClientListByInstanceOptions contains the optional parameters for the LongTermRetentionManagedInstanceBackupsClient.ListByInstance // method. -func (client *LongTermRetentionManagedInstanceBackupsClient) ListByInstance(locationName string, managedInstanceName string, options *LongTermRetentionManagedInstanceBackupsClientListByInstanceOptions) *runtime.Pager[LongTermRetentionManagedInstanceBackupsClientListByInstanceResponse] { +func (client *LongTermRetentionManagedInstanceBackupsClient) NewListByInstancePager(locationName string, managedInstanceName string, options *LongTermRetentionManagedInstanceBackupsClientListByInstanceOptions) *runtime.Pager[LongTermRetentionManagedInstanceBackupsClientListByInstanceResponse] { return runtime.NewPager(runtime.PageProcessor[LongTermRetentionManagedInstanceBackupsClientListByInstanceResponse]{ More: func(page LongTermRetentionManagedInstanceBackupsClientListByInstanceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -494,12 +494,12 @@ func (client *LongTermRetentionManagedInstanceBackupsClient) listByInstanceHandl return result, nil } -// ListByLocation - Lists the long term retention backups for managed databases in a given location. +// NewListByLocationPager - Lists the long term retention backups for managed databases in a given location. // If the operation fails it returns an *azcore.ResponseError type. // locationName - The location of the database. // options - LongTermRetentionManagedInstanceBackupsClientListByLocationOptions contains the optional parameters for the LongTermRetentionManagedInstanceBackupsClient.ListByLocation // method. -func (client *LongTermRetentionManagedInstanceBackupsClient) ListByLocation(locationName string, options *LongTermRetentionManagedInstanceBackupsClientListByLocationOptions) *runtime.Pager[LongTermRetentionManagedInstanceBackupsClientListByLocationResponse] { +func (client *LongTermRetentionManagedInstanceBackupsClient) NewListByLocationPager(locationName string, options *LongTermRetentionManagedInstanceBackupsClientListByLocationOptions) *runtime.Pager[LongTermRetentionManagedInstanceBackupsClientListByLocationResponse] { return runtime.NewPager(runtime.PageProcessor[LongTermRetentionManagedInstanceBackupsClientListByLocationResponse]{ More: func(page LongTermRetentionManagedInstanceBackupsClientListByLocationResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -564,7 +564,7 @@ func (client *LongTermRetentionManagedInstanceBackupsClient) listByLocationHandl return result, nil } -// ListByResourceGroupDatabase - Lists all long term retention backups for a managed database. +// NewListByResourceGroupDatabasePager - Lists all long term retention backups for a managed database. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -573,7 +573,7 @@ func (client *LongTermRetentionManagedInstanceBackupsClient) listByLocationHandl // databaseName - The name of the managed database. // options - LongTermRetentionManagedInstanceBackupsClientListByResourceGroupDatabaseOptions contains the optional parameters // for the LongTermRetentionManagedInstanceBackupsClient.ListByResourceGroupDatabase method. -func (client *LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupDatabase(resourceGroupName string, locationName string, managedInstanceName string, databaseName string, options *LongTermRetentionManagedInstanceBackupsClientListByResourceGroupDatabaseOptions) *runtime.Pager[LongTermRetentionManagedInstanceBackupsClientListByResourceGroupDatabaseResponse] { +func (client *LongTermRetentionManagedInstanceBackupsClient) NewListByResourceGroupDatabasePager(resourceGroupName string, locationName string, managedInstanceName string, databaseName string, options *LongTermRetentionManagedInstanceBackupsClientListByResourceGroupDatabaseOptions) *runtime.Pager[LongTermRetentionManagedInstanceBackupsClientListByResourceGroupDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[LongTermRetentionManagedInstanceBackupsClientListByResourceGroupDatabaseResponse]{ More: func(page LongTermRetentionManagedInstanceBackupsClientListByResourceGroupDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -650,7 +650,7 @@ func (client *LongTermRetentionManagedInstanceBackupsClient) listByResourceGroup return result, nil } -// ListByResourceGroupInstance - Lists the long term retention backups for a given managed instance. +// NewListByResourceGroupInstancePager - Lists the long term retention backups for a given managed instance. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -658,7 +658,7 @@ func (client *LongTermRetentionManagedInstanceBackupsClient) listByResourceGroup // managedInstanceName - The name of the managed instance. // options - LongTermRetentionManagedInstanceBackupsClientListByResourceGroupInstanceOptions contains the optional parameters // for the LongTermRetentionManagedInstanceBackupsClient.ListByResourceGroupInstance method. -func (client *LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupInstance(resourceGroupName string, locationName string, managedInstanceName string, options *LongTermRetentionManagedInstanceBackupsClientListByResourceGroupInstanceOptions) *runtime.Pager[LongTermRetentionManagedInstanceBackupsClientListByResourceGroupInstanceResponse] { +func (client *LongTermRetentionManagedInstanceBackupsClient) NewListByResourceGroupInstancePager(resourceGroupName string, locationName string, managedInstanceName string, options *LongTermRetentionManagedInstanceBackupsClientListByResourceGroupInstanceOptions) *runtime.Pager[LongTermRetentionManagedInstanceBackupsClientListByResourceGroupInstanceResponse] { return runtime.NewPager(runtime.PageProcessor[LongTermRetentionManagedInstanceBackupsClientListByResourceGroupInstanceResponse]{ More: func(page LongTermRetentionManagedInstanceBackupsClientListByResourceGroupInstanceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -731,14 +731,14 @@ func (client *LongTermRetentionManagedInstanceBackupsClient) listByResourceGroup return result, nil } -// ListByResourceGroupLocation - Lists the long term retention backups for managed databases in a given location. +// NewListByResourceGroupLocationPager - Lists the long term retention backups for managed databases in a given location. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // locationName - The location of the database. // options - LongTermRetentionManagedInstanceBackupsClientListByResourceGroupLocationOptions contains the optional parameters // for the LongTermRetentionManagedInstanceBackupsClient.ListByResourceGroupLocation method. -func (client *LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupLocation(resourceGroupName string, locationName string, options *LongTermRetentionManagedInstanceBackupsClientListByResourceGroupLocationOptions) *runtime.Pager[LongTermRetentionManagedInstanceBackupsClientListByResourceGroupLocationResponse] { +func (client *LongTermRetentionManagedInstanceBackupsClient) NewListByResourceGroupLocationPager(resourceGroupName string, locationName string, options *LongTermRetentionManagedInstanceBackupsClientListByResourceGroupLocationOptions) *runtime.Pager[LongTermRetentionManagedInstanceBackupsClientListByResourceGroupLocationResponse] { return runtime.NewPager(runtime.PageProcessor[LongTermRetentionManagedInstanceBackupsClientListByResourceGroupLocationResponse]{ More: func(page LongTermRetentionManagedInstanceBackupsClientListByResourceGroupLocationResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_longtermretentionpolicies_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_longtermretentionpolicies_client.go index 65b7708c4938..519b838c6a31 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_longtermretentionpolicies_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_longtermretentionpolicies_client.go @@ -194,7 +194,7 @@ func (client *LongTermRetentionPoliciesClient) getHandleResponse(resp *http.Resp return result, nil } -// ListByDatabase - Gets a database's long term retention policy. +// NewListByDatabasePager - Gets a database's long term retention policy. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -202,7 +202,7 @@ func (client *LongTermRetentionPoliciesClient) getHandleResponse(resp *http.Resp // databaseName - The name of the database. // options - LongTermRetentionPoliciesClientListByDatabaseOptions contains the optional parameters for the LongTermRetentionPoliciesClient.ListByDatabase // method. -func (client *LongTermRetentionPoliciesClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, options *LongTermRetentionPoliciesClientListByDatabaseOptions) *runtime.Pager[LongTermRetentionPoliciesClientListByDatabaseResponse] { +func (client *LongTermRetentionPoliciesClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *LongTermRetentionPoliciesClientListByDatabaseOptions) *runtime.Pager[LongTermRetentionPoliciesClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[LongTermRetentionPoliciesClientListByDatabaseResponse]{ More: func(page LongTermRetentionPoliciesClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_managedbackupshorttermretentionpolicies_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_managedbackupshorttermretentionpolicies_client.go index cc6e0cadbc43..0506cab4ebbc 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_managedbackupshorttermretentionpolicies_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_managedbackupshorttermretentionpolicies_client.go @@ -194,7 +194,7 @@ func (client *ManagedBackupShortTermRetentionPoliciesClient) getHandleResponse(r return result, nil } -// ListByDatabase - Gets a managed database's short term retention policy list. +// NewListByDatabasePager - Gets a managed database's short term retention policy list. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -202,7 +202,7 @@ func (client *ManagedBackupShortTermRetentionPoliciesClient) getHandleResponse(r // databaseName - The name of the database. // options - ManagedBackupShortTermRetentionPoliciesClientListByDatabaseOptions contains the optional parameters for the ManagedBackupShortTermRetentionPoliciesClient.ListByDatabase // method. -func (client *ManagedBackupShortTermRetentionPoliciesClient) ListByDatabase(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedBackupShortTermRetentionPoliciesClientListByDatabaseOptions) *runtime.Pager[ManagedBackupShortTermRetentionPoliciesClientListByDatabaseResponse] { +func (client *ManagedBackupShortTermRetentionPoliciesClient) NewListByDatabasePager(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedBackupShortTermRetentionPoliciesClientListByDatabaseOptions) *runtime.Pager[ManagedBackupShortTermRetentionPoliciesClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedBackupShortTermRetentionPoliciesClientListByDatabaseResponse]{ More: func(page ManagedBackupShortTermRetentionPoliciesClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasecolumns_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasecolumns_client.go index dcc83a185be6..a7ebec62450f 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasecolumns_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasecolumns_client.go @@ -131,7 +131,7 @@ func (client *ManagedDatabaseColumnsClient) getHandleResponse(resp *http.Respons return result, nil } -// ListByDatabase - List managed database columns +// NewListByDatabasePager - List managed database columns // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -139,7 +139,7 @@ func (client *ManagedDatabaseColumnsClient) getHandleResponse(resp *http.Respons // databaseName - The name of the database. // options - ManagedDatabaseColumnsClientListByDatabaseOptions contains the optional parameters for the ManagedDatabaseColumnsClient.ListByDatabase // method. -func (client *ManagedDatabaseColumnsClient) ListByDatabase(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedDatabaseColumnsClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseColumnsClientListByDatabaseResponse] { +func (client *ManagedDatabaseColumnsClient) NewListByDatabasePager(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedDatabaseColumnsClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseColumnsClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedDatabaseColumnsClientListByDatabaseResponse]{ More: func(page ManagedDatabaseColumnsClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -229,7 +229,7 @@ func (client *ManagedDatabaseColumnsClient) listByDatabaseHandleResponse(resp *h return result, nil } -// ListByTable - List managed database columns +// NewListByTablePager - List managed database columns // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -239,7 +239,7 @@ func (client *ManagedDatabaseColumnsClient) listByDatabaseHandleResponse(resp *h // tableName - The name of the table. // options - ManagedDatabaseColumnsClientListByTableOptions contains the optional parameters for the ManagedDatabaseColumnsClient.ListByTable // method. -func (client *ManagedDatabaseColumnsClient) ListByTable(resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, options *ManagedDatabaseColumnsClientListByTableOptions) *runtime.Pager[ManagedDatabaseColumnsClientListByTableResponse] { +func (client *ManagedDatabaseColumnsClient) NewListByTablePager(resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, options *ManagedDatabaseColumnsClientListByTableOptions) *runtime.Pager[ManagedDatabaseColumnsClientListByTableResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedDatabaseColumnsClientListByTableResponse]{ More: func(page ManagedDatabaseColumnsClientListByTableResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasequeries_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasequeries_client.go index c80b4507bba3..a64f921e250a 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasequeries_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasequeries_client.go @@ -120,7 +120,7 @@ func (client *ManagedDatabaseQueriesClient) getHandleResponse(resp *http.Respons return result, nil } -// ListByQuery - Get query execution statistics by query id. +// NewListByQueryPager - Get query execution statistics by query id. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -128,7 +128,7 @@ func (client *ManagedDatabaseQueriesClient) getHandleResponse(resp *http.Respons // databaseName - The name of the database. // options - ManagedDatabaseQueriesClientListByQueryOptions contains the optional parameters for the ManagedDatabaseQueriesClient.ListByQuery // method. -func (client *ManagedDatabaseQueriesClient) ListByQuery(resourceGroupName string, managedInstanceName string, databaseName string, queryID string, options *ManagedDatabaseQueriesClientListByQueryOptions) *runtime.Pager[ManagedDatabaseQueriesClientListByQueryResponse] { +func (client *ManagedDatabaseQueriesClient) NewListByQueryPager(resourceGroupName string, managedInstanceName string, databaseName string, queryID string, options *ManagedDatabaseQueriesClientListByQueryOptions) *runtime.Pager[ManagedDatabaseQueriesClientListByQueryResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedDatabaseQueriesClientListByQueryResponse]{ More: func(page ManagedDatabaseQueriesClientListByQueryResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabases_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabases_client.go index fb33900fe677..9e5a73aee83a 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabases_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabases_client.go @@ -316,14 +316,14 @@ func (client *ManagedDatabasesClient) getHandleResponse(resp *http.Response) (Ma return result, nil } -// ListByInstance - Gets a list of managed databases. +// NewListByInstancePager - Gets a list of managed databases. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // managedInstanceName - The name of the managed instance. // options - ManagedDatabasesClientListByInstanceOptions contains the optional parameters for the ManagedDatabasesClient.ListByInstance // method. -func (client *ManagedDatabasesClient) ListByInstance(resourceGroupName string, managedInstanceName string, options *ManagedDatabasesClientListByInstanceOptions) *runtime.Pager[ManagedDatabasesClientListByInstanceResponse] { +func (client *ManagedDatabasesClient) NewListByInstancePager(resourceGroupName string, managedInstanceName string, options *ManagedDatabasesClientListByInstanceOptions) *runtime.Pager[ManagedDatabasesClientListByInstanceResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedDatabasesClientListByInstanceResponse]{ More: func(page ManagedDatabasesClientListByInstanceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -386,14 +386,14 @@ func (client *ManagedDatabasesClient) listByInstanceHandleResponse(resp *http.Re return result, nil } -// ListInaccessibleByInstance - Gets a list of inaccessible managed databases in a managed instance +// NewListInaccessibleByInstancePager - Gets a list of inaccessible managed databases in a managed instance // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // managedInstanceName - The name of the managed instance. // options - ManagedDatabasesClientListInaccessibleByInstanceOptions contains the optional parameters for the ManagedDatabasesClient.ListInaccessibleByInstance // method. -func (client *ManagedDatabasesClient) ListInaccessibleByInstance(resourceGroupName string, managedInstanceName string, options *ManagedDatabasesClientListInaccessibleByInstanceOptions) *runtime.Pager[ManagedDatabasesClientListInaccessibleByInstanceResponse] { +func (client *ManagedDatabasesClient) NewListInaccessibleByInstancePager(resourceGroupName string, managedInstanceName string, options *ManagedDatabasesClientListInaccessibleByInstanceOptions) *runtime.Pager[ManagedDatabasesClientListInaccessibleByInstanceResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedDatabasesClientListInaccessibleByInstanceResponse]{ More: func(page ManagedDatabasesClientListInaccessibleByInstanceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabaseschemas_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabaseschemas_client.go index 008049e9f204..31f3cb348e77 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabaseschemas_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabaseschemas_client.go @@ -121,7 +121,7 @@ func (client *ManagedDatabaseSchemasClient) getHandleResponse(resp *http.Respons return result, nil } -// ListByDatabase - List managed database schemas +// NewListByDatabasePager - List managed database schemas // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -129,7 +129,7 @@ func (client *ManagedDatabaseSchemasClient) getHandleResponse(resp *http.Respons // databaseName - The name of the database. // options - ManagedDatabaseSchemasClientListByDatabaseOptions contains the optional parameters for the ManagedDatabaseSchemasClient.ListByDatabase // method. -func (client *ManagedDatabaseSchemasClient) ListByDatabase(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedDatabaseSchemasClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseSchemasClientListByDatabaseResponse] { +func (client *ManagedDatabaseSchemasClient) NewListByDatabasePager(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedDatabaseSchemasClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseSchemasClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedDatabaseSchemasClientListByDatabaseResponse]{ More: func(page ManagedDatabaseSchemasClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasesecurityalertpolicies_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasesecurityalertpolicies_client.go index c6fb6e9d48a6..ac468e504914 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasesecurityalertpolicies_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasesecurityalertpolicies_client.go @@ -189,7 +189,7 @@ func (client *ManagedDatabaseSecurityAlertPoliciesClient) getHandleResponse(resp return result, nil } -// ListByDatabase - Gets a list of managed database's security alert policies. +// NewListByDatabasePager - Gets a list of managed database's security alert policies. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -197,7 +197,7 @@ func (client *ManagedDatabaseSecurityAlertPoliciesClient) getHandleResponse(resp // databaseName - The name of the managed database for which the security alert policies are defined. // options - ManagedDatabaseSecurityAlertPoliciesClientListByDatabaseOptions contains the optional parameters for the ManagedDatabaseSecurityAlertPoliciesClient.ListByDatabase // method. -func (client *ManagedDatabaseSecurityAlertPoliciesClient) ListByDatabase(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedDatabaseSecurityAlertPoliciesClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseSecurityAlertPoliciesClientListByDatabaseResponse] { +func (client *ManagedDatabaseSecurityAlertPoliciesClient) NewListByDatabasePager(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedDatabaseSecurityAlertPoliciesClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseSecurityAlertPoliciesClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedDatabaseSecurityAlertPoliciesClientListByDatabaseResponse]{ More: func(page ManagedDatabaseSecurityAlertPoliciesClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasesecurityevents_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasesecurityevents_client.go index 27783008d98c..08b4a10ed273 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasesecurityevents_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasesecurityevents_client.go @@ -55,7 +55,7 @@ func NewManagedDatabaseSecurityEventsClient(subscriptionID string, credential az return client, nil } -// ListByDatabase - Gets a list of security events. +// NewListByDatabasePager - Gets a list of security events. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -63,7 +63,7 @@ func NewManagedDatabaseSecurityEventsClient(subscriptionID string, credential az // databaseName - The name of the managed database for which the security events are retrieved. // options - ManagedDatabaseSecurityEventsClientListByDatabaseOptions contains the optional parameters for the ManagedDatabaseSecurityEventsClient.ListByDatabase // method. -func (client *ManagedDatabaseSecurityEventsClient) ListByDatabase(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedDatabaseSecurityEventsClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseSecurityEventsClientListByDatabaseResponse] { +func (client *ManagedDatabaseSecurityEventsClient) NewListByDatabasePager(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedDatabaseSecurityEventsClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseSecurityEventsClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedDatabaseSecurityEventsClientListByDatabaseResponse]{ More: func(page ManagedDatabaseSecurityEventsClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasesensitivitylabels_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasesensitivitylabels_client.go index 23c46efb70fa..f54d1df1e3bd 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasesensitivitylabels_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasesensitivitylabels_client.go @@ -421,7 +421,7 @@ func (client *ManagedDatabaseSensitivityLabelsClient) getHandleResponse(resp *ht return result, nil } -// ListByDatabase - Gets the sensitivity labels of a given database +// NewListByDatabasePager - Gets the sensitivity labels of a given database // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -429,7 +429,7 @@ func (client *ManagedDatabaseSensitivityLabelsClient) getHandleResponse(resp *ht // databaseName - The name of the database. // options - ManagedDatabaseSensitivityLabelsClientListByDatabaseOptions contains the optional parameters for the ManagedDatabaseSensitivityLabelsClient.ListByDatabase // method. -func (client *ManagedDatabaseSensitivityLabelsClient) ListByDatabase(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedDatabaseSensitivityLabelsClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseSensitivityLabelsClientListByDatabaseResponse] { +func (client *ManagedDatabaseSensitivityLabelsClient) NewListByDatabasePager(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedDatabaseSensitivityLabelsClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseSensitivityLabelsClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedDatabaseSensitivityLabelsClientListByDatabaseResponse]{ More: func(page ManagedDatabaseSensitivityLabelsClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -499,7 +499,7 @@ func (client *ManagedDatabaseSensitivityLabelsClient) listByDatabaseHandleRespon return result, nil } -// ListCurrentByDatabase - Gets the sensitivity labels of a given database +// NewListCurrentByDatabasePager - Gets the sensitivity labels of a given database // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -507,7 +507,7 @@ func (client *ManagedDatabaseSensitivityLabelsClient) listByDatabaseHandleRespon // databaseName - The name of the database. // options - ManagedDatabaseSensitivityLabelsClientListCurrentByDatabaseOptions contains the optional parameters for the ManagedDatabaseSensitivityLabelsClient.ListCurrentByDatabase // method. -func (client *ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabase(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedDatabaseSensitivityLabelsClientListCurrentByDatabaseOptions) *runtime.Pager[ManagedDatabaseSensitivityLabelsClientListCurrentByDatabaseResponse] { +func (client *ManagedDatabaseSensitivityLabelsClient) NewListCurrentByDatabasePager(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedDatabaseSensitivityLabelsClientListCurrentByDatabaseOptions) *runtime.Pager[ManagedDatabaseSensitivityLabelsClientListCurrentByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedDatabaseSensitivityLabelsClientListCurrentByDatabaseResponse]{ More: func(page ManagedDatabaseSensitivityLabelsClientListCurrentByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -583,7 +583,7 @@ func (client *ManagedDatabaseSensitivityLabelsClient) listCurrentByDatabaseHandl return result, nil } -// ListRecommendedByDatabase - Gets the sensitivity labels of a given database +// NewListRecommendedByDatabasePager - Gets the sensitivity labels of a given database // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -591,7 +591,7 @@ func (client *ManagedDatabaseSensitivityLabelsClient) listCurrentByDatabaseHandl // databaseName - The name of the database. // options - ManagedDatabaseSensitivityLabelsClientListRecommendedByDatabaseOptions contains the optional parameters for the // ManagedDatabaseSensitivityLabelsClient.ListRecommendedByDatabase method. -func (client *ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabase(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedDatabaseSensitivityLabelsClientListRecommendedByDatabaseOptions) *runtime.Pager[ManagedDatabaseSensitivityLabelsClientListRecommendedByDatabaseResponse] { +func (client *ManagedDatabaseSensitivityLabelsClient) NewListRecommendedByDatabasePager(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedDatabaseSensitivityLabelsClientListRecommendedByDatabaseOptions) *runtime.Pager[ManagedDatabaseSensitivityLabelsClientListRecommendedByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedDatabaseSensitivityLabelsClientListRecommendedByDatabaseResponse]{ More: func(page ManagedDatabaseSensitivityLabelsClientListRecommendedByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasetables_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasetables_client.go index 08a73d43908f..4cd7f0fd7bee 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasetables_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasetables_client.go @@ -126,7 +126,7 @@ func (client *ManagedDatabaseTablesClient) getHandleResponse(resp *http.Response return result, nil } -// ListBySchema - List managed database tables +// NewListBySchemaPager - List managed database tables // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -135,7 +135,7 @@ func (client *ManagedDatabaseTablesClient) getHandleResponse(resp *http.Response // schemaName - The name of the schema. // options - ManagedDatabaseTablesClientListBySchemaOptions contains the optional parameters for the ManagedDatabaseTablesClient.ListBySchema // method. -func (client *ManagedDatabaseTablesClient) ListBySchema(resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, options *ManagedDatabaseTablesClientListBySchemaOptions) *runtime.Pager[ManagedDatabaseTablesClientListBySchemaResponse] { +func (client *ManagedDatabaseTablesClient) NewListBySchemaPager(resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, options *ManagedDatabaseTablesClientListBySchemaOptions) *runtime.Pager[ManagedDatabaseTablesClientListBySchemaResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedDatabaseTablesClientListBySchemaResponse]{ More: func(page ManagedDatabaseTablesClientListBySchemaResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasetransparentdataencryption_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasetransparentdataencryption_client.go index 363bf60341ba..dec1602eadc4 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasetransparentdataencryption_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasetransparentdataencryption_client.go @@ -189,7 +189,7 @@ func (client *ManagedDatabaseTransparentDataEncryptionClient) getHandleResponse( return result, nil } -// ListByDatabase - Gets a list of managed database's transparent data encryptions. +// NewListByDatabasePager - Gets a list of managed database's transparent data encryptions. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -197,7 +197,7 @@ func (client *ManagedDatabaseTransparentDataEncryptionClient) getHandleResponse( // databaseName - The name of the managed database for which the transparent data encryption is defined. // options - ManagedDatabaseTransparentDataEncryptionClientListByDatabaseOptions contains the optional parameters for the // ManagedDatabaseTransparentDataEncryptionClient.ListByDatabase method. -func (client *ManagedDatabaseTransparentDataEncryptionClient) ListByDatabase(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedDatabaseTransparentDataEncryptionClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseTransparentDataEncryptionClientListByDatabaseResponse] { +func (client *ManagedDatabaseTransparentDataEncryptionClient) NewListByDatabasePager(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedDatabaseTransparentDataEncryptionClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseTransparentDataEncryptionClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedDatabaseTransparentDataEncryptionClientListByDatabaseResponse]{ More: func(page ManagedDatabaseTransparentDataEncryptionClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasevulnerabilityassessments_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasevulnerabilityassessments_client.go index f53277ab8405..aa924892d17c 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasevulnerabilityassessments_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasevulnerabilityassessments_client.go @@ -246,7 +246,7 @@ func (client *ManagedDatabaseVulnerabilityAssessmentsClient) getHandleResponse(r return result, nil } -// ListByDatabase - Lists the vulnerability assessments of a managed database. +// NewListByDatabasePager - Lists the vulnerability assessments of a managed database. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -254,7 +254,7 @@ func (client *ManagedDatabaseVulnerabilityAssessmentsClient) getHandleResponse(r // databaseName - The name of the database for which the vulnerability assessment is defined. // options - ManagedDatabaseVulnerabilityAssessmentsClientListByDatabaseOptions contains the optional parameters for the ManagedDatabaseVulnerabilityAssessmentsClient.ListByDatabase // method. -func (client *ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabase(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedDatabaseVulnerabilityAssessmentsClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseVulnerabilityAssessmentsClientListByDatabaseResponse] { +func (client *ManagedDatabaseVulnerabilityAssessmentsClient) NewListByDatabasePager(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedDatabaseVulnerabilityAssessmentsClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseVulnerabilityAssessmentsClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedDatabaseVulnerabilityAssessmentsClientListByDatabaseResponse]{ More: func(page ManagedDatabaseVulnerabilityAssessmentsClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasevulnerabilityassessmentscans_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasevulnerabilityassessmentscans_client.go index 3cb829abc21c..7791e3bc5e8a 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasevulnerabilityassessmentscans_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_manageddatabasevulnerabilityassessmentscans_client.go @@ -274,7 +274,7 @@ func (client *ManagedDatabaseVulnerabilityAssessmentScansClient) initiateScanCre return req, nil } -// ListByDatabase - Lists the vulnerability assessment scans of a database. +// NewListByDatabasePager - Lists the vulnerability assessment scans of a database. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -283,7 +283,7 @@ func (client *ManagedDatabaseVulnerabilityAssessmentScansClient) initiateScanCre // vulnerabilityAssessmentName - The name of the vulnerability assessment. // options - ManagedDatabaseVulnerabilityAssessmentScansClientListByDatabaseOptions contains the optional parameters for the // ManagedDatabaseVulnerabilityAssessmentScansClient.ListByDatabase method. -func (client *ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabase(resourceGroupName string, managedInstanceName string, databaseName string, vulnerabilityAssessmentName VulnerabilityAssessmentName, options *ManagedDatabaseVulnerabilityAssessmentScansClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseVulnerabilityAssessmentScansClientListByDatabaseResponse] { +func (client *ManagedDatabaseVulnerabilityAssessmentScansClient) NewListByDatabasePager(resourceGroupName string, managedInstanceName string, databaseName string, vulnerabilityAssessmentName VulnerabilityAssessmentName, options *ManagedDatabaseVulnerabilityAssessmentScansClientListByDatabaseOptions) *runtime.Pager[ManagedDatabaseVulnerabilityAssessmentScansClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedDatabaseVulnerabilityAssessmentScansClientListByDatabaseResponse]{ More: func(page ManagedDatabaseVulnerabilityAssessmentScansClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceadministrators_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceadministrators_client.go index acc703a36b61..be41da095483 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceadministrators_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceadministrators_client.go @@ -247,14 +247,14 @@ func (client *ManagedInstanceAdministratorsClient) getHandleResponse(resp *http. return result, nil } -// ListByInstance - Gets a list of managed instance administrators. +// NewListByInstancePager - Gets a list of managed instance administrators. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // managedInstanceName - The name of the managed instance. // options - ManagedInstanceAdministratorsClientListByInstanceOptions contains the optional parameters for the ManagedInstanceAdministratorsClient.ListByInstance // method. -func (client *ManagedInstanceAdministratorsClient) ListByInstance(resourceGroupName string, managedInstanceName string, options *ManagedInstanceAdministratorsClientListByInstanceOptions) *runtime.Pager[ManagedInstanceAdministratorsClientListByInstanceResponse] { +func (client *ManagedInstanceAdministratorsClient) NewListByInstancePager(resourceGroupName string, managedInstanceName string, options *ManagedInstanceAdministratorsClientListByInstanceOptions) *runtime.Pager[ManagedInstanceAdministratorsClientListByInstanceResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedInstanceAdministratorsClientListByInstanceResponse]{ More: func(page ManagedInstanceAdministratorsClientListByInstanceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceazureadonlyauthentications_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceazureadonlyauthentications_client.go index 4fa618420b71..33916211faa1 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceazureadonlyauthentications_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceazureadonlyauthentications_client.go @@ -252,14 +252,14 @@ func (client *ManagedInstanceAzureADOnlyAuthenticationsClient) getHandleResponse return result, nil } -// ListByInstance - Gets a list of server Azure Active Directory only authentications. +// NewListByInstancePager - Gets a list of server Azure Active Directory only authentications. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // managedInstanceName - The name of the managed instance. // options - ManagedInstanceAzureADOnlyAuthenticationsClientListByInstanceOptions contains the optional parameters for the // ManagedInstanceAzureADOnlyAuthenticationsClient.ListByInstance method. -func (client *ManagedInstanceAzureADOnlyAuthenticationsClient) ListByInstance(resourceGroupName string, managedInstanceName string, options *ManagedInstanceAzureADOnlyAuthenticationsClientListByInstanceOptions) *runtime.Pager[ManagedInstanceAzureADOnlyAuthenticationsClientListByInstanceResponse] { +func (client *ManagedInstanceAzureADOnlyAuthenticationsClient) NewListByInstancePager(resourceGroupName string, managedInstanceName string, options *ManagedInstanceAzureADOnlyAuthenticationsClientListByInstanceOptions) *runtime.Pager[ManagedInstanceAzureADOnlyAuthenticationsClientListByInstanceResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedInstanceAzureADOnlyAuthenticationsClientListByInstanceResponse]{ More: func(page ManagedInstanceAzureADOnlyAuthenticationsClientListByInstanceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceencryptionprotectors_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceencryptionprotectors_client.go index b6b98a18c7b6..7b4475b95875 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceencryptionprotectors_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceencryptionprotectors_client.go @@ -184,14 +184,14 @@ func (client *ManagedInstanceEncryptionProtectorsClient) getHandleResponse(resp return result, nil } -// ListByInstance - Gets a list of managed instance encryption protectors +// NewListByInstancePager - Gets a list of managed instance encryption protectors // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // managedInstanceName - The name of the managed instance. // options - ManagedInstanceEncryptionProtectorsClientListByInstanceOptions contains the optional parameters for the ManagedInstanceEncryptionProtectorsClient.ListByInstance // method. -func (client *ManagedInstanceEncryptionProtectorsClient) ListByInstance(resourceGroupName string, managedInstanceName string, options *ManagedInstanceEncryptionProtectorsClientListByInstanceOptions) *runtime.Pager[ManagedInstanceEncryptionProtectorsClientListByInstanceResponse] { +func (client *ManagedInstanceEncryptionProtectorsClient) NewListByInstancePager(resourceGroupName string, managedInstanceName string, options *ManagedInstanceEncryptionProtectorsClientListByInstanceOptions) *runtime.Pager[ManagedInstanceEncryptionProtectorsClientListByInstanceResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedInstanceEncryptionProtectorsClientListByInstanceResponse]{ More: func(page ManagedInstanceEncryptionProtectorsClientListByInstanceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_managedinstancekeys_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_managedinstancekeys_client.go index 7183fecd0976..89bcffc2f1f4 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_managedinstancekeys_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_managedinstancekeys_client.go @@ -249,14 +249,14 @@ func (client *ManagedInstanceKeysClient) getHandleResponse(resp *http.Response) return result, nil } -// ListByInstance - Gets a list of managed instance keys. +// NewListByInstancePager - Gets a list of managed instance keys. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // managedInstanceName - The name of the managed instance. // options - ManagedInstanceKeysClientListByInstanceOptions contains the optional parameters for the ManagedInstanceKeysClient.ListByInstance // method. -func (client *ManagedInstanceKeysClient) ListByInstance(resourceGroupName string, managedInstanceName string, options *ManagedInstanceKeysClientListByInstanceOptions) *runtime.Pager[ManagedInstanceKeysClientListByInstanceResponse] { +func (client *ManagedInstanceKeysClient) NewListByInstancePager(resourceGroupName string, managedInstanceName string, options *ManagedInstanceKeysClientListByInstanceOptions) *runtime.Pager[ManagedInstanceKeysClientListByInstanceResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedInstanceKeysClientListByInstanceResponse]{ More: func(page ManagedInstanceKeysClientListByInstanceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_managedinstancelongtermretentionpolicies_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_managedinstancelongtermretentionpolicies_client.go index 6dda28d6ceab..54a25ada2c5b 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_managedinstancelongtermretentionpolicies_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_managedinstancelongtermretentionpolicies_client.go @@ -194,7 +194,7 @@ func (client *ManagedInstanceLongTermRetentionPoliciesClient) getHandleResponse( return result, nil } -// ListByDatabase - Gets a database's long term retention policy. +// NewListByDatabasePager - Gets a database's long term retention policy. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -202,7 +202,7 @@ func (client *ManagedInstanceLongTermRetentionPoliciesClient) getHandleResponse( // databaseName - The name of the database. // options - ManagedInstanceLongTermRetentionPoliciesClientListByDatabaseOptions contains the optional parameters for the // ManagedInstanceLongTermRetentionPoliciesClient.ListByDatabase method. -func (client *ManagedInstanceLongTermRetentionPoliciesClient) ListByDatabase(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedInstanceLongTermRetentionPoliciesClientListByDatabaseOptions) *runtime.Pager[ManagedInstanceLongTermRetentionPoliciesClientListByDatabaseResponse] { +func (client *ManagedInstanceLongTermRetentionPoliciesClient) NewListByDatabasePager(resourceGroupName string, managedInstanceName string, databaseName string, options *ManagedInstanceLongTermRetentionPoliciesClientListByDatabaseOptions) *runtime.Pager[ManagedInstanceLongTermRetentionPoliciesClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedInstanceLongTermRetentionPoliciesClientListByDatabaseResponse]{ More: func(page ManagedInstanceLongTermRetentionPoliciesClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceoperations_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceoperations_client.go index 9c469956147c..3625da3ce71e 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceoperations_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceoperations_client.go @@ -160,14 +160,14 @@ func (client *ManagedInstanceOperationsClient) getHandleResponse(resp *http.Resp return result, nil } -// ListByManagedInstance - Gets a list of operations performed on the managed instance. +// NewListByManagedInstancePager - Gets a list of operations performed on the managed instance. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // managedInstanceName - The name of the managed instance. // options - ManagedInstanceOperationsClientListByManagedInstanceOptions contains the optional parameters for the ManagedInstanceOperationsClient.ListByManagedInstance // method. -func (client *ManagedInstanceOperationsClient) ListByManagedInstance(resourceGroupName string, managedInstanceName string, options *ManagedInstanceOperationsClientListByManagedInstanceOptions) *runtime.Pager[ManagedInstanceOperationsClientListByManagedInstanceResponse] { +func (client *ManagedInstanceOperationsClient) NewListByManagedInstancePager(resourceGroupName string, managedInstanceName string, options *ManagedInstanceOperationsClientListByManagedInstanceOptions) *runtime.Pager[ManagedInstanceOperationsClientListByManagedInstanceResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedInstanceOperationsClientListByManagedInstanceResponse]{ More: func(page ManagedInstanceOperationsClientListByManagedInstanceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceprivateendpointconnections_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceprivateendpointconnections_client.go index 5ad06520724e..b09a8ff2938d 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceprivateendpointconnections_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceprivateendpointconnections_client.go @@ -247,14 +247,14 @@ func (client *ManagedInstancePrivateEndpointConnectionsClient) getHandleResponse return result, nil } -// ListByManagedInstance - Gets all private endpoint connections on a server. +// NewListByManagedInstancePager - Gets all private endpoint connections on a server. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // managedInstanceName - The name of the managed instance. // options - ManagedInstancePrivateEndpointConnectionsClientListByManagedInstanceOptions contains the optional parameters // for the ManagedInstancePrivateEndpointConnectionsClient.ListByManagedInstance method. -func (client *ManagedInstancePrivateEndpointConnectionsClient) ListByManagedInstance(resourceGroupName string, managedInstanceName string, options *ManagedInstancePrivateEndpointConnectionsClientListByManagedInstanceOptions) *runtime.Pager[ManagedInstancePrivateEndpointConnectionsClientListByManagedInstanceResponse] { +func (client *ManagedInstancePrivateEndpointConnectionsClient) NewListByManagedInstancePager(resourceGroupName string, managedInstanceName string, options *ManagedInstancePrivateEndpointConnectionsClientListByManagedInstanceOptions) *runtime.Pager[ManagedInstancePrivateEndpointConnectionsClientListByManagedInstanceResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedInstancePrivateEndpointConnectionsClientListByManagedInstanceResponse]{ More: func(page ManagedInstancePrivateEndpointConnectionsClientListByManagedInstanceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceprivatelinkresources_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceprivatelinkresources_client.go index d7593fc64671..397461189895 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceprivatelinkresources_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_managedinstanceprivatelinkresources_client.go @@ -116,14 +116,14 @@ func (client *ManagedInstancePrivateLinkResourcesClient) getHandleResponse(resp return result, nil } -// ListByManagedInstance - Gets the private link resources for SQL server. +// NewListByManagedInstancePager - Gets the private link resources for SQL server. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // managedInstanceName - The name of the managed instance. // options - ManagedInstancePrivateLinkResourcesClientListByManagedInstanceOptions contains the optional parameters for the // ManagedInstancePrivateLinkResourcesClient.ListByManagedInstance method. -func (client *ManagedInstancePrivateLinkResourcesClient) ListByManagedInstance(resourceGroupName string, managedInstanceName string, options *ManagedInstancePrivateLinkResourcesClientListByManagedInstanceOptions) *runtime.Pager[ManagedInstancePrivateLinkResourcesClientListByManagedInstanceResponse] { +func (client *ManagedInstancePrivateLinkResourcesClient) NewListByManagedInstancePager(resourceGroupName string, managedInstanceName string, options *ManagedInstancePrivateLinkResourcesClientListByManagedInstanceOptions) *runtime.Pager[ManagedInstancePrivateLinkResourcesClientListByManagedInstanceResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedInstancePrivateLinkResourcesClientListByManagedInstanceResponse]{ More: func(page ManagedInstancePrivateLinkResourcesClientListByManagedInstanceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_managedinstances_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_managedinstances_client.go index b6cefeb1f4a1..9dfcde408769 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_managedinstances_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_managedinstances_client.go @@ -302,10 +302,10 @@ func (client *ManagedInstancesClient) getHandleResponse(resp *http.Response) (Ma return result, nil } -// List - Gets a list of all managed instances in the subscription. +// NewListPager - Gets a list of all managed instances in the subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - ManagedInstancesClientListOptions contains the optional parameters for the ManagedInstancesClient.List method. -func (client *ManagedInstancesClient) List(options *ManagedInstancesClientListOptions) *runtime.Pager[ManagedInstancesClientListResponse] { +func (client *ManagedInstancesClient) NewListPager(options *ManagedInstancesClientListOptions) *runtime.Pager[ManagedInstancesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedInstancesClientListResponse]{ More: func(page ManagedInstancesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -363,14 +363,14 @@ func (client *ManagedInstancesClient) listHandleResponse(resp *http.Response) (M return result, nil } -// ListByInstancePool - Gets a list of all managed instances in an instance pool. +// NewListByInstancePoolPager - Gets a list of all managed instances in an instance pool. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // instancePoolName - The instance pool name. // options - ManagedInstancesClientListByInstancePoolOptions contains the optional parameters for the ManagedInstancesClient.ListByInstancePool // method. -func (client *ManagedInstancesClient) ListByInstancePool(resourceGroupName string, instancePoolName string, options *ManagedInstancesClientListByInstancePoolOptions) *runtime.Pager[ManagedInstancesClientListByInstancePoolResponse] { +func (client *ManagedInstancesClient) NewListByInstancePoolPager(resourceGroupName string, instancePoolName string, options *ManagedInstancesClientListByInstancePoolOptions) *runtime.Pager[ManagedInstancesClientListByInstancePoolResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedInstancesClientListByInstancePoolResponse]{ More: func(page ManagedInstancesClientListByInstancePoolResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -436,14 +436,14 @@ func (client *ManagedInstancesClient) listByInstancePoolHandleResponse(resp *htt return result, nil } -// ListByManagedInstance - Get top resource consuming queries of a managed instance. +// NewListByManagedInstancePager - Get top resource consuming queries of a managed instance. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // managedInstanceName - The name of the managed instance. // options - ManagedInstancesClientListByManagedInstanceOptions contains the optional parameters for the ManagedInstancesClient.ListByManagedInstance // method. -func (client *ManagedInstancesClient) ListByManagedInstance(resourceGroupName string, managedInstanceName string, options *ManagedInstancesClientListByManagedInstanceOptions) *runtime.Pager[ManagedInstancesClientListByManagedInstanceResponse] { +func (client *ManagedInstancesClient) NewListByManagedInstancePager(resourceGroupName string, managedInstanceName string, options *ManagedInstancesClientListByManagedInstanceOptions) *runtime.Pager[ManagedInstancesClientListByManagedInstanceResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedInstancesClientListByManagedInstanceResponse]{ More: func(page ManagedInstancesClientListByManagedInstanceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -527,13 +527,13 @@ func (client *ManagedInstancesClient) listByManagedInstanceHandleResponse(resp * return result, nil } -// ListByResourceGroup - Gets a list of managed instances in a resource group. +// NewListByResourceGroupPager - Gets a list of managed instances in a resource group. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // options - ManagedInstancesClientListByResourceGroupOptions contains the optional parameters for the ManagedInstancesClient.ListByResourceGroup // method. -func (client *ManagedInstancesClient) ListByResourceGroup(resourceGroupName string, options *ManagedInstancesClientListByResourceGroupOptions) *runtime.Pager[ManagedInstancesClientListByResourceGroupResponse] { +func (client *ManagedInstancesClient) NewListByResourceGroupPager(resourceGroupName string, options *ManagedInstancesClientListByResourceGroupOptions) *runtime.Pager[ManagedInstancesClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedInstancesClientListByResourceGroupResponse]{ More: func(page ManagedInstancesClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_managedinstancevulnerabilityassessments_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_managedinstancevulnerabilityassessments_client.go index d747a9f12145..41c9a42965f2 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_managedinstancevulnerabilityassessments_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_managedinstancevulnerabilityassessments_client.go @@ -233,14 +233,14 @@ func (client *ManagedInstanceVulnerabilityAssessmentsClient) getHandleResponse(r return result, nil } -// ListByInstance - Gets the managed instance's vulnerability assessment policies. +// NewListByInstancePager - Gets the managed instance's vulnerability assessment policies. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // managedInstanceName - The name of the managed instance for which the vulnerability assessments is defined. // options - ManagedInstanceVulnerabilityAssessmentsClientListByInstanceOptions contains the optional parameters for the ManagedInstanceVulnerabilityAssessmentsClient.ListByInstance // method. -func (client *ManagedInstanceVulnerabilityAssessmentsClient) ListByInstance(resourceGroupName string, managedInstanceName string, options *ManagedInstanceVulnerabilityAssessmentsClientListByInstanceOptions) *runtime.Pager[ManagedInstanceVulnerabilityAssessmentsClientListByInstanceResponse] { +func (client *ManagedInstanceVulnerabilityAssessmentsClient) NewListByInstancePager(resourceGroupName string, managedInstanceName string, options *ManagedInstanceVulnerabilityAssessmentsClientListByInstanceOptions) *runtime.Pager[ManagedInstanceVulnerabilityAssessmentsClientListByInstanceResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedInstanceVulnerabilityAssessmentsClientListByInstanceResponse]{ More: func(page ManagedInstanceVulnerabilityAssessmentsClientListByInstanceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_managedrestorabledroppeddatabasebackupshorttermretentionpolicies_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_managedrestorabledroppeddatabasebackupshorttermretentionpolicies_client.go index f7cc17c802bf..db540d64224b 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_managedrestorabledroppeddatabasebackupshorttermretentionpolicies_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_managedrestorabledroppeddatabasebackupshorttermretentionpolicies_client.go @@ -193,7 +193,7 @@ func (client *ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCl return result, nil } -// ListByRestorableDroppedDatabase - Gets a dropped database's short term retention policy list. +// NewListByRestorableDroppedDatabasePager - Gets a dropped database's short term retention policy list. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -201,7 +201,7 @@ func (client *ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCl // options - ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClientListByRestorableDroppedDatabaseOptions // contains the optional parameters for the ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient.ListByRestorableDroppedDatabase // method. -func (client *ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) ListByRestorableDroppedDatabase(resourceGroupName string, managedInstanceName string, restorableDroppedDatabaseID string, options *ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClientListByRestorableDroppedDatabaseOptions) *runtime.Pager[ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClientListByRestorableDroppedDatabaseResponse] { +func (client *ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) NewListByRestorableDroppedDatabasePager(resourceGroupName string, managedInstanceName string, restorableDroppedDatabaseID string, options *ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClientListByRestorableDroppedDatabaseOptions) *runtime.Pager[ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClientListByRestorableDroppedDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClientListByRestorableDroppedDatabaseResponse]{ More: func(page ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClientListByRestorableDroppedDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_managedserverdnsaliases_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_managedserverdnsaliases_client.go index 92f05c285293..38ff1e27ede9 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_managedserverdnsaliases_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_managedserverdnsaliases_client.go @@ -312,14 +312,14 @@ func (client *ManagedServerDNSAliasesClient) getHandleResponse(resp *http.Respon return result, nil } -// ListByManagedInstance - Gets a list of managed server DNS aliases for a managed server. +// NewListByManagedInstancePager - Gets a list of managed server DNS aliases for a managed server. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // managedInstanceName - The name of the managed instance. // options - ManagedServerDNSAliasesClientListByManagedInstanceOptions contains the optional parameters for the ManagedServerDNSAliasesClient.ListByManagedInstance // method. -func (client *ManagedServerDNSAliasesClient) ListByManagedInstance(resourceGroupName string, managedInstanceName string, options *ManagedServerDNSAliasesClientListByManagedInstanceOptions) *runtime.Pager[ManagedServerDNSAliasesClientListByManagedInstanceResponse] { +func (client *ManagedServerDNSAliasesClient) NewListByManagedInstancePager(resourceGroupName string, managedInstanceName string, options *ManagedServerDNSAliasesClientListByManagedInstanceOptions) *runtime.Pager[ManagedServerDNSAliasesClientListByManagedInstanceResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedServerDNSAliasesClientListByManagedInstanceResponse]{ More: func(page ManagedServerDNSAliasesClientListByManagedInstanceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_managedserversecurityalertpolicies_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_managedserversecurityalertpolicies_client.go index 8357aa846f24..ad71503a9435 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_managedserversecurityalertpolicies_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_managedserversecurityalertpolicies_client.go @@ -184,14 +184,14 @@ func (client *ManagedServerSecurityAlertPoliciesClient) getHandleResponse(resp * return result, nil } -// ListByInstance - Get the managed server's threat detection policies. +// NewListByInstancePager - Get the managed server's threat detection policies. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // managedInstanceName - The name of the managed instance. // options - ManagedServerSecurityAlertPoliciesClientListByInstanceOptions contains the optional parameters for the ManagedServerSecurityAlertPoliciesClient.ListByInstance // method. -func (client *ManagedServerSecurityAlertPoliciesClient) ListByInstance(resourceGroupName string, managedInstanceName string, options *ManagedServerSecurityAlertPoliciesClientListByInstanceOptions) *runtime.Pager[ManagedServerSecurityAlertPoliciesClientListByInstanceResponse] { +func (client *ManagedServerSecurityAlertPoliciesClient) NewListByInstancePager(resourceGroupName string, managedInstanceName string, options *ManagedServerSecurityAlertPoliciesClientListByInstanceOptions) *runtime.Pager[ManagedServerSecurityAlertPoliciesClientListByInstanceResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedServerSecurityAlertPoliciesClientListByInstanceResponse]{ More: func(page ManagedServerSecurityAlertPoliciesClientListByInstanceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_operations_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_operations_client.go index 311be1151011..e1ae67e2fd0e 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_operations_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_operations_client.go @@ -48,10 +48,10 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO return client, nil } -// List - Lists all of the available SQL Rest API operations. +// NewListPager - Lists all of the available SQL Rest API operations. // If the operation fails it returns an *azcore.ResponseError type. // options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. -func (client *OperationsClient) List(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { +func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[OperationsClientListResponse]{ More: func(page OperationsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_outboundfirewallrules_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_outboundfirewallrules_client.go index 73335b201828..ed07d0e22713 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_outboundfirewallrules_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_outboundfirewallrules_client.go @@ -246,14 +246,14 @@ func (client *OutboundFirewallRulesClient) getHandleResponse(resp *http.Response return result, nil } -// ListByServer - Gets all outbound firewall rules on a server. +// NewListByServerPager - Gets all outbound firewall rules on a server. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - OutboundFirewallRulesClientListByServerOptions contains the optional parameters for the OutboundFirewallRulesClient.ListByServer // method. -func (client *OutboundFirewallRulesClient) ListByServer(resourceGroupName string, serverName string, options *OutboundFirewallRulesClientListByServerOptions) *runtime.Pager[OutboundFirewallRulesClientListByServerResponse] { +func (client *OutboundFirewallRulesClient) NewListByServerPager(resourceGroupName string, serverName string, options *OutboundFirewallRulesClientListByServerOptions) *runtime.Pager[OutboundFirewallRulesClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[OutboundFirewallRulesClientListByServerResponse]{ More: func(page OutboundFirewallRulesClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_privateendpointconnections_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_privateendpointconnections_client.go index e3971eb5b078..f3d667125495 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_privateendpointconnections_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_privateendpointconnections_client.go @@ -247,14 +247,14 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res return result, nil } -// ListByServer - Gets all private endpoint connections on a server. +// NewListByServerPager - Gets all private endpoint connections on a server. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - PrivateEndpointConnectionsClientListByServerOptions contains the optional parameters for the PrivateEndpointConnectionsClient.ListByServer // method. -func (client *PrivateEndpointConnectionsClient) ListByServer(resourceGroupName string, serverName string, options *PrivateEndpointConnectionsClientListByServerOptions) *runtime.Pager[PrivateEndpointConnectionsClientListByServerResponse] { +func (client *PrivateEndpointConnectionsClient) NewListByServerPager(resourceGroupName string, serverName string, options *PrivateEndpointConnectionsClientListByServerOptions) *runtime.Pager[PrivateEndpointConnectionsClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[PrivateEndpointConnectionsClientListByServerResponse]{ More: func(page PrivateEndpointConnectionsClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_privatelinkresources_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_privatelinkresources_client.go index 8775a4ebf456..303b96c7baef 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_privatelinkresources_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_privatelinkresources_client.go @@ -116,14 +116,14 @@ func (client *PrivateLinkResourcesClient) getHandleResponse(resp *http.Response) return result, nil } -// ListByServer - Gets the private link resources for SQL server. +// NewListByServerPager - Gets the private link resources for SQL server. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - PrivateLinkResourcesClientListByServerOptions contains the optional parameters for the PrivateLinkResourcesClient.ListByServer // method. -func (client *PrivateLinkResourcesClient) ListByServer(resourceGroupName string, serverName string, options *PrivateLinkResourcesClientListByServerOptions) *runtime.Pager[PrivateLinkResourcesClientListByServerResponse] { +func (client *PrivateLinkResourcesClient) NewListByServerPager(resourceGroupName string, serverName string, options *PrivateLinkResourcesClientListByServerOptions) *runtime.Pager[PrivateLinkResourcesClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[PrivateLinkResourcesClientListByServerResponse]{ More: func(page PrivateLinkResourcesClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_recoverabledatabases_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_recoverabledatabases_client.go index a49a2c5ce31f..0e125345fbb7 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_recoverabledatabases_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_recoverabledatabases_client.go @@ -116,14 +116,14 @@ func (client *RecoverableDatabasesClient) getHandleResponse(resp *http.Response) return result, nil } -// ListByServer - Gets a list of recoverable databases +// NewListByServerPager - Gets a list of recoverable databases // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - RecoverableDatabasesClientListByServerOptions contains the optional parameters for the RecoverableDatabasesClient.ListByServer // method. -func (client *RecoverableDatabasesClient) ListByServer(resourceGroupName string, serverName string, options *RecoverableDatabasesClientListByServerOptions) *runtime.Pager[RecoverableDatabasesClientListByServerResponse] { +func (client *RecoverableDatabasesClient) NewListByServerPager(resourceGroupName string, serverName string, options *RecoverableDatabasesClientListByServerOptions) *runtime.Pager[RecoverableDatabasesClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[RecoverableDatabasesClientListByServerResponse]{ More: func(page RecoverableDatabasesClientListByServerResponse) bool { return false diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_recoverablemanageddatabases_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_recoverablemanageddatabases_client.go index 386d5c96fa36..8853cc6effd0 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_recoverablemanageddatabases_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_recoverablemanageddatabases_client.go @@ -115,14 +115,14 @@ func (client *RecoverableManagedDatabasesClient) getHandleResponse(resp *http.Re return result, nil } -// ListByInstance - Gets a list of recoverable managed databases. +// NewListByInstancePager - Gets a list of recoverable managed databases. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // managedInstanceName - The name of the managed instance. // options - RecoverableManagedDatabasesClientListByInstanceOptions contains the optional parameters for the RecoverableManagedDatabasesClient.ListByInstance // method. -func (client *RecoverableManagedDatabasesClient) ListByInstance(resourceGroupName string, managedInstanceName string, options *RecoverableManagedDatabasesClientListByInstanceOptions) *runtime.Pager[RecoverableManagedDatabasesClientListByInstanceResponse] { +func (client *RecoverableManagedDatabasesClient) NewListByInstancePager(resourceGroupName string, managedInstanceName string, options *RecoverableManagedDatabasesClientListByInstanceOptions) *runtime.Pager[RecoverableManagedDatabasesClientListByInstanceResponse] { return runtime.NewPager(runtime.PageProcessor[RecoverableManagedDatabasesClientListByInstanceResponse]{ More: func(page RecoverableManagedDatabasesClientListByInstanceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_replicationlinks_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_replicationlinks_client.go index 6a9c1d3be86f..70acfd435cfc 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_replicationlinks_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_replicationlinks_client.go @@ -319,7 +319,7 @@ func (client *ReplicationLinksClient) getHandleResponse(resp *http.Response) (Re return result, nil } -// ListByDatabase - Gets a list of replication links on database. +// NewListByDatabasePager - Gets a list of replication links on database. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -327,7 +327,7 @@ func (client *ReplicationLinksClient) getHandleResponse(resp *http.Response) (Re // databaseName - The name of the database. // options - ReplicationLinksClientListByDatabaseOptions contains the optional parameters for the ReplicationLinksClient.ListByDatabase // method. -func (client *ReplicationLinksClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, options *ReplicationLinksClientListByDatabaseOptions) *runtime.Pager[ReplicationLinksClientListByDatabaseResponse] { +func (client *ReplicationLinksClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *ReplicationLinksClientListByDatabaseOptions) *runtime.Pager[ReplicationLinksClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[ReplicationLinksClientListByDatabaseResponse]{ More: func(page ReplicationLinksClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -394,14 +394,14 @@ func (client *ReplicationLinksClient) listByDatabaseHandleResponse(resp *http.Re return result, nil } -// ListByServer - Gets a list of replication links. +// NewListByServerPager - Gets a list of replication links. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - ReplicationLinksClientListByServerOptions contains the optional parameters for the ReplicationLinksClient.ListByServer // method. -func (client *ReplicationLinksClient) ListByServer(resourceGroupName string, serverName string, options *ReplicationLinksClientListByServerOptions) *runtime.Pager[ReplicationLinksClientListByServerResponse] { +func (client *ReplicationLinksClient) NewListByServerPager(resourceGroupName string, serverName string, options *ReplicationLinksClientListByServerOptions) *runtime.Pager[ReplicationLinksClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[ReplicationLinksClientListByServerResponse]{ More: func(page ReplicationLinksClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_restorabledroppeddatabases_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_restorabledroppeddatabases_client.go index c2af7cc94609..fbdabb6f568c 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_restorabledroppeddatabases_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_restorabledroppeddatabases_client.go @@ -115,14 +115,14 @@ func (client *RestorableDroppedDatabasesClient) getHandleResponse(resp *http.Res return result, nil } -// ListByServer - Gets a list of restorable dropped databases. +// NewListByServerPager - Gets a list of restorable dropped databases. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - RestorableDroppedDatabasesClientListByServerOptions contains the optional parameters for the RestorableDroppedDatabasesClient.ListByServer // method. -func (client *RestorableDroppedDatabasesClient) ListByServer(resourceGroupName string, serverName string, options *RestorableDroppedDatabasesClientListByServerOptions) *runtime.Pager[RestorableDroppedDatabasesClientListByServerResponse] { +func (client *RestorableDroppedDatabasesClient) NewListByServerPager(resourceGroupName string, serverName string, options *RestorableDroppedDatabasesClientListByServerOptions) *runtime.Pager[RestorableDroppedDatabasesClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[RestorableDroppedDatabasesClientListByServerResponse]{ More: func(page RestorableDroppedDatabasesClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_restorabledroppedmanageddatabases_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_restorabledroppedmanageddatabases_client.go index 1ffa19f679ad..2a13e6bc8899 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_restorabledroppedmanageddatabases_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_restorabledroppedmanageddatabases_client.go @@ -115,14 +115,14 @@ func (client *RestorableDroppedManagedDatabasesClient) getHandleResponse(resp *h return result, nil } -// ListByInstance - Gets a list of restorable dropped managed databases. +// NewListByInstancePager - Gets a list of restorable dropped managed databases. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // managedInstanceName - The name of the managed instance. // options - RestorableDroppedManagedDatabasesClientListByInstanceOptions contains the optional parameters for the RestorableDroppedManagedDatabasesClient.ListByInstance // method. -func (client *RestorableDroppedManagedDatabasesClient) ListByInstance(resourceGroupName string, managedInstanceName string, options *RestorableDroppedManagedDatabasesClientListByInstanceOptions) *runtime.Pager[RestorableDroppedManagedDatabasesClientListByInstanceResponse] { +func (client *RestorableDroppedManagedDatabasesClient) NewListByInstancePager(resourceGroupName string, managedInstanceName string, options *RestorableDroppedManagedDatabasesClientListByInstanceOptions) *runtime.Pager[RestorableDroppedManagedDatabasesClientListByInstanceResponse] { return runtime.NewPager(runtime.PageProcessor[RestorableDroppedManagedDatabasesClientListByInstanceResponse]{ More: func(page RestorableDroppedManagedDatabasesClientListByInstanceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_restorepoints_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_restorepoints_client.go index b638ea05ebfc..5d01c32e67e5 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_restorepoints_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_restorepoints_client.go @@ -244,7 +244,7 @@ func (client *RestorePointsClient) getHandleResponse(resp *http.Response) (Resto return result, nil } -// ListByDatabase - Gets a list of database restore points. +// NewListByDatabasePager - Gets a list of database restore points. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -252,7 +252,7 @@ func (client *RestorePointsClient) getHandleResponse(resp *http.Response) (Resto // databaseName - The name of the database. // options - RestorePointsClientListByDatabaseOptions contains the optional parameters for the RestorePointsClient.ListByDatabase // method. -func (client *RestorePointsClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, options *RestorePointsClientListByDatabaseOptions) *runtime.Pager[RestorePointsClientListByDatabaseResponse] { +func (client *RestorePointsClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *RestorePointsClientListByDatabaseOptions) *runtime.Pager[RestorePointsClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[RestorePointsClientListByDatabaseResponse]{ More: func(page RestorePointsClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_sensitivitylabels_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_sensitivitylabels_client.go index 43ab7397d277..d51e807e3617 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_sensitivitylabels_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_sensitivitylabels_client.go @@ -420,7 +420,7 @@ func (client *SensitivityLabelsClient) getHandleResponse(resp *http.Response) (S return result, nil } -// ListByDatabase - Gets the sensitivity labels of a given database +// NewListByDatabasePager - Gets the sensitivity labels of a given database // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -428,7 +428,7 @@ func (client *SensitivityLabelsClient) getHandleResponse(resp *http.Response) (S // databaseName - The name of the database. // options - SensitivityLabelsClientListByDatabaseOptions contains the optional parameters for the SensitivityLabelsClient.ListByDatabase // method. -func (client *SensitivityLabelsClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, options *SensitivityLabelsClientListByDatabaseOptions) *runtime.Pager[SensitivityLabelsClientListByDatabaseResponse] { +func (client *SensitivityLabelsClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *SensitivityLabelsClientListByDatabaseOptions) *runtime.Pager[SensitivityLabelsClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[SensitivityLabelsClientListByDatabaseResponse]{ More: func(page SensitivityLabelsClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -498,7 +498,7 @@ func (client *SensitivityLabelsClient) listByDatabaseHandleResponse(resp *http.R return result, nil } -// ListCurrentByDatabase - Gets the sensitivity labels of a given database +// NewListCurrentByDatabasePager - Gets the sensitivity labels of a given database // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -506,7 +506,7 @@ func (client *SensitivityLabelsClient) listByDatabaseHandleResponse(resp *http.R // databaseName - The name of the database. // options - SensitivityLabelsClientListCurrentByDatabaseOptions contains the optional parameters for the SensitivityLabelsClient.ListCurrentByDatabase // method. -func (client *SensitivityLabelsClient) ListCurrentByDatabase(resourceGroupName string, serverName string, databaseName string, options *SensitivityLabelsClientListCurrentByDatabaseOptions) *runtime.Pager[SensitivityLabelsClientListCurrentByDatabaseResponse] { +func (client *SensitivityLabelsClient) NewListCurrentByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *SensitivityLabelsClientListCurrentByDatabaseOptions) *runtime.Pager[SensitivityLabelsClientListCurrentByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[SensitivityLabelsClientListCurrentByDatabaseResponse]{ More: func(page SensitivityLabelsClientListCurrentByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -582,7 +582,7 @@ func (client *SensitivityLabelsClient) listCurrentByDatabaseHandleResponse(resp return result, nil } -// ListRecommendedByDatabase - Gets the sensitivity labels of a given database +// NewListRecommendedByDatabasePager - Gets the sensitivity labels of a given database // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -590,7 +590,7 @@ func (client *SensitivityLabelsClient) listCurrentByDatabaseHandleResponse(resp // databaseName - The name of the database. // options - SensitivityLabelsClientListRecommendedByDatabaseOptions contains the optional parameters for the SensitivityLabelsClient.ListRecommendedByDatabase // method. -func (client *SensitivityLabelsClient) ListRecommendedByDatabase(resourceGroupName string, serverName string, databaseName string, options *SensitivityLabelsClientListRecommendedByDatabaseOptions) *runtime.Pager[SensitivityLabelsClientListRecommendedByDatabaseResponse] { +func (client *SensitivityLabelsClient) NewListRecommendedByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *SensitivityLabelsClientListRecommendedByDatabaseOptions) *runtime.Pager[SensitivityLabelsClientListRecommendedByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[SensitivityLabelsClientListRecommendedByDatabaseResponse]{ More: func(page SensitivityLabelsClientListRecommendedByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_serverazureadadministrators_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_serverazureadadministrators_client.go index a7448a6c4a44..a5918fc4512e 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_serverazureadadministrators_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_serverazureadadministrators_client.go @@ -250,14 +250,14 @@ func (client *ServerAzureADAdministratorsClient) getHandleResponse(resp *http.Re return result, nil } -// ListByServer - Gets a list of Azure Active Directory administrators in a server. +// NewListByServerPager - Gets a list of Azure Active Directory administrators in a server. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - ServerAzureADAdministratorsClientListByServerOptions contains the optional parameters for the ServerAzureADAdministratorsClient.ListByServer // method. -func (client *ServerAzureADAdministratorsClient) ListByServer(resourceGroupName string, serverName string, options *ServerAzureADAdministratorsClientListByServerOptions) *runtime.Pager[ServerAzureADAdministratorsClientListByServerResponse] { +func (client *ServerAzureADAdministratorsClient) NewListByServerPager(resourceGroupName string, serverName string, options *ServerAzureADAdministratorsClientListByServerOptions) *runtime.Pager[ServerAzureADAdministratorsClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[ServerAzureADAdministratorsClientListByServerResponse]{ More: func(page ServerAzureADAdministratorsClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_serverazureadonlyauthentications_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_serverazureadonlyauthentications_client.go index f00770217e8e..d5334e29512d 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_serverazureadonlyauthentications_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_serverazureadonlyauthentications_client.go @@ -252,14 +252,14 @@ func (client *ServerAzureADOnlyAuthenticationsClient) getHandleResponse(resp *ht return result, nil } -// ListByServer - Gets a list of server Azure Active Directory only authentications. +// NewListByServerPager - Gets a list of server Azure Active Directory only authentications. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - ServerAzureADOnlyAuthenticationsClientListByServerOptions contains the optional parameters for the ServerAzureADOnlyAuthenticationsClient.ListByServer // method. -func (client *ServerAzureADOnlyAuthenticationsClient) ListByServer(resourceGroupName string, serverName string, options *ServerAzureADOnlyAuthenticationsClientListByServerOptions) *runtime.Pager[ServerAzureADOnlyAuthenticationsClientListByServerResponse] { +func (client *ServerAzureADOnlyAuthenticationsClient) NewListByServerPager(resourceGroupName string, serverName string, options *ServerAzureADOnlyAuthenticationsClientListByServerOptions) *runtime.Pager[ServerAzureADOnlyAuthenticationsClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[ServerAzureADOnlyAuthenticationsClientListByServerResponse]{ More: func(page ServerAzureADOnlyAuthenticationsClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_serverblobauditingpolicies_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_serverblobauditingpolicies_client.go index 44c005685909..4cfef9b4be27 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_serverblobauditingpolicies_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_serverblobauditingpolicies_client.go @@ -176,14 +176,14 @@ func (client *ServerBlobAuditingPoliciesClient) getHandleResponse(resp *http.Res return result, nil } -// ListByServer - Lists auditing settings of a server. +// NewListByServerPager - Lists auditing settings of a server. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - ServerBlobAuditingPoliciesClientListByServerOptions contains the optional parameters for the ServerBlobAuditingPoliciesClient.ListByServer // method. -func (client *ServerBlobAuditingPoliciesClient) ListByServer(resourceGroupName string, serverName string, options *ServerBlobAuditingPoliciesClientListByServerOptions) *runtime.Pager[ServerBlobAuditingPoliciesClientListByServerResponse] { +func (client *ServerBlobAuditingPoliciesClient) NewListByServerPager(resourceGroupName string, serverName string, options *ServerBlobAuditingPoliciesClientListByServerOptions) *runtime.Pager[ServerBlobAuditingPoliciesClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[ServerBlobAuditingPoliciesClientListByServerResponse]{ More: func(page ServerBlobAuditingPoliciesClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_servercommunicationlinks_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_servercommunicationlinks_client.go index 30dbcac09c0a..5e659284e733 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_servercommunicationlinks_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_servercommunicationlinks_client.go @@ -236,14 +236,14 @@ func (client *ServerCommunicationLinksClient) getHandleResponse(resp *http.Respo return result, nil } -// ListByServer - Gets a list of server communication links. +// NewListByServerPager - Gets a list of server communication links. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - ServerCommunicationLinksClientListByServerOptions contains the optional parameters for the ServerCommunicationLinksClient.ListByServer // method. -func (client *ServerCommunicationLinksClient) ListByServer(resourceGroupName string, serverName string, options *ServerCommunicationLinksClientListByServerOptions) *runtime.Pager[ServerCommunicationLinksClientListByServerResponse] { +func (client *ServerCommunicationLinksClient) NewListByServerPager(resourceGroupName string, serverName string, options *ServerCommunicationLinksClientListByServerOptions) *runtime.Pager[ServerCommunicationLinksClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[ServerCommunicationLinksClientListByServerResponse]{ More: func(page ServerCommunicationLinksClientListByServerResponse) bool { return false diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_serverconnectionpolicies_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_serverconnectionpolicies_client.go index 1f5465a4a593..af4c5fe12c75 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_serverconnectionpolicies_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_serverconnectionpolicies_client.go @@ -184,14 +184,14 @@ func (client *ServerConnectionPoliciesClient) getHandleResponse(resp *http.Respo return result, nil } -// ListByServer - Lists connection policy +// NewListByServerPager - Lists connection policy // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - ServerConnectionPoliciesClientListByServerOptions contains the optional parameters for the ServerConnectionPoliciesClient.ListByServer // method. -func (client *ServerConnectionPoliciesClient) ListByServer(resourceGroupName string, serverName string, options *ServerConnectionPoliciesClientListByServerOptions) *runtime.Pager[ServerConnectionPoliciesClientListByServerResponse] { +func (client *ServerConnectionPoliciesClient) NewListByServerPager(resourceGroupName string, serverName string, options *ServerConnectionPoliciesClientListByServerOptions) *runtime.Pager[ServerConnectionPoliciesClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[ServerConnectionPoliciesClientListByServerResponse]{ More: func(page ServerConnectionPoliciesClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_serverdevopsauditsettings_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_serverdevopsauditsettings_client.go index 5317e8550b85..ba6c156d340f 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_serverdevopsauditsettings_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_serverdevopsauditsettings_client.go @@ -186,14 +186,14 @@ func (client *ServerDevOpsAuditSettingsClient) getHandleResponse(resp *http.Resp return result, nil } -// ListByServer - Lists DevOps audit settings of a server. +// NewListByServerPager - Lists DevOps audit settings of a server. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - ServerDevOpsAuditSettingsClientListByServerOptions contains the optional parameters for the ServerDevOpsAuditSettingsClient.ListByServer // method. -func (client *ServerDevOpsAuditSettingsClient) ListByServer(resourceGroupName string, serverName string, options *ServerDevOpsAuditSettingsClientListByServerOptions) *runtime.Pager[ServerDevOpsAuditSettingsClientListByServerResponse] { +func (client *ServerDevOpsAuditSettingsClient) NewListByServerPager(resourceGroupName string, serverName string, options *ServerDevOpsAuditSettingsClientListByServerOptions) *runtime.Pager[ServerDevOpsAuditSettingsClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[ServerDevOpsAuditSettingsClientListByServerResponse]{ More: func(page ServerDevOpsAuditSettingsClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_serverdnsaliases_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_serverdnsaliases_client.go index e9af57b27403..0285cd96bfa5 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_serverdnsaliases_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_serverdnsaliases_client.go @@ -315,14 +315,14 @@ func (client *ServerDNSAliasesClient) getHandleResponse(resp *http.Response) (Se return result, nil } -// ListByServer - Gets a list of server DNS aliases for a server. +// NewListByServerPager - Gets a list of server DNS aliases for a server. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server that the alias is pointing to. // options - ServerDNSAliasesClientListByServerOptions contains the optional parameters for the ServerDNSAliasesClient.ListByServer // method. -func (client *ServerDNSAliasesClient) ListByServer(resourceGroupName string, serverName string, options *ServerDNSAliasesClientListByServerOptions) *runtime.Pager[ServerDNSAliasesClientListByServerResponse] { +func (client *ServerDNSAliasesClient) NewListByServerPager(resourceGroupName string, serverName string, options *ServerDNSAliasesClientListByServerOptions) *runtime.Pager[ServerDNSAliasesClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[ServerDNSAliasesClientListByServerResponse]{ More: func(page ServerDNSAliasesClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_serverkeys_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_serverkeys_client.go index f69922a8a990..4378699d50c4 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_serverkeys_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_serverkeys_client.go @@ -251,13 +251,13 @@ func (client *ServerKeysClient) getHandleResponse(resp *http.Response) (ServerKe return result, nil } -// ListByServer - Gets a list of server keys. +// NewListByServerPager - Gets a list of server keys. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - ServerKeysClientListByServerOptions contains the optional parameters for the ServerKeysClient.ListByServer method. -func (client *ServerKeysClient) ListByServer(resourceGroupName string, serverName string, options *ServerKeysClientListByServerOptions) *runtime.Pager[ServerKeysClientListByServerResponse] { +func (client *ServerKeysClient) NewListByServerPager(resourceGroupName string, serverName string, options *ServerKeysClientListByServerOptions) *runtime.Pager[ServerKeysClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[ServerKeysClientListByServerResponse]{ More: func(page ServerKeysClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_serveroperations_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_serveroperations_client.go index 2dc53692e7d6..7d17d5db95f4 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_serveroperations_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_serveroperations_client.go @@ -54,14 +54,14 @@ func NewServerOperationsClient(subscriptionID string, credential azcore.TokenCre return client, nil } -// ListByServer - Gets a list of operations performed on the server. +// NewListByServerPager - Gets a list of operations performed on the server. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - ServerOperationsClientListByServerOptions contains the optional parameters for the ServerOperationsClient.ListByServer // method. -func (client *ServerOperationsClient) ListByServer(resourceGroupName string, serverName string, options *ServerOperationsClientListByServerOptions) *runtime.Pager[ServerOperationsClientListByServerResponse] { +func (client *ServerOperationsClient) NewListByServerPager(resourceGroupName string, serverName string, options *ServerOperationsClientListByServerOptions) *runtime.Pager[ServerOperationsClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[ServerOperationsClientListByServerResponse]{ More: func(page ServerOperationsClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_servers_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_servers_client.go index b0e71d89d4d7..9c673e9ba7a6 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_servers_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_servers_client.go @@ -346,10 +346,10 @@ func (client *ServersClient) importDatabaseCreateRequest(ctx context.Context, re return req, runtime.MarshalAsJSON(req, parameters) } -// List - Gets a list of all servers in the subscription. +// NewListPager - Gets a list of all servers in the subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - ServersClientListOptions contains the optional parameters for the ServersClient.List method. -func (client *ServersClient) List(options *ServersClientListOptions) *runtime.Pager[ServersClientListResponse] { +func (client *ServersClient) NewListPager(options *ServersClientListOptions) *runtime.Pager[ServersClientListResponse] { return runtime.NewPager(runtime.PageProcessor[ServersClientListResponse]{ More: func(page ServersClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -407,13 +407,13 @@ func (client *ServersClient) listHandleResponse(resp *http.Response) (ServersCli return result, nil } -// ListByResourceGroup - Gets a list of servers in a resource groups. +// NewListByResourceGroupPager - Gets a list of servers in a resource groups. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // options - ServersClientListByResourceGroupOptions contains the optional parameters for the ServersClient.ListByResourceGroup // method. -func (client *ServersClient) ListByResourceGroup(resourceGroupName string, options *ServersClientListByResourceGroupOptions) *runtime.Pager[ServersClientListByResourceGroupResponse] { +func (client *ServersClient) NewListByResourceGroupPager(resourceGroupName string, options *ServersClientListByResourceGroupOptions) *runtime.Pager[ServersClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[ServersClientListByResourceGroupResponse]{ More: func(page ServersClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_serversecurityalertpolicies_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_serversecurityalertpolicies_client.go index e2ae25e74ead..0731a7cd0c85 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_serversecurityalertpolicies_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_serversecurityalertpolicies_client.go @@ -184,14 +184,14 @@ func (client *ServerSecurityAlertPoliciesClient) getHandleResponse(resp *http.Re return result, nil } -// ListByServer - Get the server's threat detection policies. +// NewListByServerPager - Get the server's threat detection policies. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - ServerSecurityAlertPoliciesClientListByServerOptions contains the optional parameters for the ServerSecurityAlertPoliciesClient.ListByServer // method. -func (client *ServerSecurityAlertPoliciesClient) ListByServer(resourceGroupName string, serverName string, options *ServerSecurityAlertPoliciesClientListByServerOptions) *runtime.Pager[ServerSecurityAlertPoliciesClientListByServerResponse] { +func (client *ServerSecurityAlertPoliciesClient) NewListByServerPager(resourceGroupName string, serverName string, options *ServerSecurityAlertPoliciesClientListByServerOptions) *runtime.Pager[ServerSecurityAlertPoliciesClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[ServerSecurityAlertPoliciesClientListByServerResponse]{ More: func(page ServerSecurityAlertPoliciesClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_servertrustcertificates_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_servertrustcertificates_client.go index 8d3d40954603..042edca71f59 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_servertrustcertificates_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_servertrustcertificates_client.go @@ -250,14 +250,15 @@ func (client *ServerTrustCertificatesClient) getHandleResponse(resp *http.Respon return result, nil } -// ListByInstance - Gets a list of server trust certificates that were uploaded from box to the given Sql Managed Instance. +// NewListByInstancePager - Gets a list of server trust certificates that were uploaded from box to the given Sql Managed +// Instance. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // managedInstanceName - The name of the managed instance. // options - ServerTrustCertificatesClientListByInstanceOptions contains the optional parameters for the ServerTrustCertificatesClient.ListByInstance // method. -func (client *ServerTrustCertificatesClient) ListByInstance(resourceGroupName string, managedInstanceName string, options *ServerTrustCertificatesClientListByInstanceOptions) *runtime.Pager[ServerTrustCertificatesClientListByInstanceResponse] { +func (client *ServerTrustCertificatesClient) NewListByInstancePager(resourceGroupName string, managedInstanceName string, options *ServerTrustCertificatesClientListByInstanceOptions) *runtime.Pager[ServerTrustCertificatesClientListByInstanceResponse] { return runtime.NewPager(runtime.PageProcessor[ServerTrustCertificatesClientListByInstanceResponse]{ More: func(page ServerTrustCertificatesClientListByInstanceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_servertrustgroups_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_servertrustgroups_client.go index 0f2b9dfa314d..e35c6d518fbe 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_servertrustgroups_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_servertrustgroups_client.go @@ -249,14 +249,14 @@ func (client *ServerTrustGroupsClient) getHandleResponse(resp *http.Response) (S return result, nil } -// ListByInstance - Gets a server trust groups by instance name. +// NewListByInstancePager - Gets a server trust groups by instance name. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // managedInstanceName - The name of the managed instance. // options - ServerTrustGroupsClientListByInstanceOptions contains the optional parameters for the ServerTrustGroupsClient.ListByInstance // method. -func (client *ServerTrustGroupsClient) ListByInstance(resourceGroupName string, managedInstanceName string, options *ServerTrustGroupsClientListByInstanceOptions) *runtime.Pager[ServerTrustGroupsClientListByInstanceResponse] { +func (client *ServerTrustGroupsClient) NewListByInstancePager(resourceGroupName string, managedInstanceName string, options *ServerTrustGroupsClientListByInstanceOptions) *runtime.Pager[ServerTrustGroupsClientListByInstanceResponse] { return runtime.NewPager(runtime.PageProcessor[ServerTrustGroupsClientListByInstanceResponse]{ More: func(page ServerTrustGroupsClientListByInstanceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -319,14 +319,14 @@ func (client *ServerTrustGroupsClient) listByInstanceHandleResponse(resp *http.R return result, nil } -// ListByLocation - Lists a server trust group. +// NewListByLocationPager - Lists a server trust group. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // locationName - The name of the region where the resource is located. // options - ServerTrustGroupsClientListByLocationOptions contains the optional parameters for the ServerTrustGroupsClient.ListByLocation // method. -func (client *ServerTrustGroupsClient) ListByLocation(resourceGroupName string, locationName string, options *ServerTrustGroupsClientListByLocationOptions) *runtime.Pager[ServerTrustGroupsClientListByLocationResponse] { +func (client *ServerTrustGroupsClient) NewListByLocationPager(resourceGroupName string, locationName string, options *ServerTrustGroupsClientListByLocationOptions) *runtime.Pager[ServerTrustGroupsClientListByLocationResponse] { return runtime.NewPager(runtime.PageProcessor[ServerTrustGroupsClientListByLocationResponse]{ More: func(page ServerTrustGroupsClientListByLocationResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_serverusages_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_serverusages_client.go index b26ec86abf20..b22af64de5b9 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_serverusages_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_serverusages_client.go @@ -54,14 +54,14 @@ func NewServerUsagesClient(subscriptionID string, credential azcore.TokenCredent return client, nil } -// ListByServer - Returns server usages. +// NewListByServerPager - Returns server usages. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - ServerUsagesClientListByServerOptions contains the optional parameters for the ServerUsagesClient.ListByServer // method. -func (client *ServerUsagesClient) ListByServer(resourceGroupName string, serverName string, options *ServerUsagesClientListByServerOptions) *runtime.Pager[ServerUsagesClientListByServerResponse] { +func (client *ServerUsagesClient) NewListByServerPager(resourceGroupName string, serverName string, options *ServerUsagesClientListByServerOptions) *runtime.Pager[ServerUsagesClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[ServerUsagesClientListByServerResponse]{ More: func(page ServerUsagesClientListByServerResponse) bool { return false diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_servervulnerabilityassessments_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_servervulnerabilityassessments_client.go index c00abe1b9f71..c2f2ce6206eb 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_servervulnerabilityassessments_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_servervulnerabilityassessments_client.go @@ -233,14 +233,14 @@ func (client *ServerVulnerabilityAssessmentsClient) getHandleResponse(resp *http return result, nil } -// ListByServer - Lists the vulnerability assessment policies associated with a server. +// NewListByServerPager - Lists the vulnerability assessment policies associated with a server. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - ServerVulnerabilityAssessmentsClientListByServerOptions contains the optional parameters for the ServerVulnerabilityAssessmentsClient.ListByServer // method. -func (client *ServerVulnerabilityAssessmentsClient) ListByServer(resourceGroupName string, serverName string, options *ServerVulnerabilityAssessmentsClientListByServerOptions) *runtime.Pager[ServerVulnerabilityAssessmentsClientListByServerResponse] { +func (client *ServerVulnerabilityAssessmentsClient) NewListByServerPager(resourceGroupName string, serverName string, options *ServerVulnerabilityAssessmentsClientListByServerOptions) *runtime.Pager[ServerVulnerabilityAssessmentsClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[ServerVulnerabilityAssessmentsClientListByServerResponse]{ More: func(page ServerVulnerabilityAssessmentsClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_serviceobjectives_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_serviceobjectives_client.go index e8a503af81a2..de653af31142 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_serviceobjectives_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_serviceobjectives_client.go @@ -115,14 +115,14 @@ func (client *ServiceObjectivesClient) getHandleResponse(resp *http.Response) (S return result, nil } -// ListByServer - Returns database service objectives. +// NewListByServerPager - Returns database service objectives. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - ServiceObjectivesClientListByServerOptions contains the optional parameters for the ServiceObjectivesClient.ListByServer // method. -func (client *ServiceObjectivesClient) ListByServer(resourceGroupName string, serverName string, options *ServiceObjectivesClientListByServerOptions) *runtime.Pager[ServiceObjectivesClientListByServerResponse] { +func (client *ServiceObjectivesClient) NewListByServerPager(resourceGroupName string, serverName string, options *ServiceObjectivesClientListByServerOptions) *runtime.Pager[ServiceObjectivesClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[ServiceObjectivesClientListByServerResponse]{ More: func(page ServiceObjectivesClientListByServerResponse) bool { return false diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_subscriptionusages_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_subscriptionusages_client.go index 6cdbdb9c2a13..4562af56f6dd 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_subscriptionusages_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_subscriptionusages_client.go @@ -109,12 +109,12 @@ func (client *SubscriptionUsagesClient) getHandleResponse(resp *http.Response) ( return result, nil } -// ListByLocation - Gets all subscription usage metrics in a given location. +// NewListByLocationPager - Gets all subscription usage metrics in a given location. // If the operation fails it returns an *azcore.ResponseError type. // locationName - The name of the region where the resource is located. // options - SubscriptionUsagesClientListByLocationOptions contains the optional parameters for the SubscriptionUsagesClient.ListByLocation // method. -func (client *SubscriptionUsagesClient) ListByLocation(locationName string, options *SubscriptionUsagesClientListByLocationOptions) *runtime.Pager[SubscriptionUsagesClientListByLocationResponse] { +func (client *SubscriptionUsagesClient) NewListByLocationPager(locationName string, options *SubscriptionUsagesClientListByLocationOptions) *runtime.Pager[SubscriptionUsagesClientListByLocationResponse] { return runtime.NewPager(runtime.PageProcessor[SubscriptionUsagesClientListByLocationResponse]{ More: func(page SubscriptionUsagesClientListByLocationResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_syncagents_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_syncagents_client.go index dcdabd7aeec2..71ed41a3055c 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_syncagents_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_syncagents_client.go @@ -309,13 +309,13 @@ func (client *SyncAgentsClient) getHandleResponse(resp *http.Response) (SyncAgen return result, nil } -// ListByServer - Lists sync agents in a server. +// NewListByServerPager - Lists sync agents in a server. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server on which the sync agent is hosted. // options - SyncAgentsClientListByServerOptions contains the optional parameters for the SyncAgentsClient.ListByServer method. -func (client *SyncAgentsClient) ListByServer(resourceGroupName string, serverName string, options *SyncAgentsClientListByServerOptions) *runtime.Pager[SyncAgentsClientListByServerResponse] { +func (client *SyncAgentsClient) NewListByServerPager(resourceGroupName string, serverName string, options *SyncAgentsClientListByServerOptions) *runtime.Pager[SyncAgentsClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[SyncAgentsClientListByServerResponse]{ More: func(page SyncAgentsClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -378,7 +378,7 @@ func (client *SyncAgentsClient) listByServerHandleResponse(resp *http.Response) return result, nil } -// ListLinkedDatabases - Lists databases linked to a sync agent. +// NewListLinkedDatabasesPager - Lists databases linked to a sync agent. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -386,7 +386,7 @@ func (client *SyncAgentsClient) listByServerHandleResponse(resp *http.Response) // syncAgentName - The name of the sync agent. // options - SyncAgentsClientListLinkedDatabasesOptions contains the optional parameters for the SyncAgentsClient.ListLinkedDatabases // method. -func (client *SyncAgentsClient) ListLinkedDatabases(resourceGroupName string, serverName string, syncAgentName string, options *SyncAgentsClientListLinkedDatabasesOptions) *runtime.Pager[SyncAgentsClientListLinkedDatabasesResponse] { +func (client *SyncAgentsClient) NewListLinkedDatabasesPager(resourceGroupName string, serverName string, syncAgentName string, options *SyncAgentsClientListLinkedDatabasesOptions) *runtime.Pager[SyncAgentsClientListLinkedDatabasesResponse] { return runtime.NewPager(runtime.PageProcessor[SyncAgentsClientListLinkedDatabasesResponse]{ More: func(page SyncAgentsClientListLinkedDatabasesResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_syncgroups_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_syncgroups_client.go index 0354ba272b51..9ed59203697d 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_syncgroups_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_syncgroups_client.go @@ -319,7 +319,7 @@ func (client *SyncGroupsClient) getHandleResponse(resp *http.Response) (SyncGrou return result, nil } -// ListByDatabase - Lists sync groups under a hub database. +// NewListByDatabasePager - Lists sync groups under a hub database. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -327,7 +327,7 @@ func (client *SyncGroupsClient) getHandleResponse(resp *http.Response) (SyncGrou // databaseName - The name of the database on which the sync group is hosted. // options - SyncGroupsClientListByDatabaseOptions contains the optional parameters for the SyncGroupsClient.ListByDatabase // method. -func (client *SyncGroupsClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, options *SyncGroupsClientListByDatabaseOptions) *runtime.Pager[SyncGroupsClientListByDatabaseResponse] { +func (client *SyncGroupsClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *SyncGroupsClientListByDatabaseOptions) *runtime.Pager[SyncGroupsClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[SyncGroupsClientListByDatabaseResponse]{ More: func(page SyncGroupsClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -394,7 +394,7 @@ func (client *SyncGroupsClient) listByDatabaseHandleResponse(resp *http.Response return result, nil } -// ListHubSchemas - Gets a collection of hub database schemas. +// NewListHubSchemasPager - Gets a collection of hub database schemas. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -403,7 +403,7 @@ func (client *SyncGroupsClient) listByDatabaseHandleResponse(resp *http.Response // syncGroupName - The name of the sync group. // options - SyncGroupsClientListHubSchemasOptions contains the optional parameters for the SyncGroupsClient.ListHubSchemas // method. -func (client *SyncGroupsClient) ListHubSchemas(resourceGroupName string, serverName string, databaseName string, syncGroupName string, options *SyncGroupsClientListHubSchemasOptions) *runtime.Pager[SyncGroupsClientListHubSchemasResponse] { +func (client *SyncGroupsClient) NewListHubSchemasPager(resourceGroupName string, serverName string, databaseName string, syncGroupName string, options *SyncGroupsClientListHubSchemasOptions) *runtime.Pager[SyncGroupsClientListHubSchemasResponse] { return runtime.NewPager(runtime.PageProcessor[SyncGroupsClientListHubSchemasResponse]{ More: func(page SyncGroupsClientListHubSchemasResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -474,7 +474,7 @@ func (client *SyncGroupsClient) listHubSchemasHandleResponse(resp *http.Response return result, nil } -// ListLogs - Gets a collection of sync group logs. +// NewListLogsPager - Gets a collection of sync group logs. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -485,7 +485,7 @@ func (client *SyncGroupsClient) listHubSchemasHandleResponse(resp *http.Response // endTime - Get logs generated before this time. // typeParam - The types of logs to retrieve. // options - SyncGroupsClientListLogsOptions contains the optional parameters for the SyncGroupsClient.ListLogs method. -func (client *SyncGroupsClient) ListLogs(resourceGroupName string, serverName string, databaseName string, syncGroupName string, startTime string, endTime string, typeParam SyncGroupsType, options *SyncGroupsClientListLogsOptions) *runtime.Pager[SyncGroupsClientListLogsResponse] { +func (client *SyncGroupsClient) NewListLogsPager(resourceGroupName string, serverName string, databaseName string, syncGroupName string, startTime string, endTime string, typeParam SyncGroupsType, options *SyncGroupsClientListLogsOptions) *runtime.Pager[SyncGroupsClientListLogsResponse] { return runtime.NewPager(runtime.PageProcessor[SyncGroupsClientListLogsResponse]{ More: func(page SyncGroupsClientListLogsResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -562,12 +562,12 @@ func (client *SyncGroupsClient) listLogsHandleResponse(resp *http.Response) (Syn return result, nil } -// ListSyncDatabaseIDs - Gets a collection of sync database ids. +// NewListSyncDatabaseIDsPager - Gets a collection of sync database ids. // If the operation fails it returns an *azcore.ResponseError type. // locationName - The name of the region where the resource is located. // options - SyncGroupsClientListSyncDatabaseIDsOptions contains the optional parameters for the SyncGroupsClient.ListSyncDatabaseIDs // method. -func (client *SyncGroupsClient) ListSyncDatabaseIDs(locationName string, options *SyncGroupsClientListSyncDatabaseIDsOptions) *runtime.Pager[SyncGroupsClientListSyncDatabaseIDsResponse] { +func (client *SyncGroupsClient) NewListSyncDatabaseIDsPager(locationName string, options *SyncGroupsClientListSyncDatabaseIDsOptions) *runtime.Pager[SyncGroupsClientListSyncDatabaseIDsResponse] { return runtime.NewPager(runtime.PageProcessor[SyncGroupsClientListSyncDatabaseIDsResponse]{ More: func(page SyncGroupsClientListSyncDatabaseIDsResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_syncmembers_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_syncmembers_client.go index c4b0ea97a64f..e1a2097f0b2c 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_syncmembers_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_syncmembers_client.go @@ -278,7 +278,7 @@ func (client *SyncMembersClient) getHandleResponse(resp *http.Response) (SyncMem return result, nil } -// ListBySyncGroup - Lists sync members in the given sync group. +// NewListBySyncGroupPager - Lists sync members in the given sync group. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -287,7 +287,7 @@ func (client *SyncMembersClient) getHandleResponse(resp *http.Response) (SyncMem // syncGroupName - The name of the sync group. // options - SyncMembersClientListBySyncGroupOptions contains the optional parameters for the SyncMembersClient.ListBySyncGroup // method. -func (client *SyncMembersClient) ListBySyncGroup(resourceGroupName string, serverName string, databaseName string, syncGroupName string, options *SyncMembersClientListBySyncGroupOptions) *runtime.Pager[SyncMembersClientListBySyncGroupResponse] { +func (client *SyncMembersClient) NewListBySyncGroupPager(resourceGroupName string, serverName string, databaseName string, syncGroupName string, options *SyncMembersClientListBySyncGroupOptions) *runtime.Pager[SyncMembersClientListBySyncGroupResponse] { return runtime.NewPager(runtime.PageProcessor[SyncMembersClientListBySyncGroupResponse]{ More: func(page SyncMembersClientListBySyncGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -358,7 +358,7 @@ func (client *SyncMembersClient) listBySyncGroupHandleResponse(resp *http.Respon return result, nil } -// ListMemberSchemas - Gets a sync member database schema. +// NewListMemberSchemasPager - Gets a sync member database schema. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -368,7 +368,7 @@ func (client *SyncMembersClient) listBySyncGroupHandleResponse(resp *http.Respon // syncMemberName - The name of the sync member. // options - SyncMembersClientListMemberSchemasOptions contains the optional parameters for the SyncMembersClient.ListMemberSchemas // method. -func (client *SyncMembersClient) ListMemberSchemas(resourceGroupName string, serverName string, databaseName string, syncGroupName string, syncMemberName string, options *SyncMembersClientListMemberSchemasOptions) *runtime.Pager[SyncMembersClientListMemberSchemasResponse] { +func (client *SyncMembersClient) NewListMemberSchemasPager(resourceGroupName string, serverName string, databaseName string, syncGroupName string, syncMemberName string, options *SyncMembersClientListMemberSchemasOptions) *runtime.Pager[SyncMembersClientListMemberSchemasResponse] { return runtime.NewPager(runtime.PageProcessor[SyncMembersClientListMemberSchemasResponse]{ More: func(page SyncMembersClientListMemberSchemasResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_timezones_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_timezones_client.go index 670e35beb30f..9fa69acc32f5 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_timezones_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_timezones_client.go @@ -107,11 +107,11 @@ func (client *TimeZonesClient) getHandleResponse(resp *http.Response) (TimeZones return result, nil } -// ListByLocation - Gets a list of managed instance time zones by location. +// NewListByLocationPager - Gets a list of managed instance time zones by location. // If the operation fails it returns an *azcore.ResponseError type. // options - TimeZonesClientListByLocationOptions contains the optional parameters for the TimeZonesClient.ListByLocation // method. -func (client *TimeZonesClient) ListByLocation(locationName string, options *TimeZonesClientListByLocationOptions) *runtime.Pager[TimeZonesClientListByLocationResponse] { +func (client *TimeZonesClient) NewListByLocationPager(locationName string, options *TimeZonesClientListByLocationOptions) *runtime.Pager[TimeZonesClientListByLocationResponse] { return runtime.NewPager(runtime.PageProcessor[TimeZonesClientListByLocationResponse]{ More: func(page TimeZonesClientListByLocationResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_transparentdataencryptions_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_transparentdataencryptions_client.go index c680fc196490..6956d4c6ba5f 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_transparentdataencryptions_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_transparentdataencryptions_client.go @@ -189,7 +189,7 @@ func (client *TransparentDataEncryptionsClient) getHandleResponse(resp *http.Res return result, nil } -// ListByDatabase - Gets a list of the logical database's transparent data encryption. +// NewListByDatabasePager - Gets a list of the logical database's transparent data encryption. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -197,7 +197,7 @@ func (client *TransparentDataEncryptionsClient) getHandleResponse(resp *http.Res // databaseName - The name of the logical database for which the transparent data encryption is defined. // options - TransparentDataEncryptionsClientListByDatabaseOptions contains the optional parameters for the TransparentDataEncryptionsClient.ListByDatabase // method. -func (client *TransparentDataEncryptionsClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, options *TransparentDataEncryptionsClientListByDatabaseOptions) *runtime.Pager[TransparentDataEncryptionsClientListByDatabaseResponse] { +func (client *TransparentDataEncryptionsClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *TransparentDataEncryptionsClientListByDatabaseOptions) *runtime.Pager[TransparentDataEncryptionsClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[TransparentDataEncryptionsClientListByDatabaseResponse]{ More: func(page TransparentDataEncryptionsClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_usages_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_usages_client.go index a929883849d3..ccea3d83f2c2 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_usages_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_usages_client.go @@ -55,14 +55,14 @@ func NewUsagesClient(subscriptionID string, credential azcore.TokenCredential, o return client, nil } -// ListByInstancePool - Gets all instance pool usage metrics +// NewListByInstancePoolPager - Gets all instance pool usage metrics // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // instancePoolName - The name of the instance pool to be retrieved. // options - UsagesClientListByInstancePoolOptions contains the optional parameters for the UsagesClient.ListByInstancePool // method. -func (client *UsagesClient) ListByInstancePool(resourceGroupName string, instancePoolName string, options *UsagesClientListByInstancePoolOptions) *runtime.Pager[UsagesClientListByInstancePoolResponse] { +func (client *UsagesClient) NewListByInstancePoolPager(resourceGroupName string, instancePoolName string, options *UsagesClientListByInstancePoolOptions) *runtime.Pager[UsagesClientListByInstancePoolResponse] { return runtime.NewPager(runtime.PageProcessor[UsagesClientListByInstancePoolResponse]{ More: func(page UsagesClientListByInstancePoolResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_virtualclusters_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_virtualclusters_client.go index 9753f7cc9cc5..754b118b4300 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_virtualclusters_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_virtualclusters_client.go @@ -171,10 +171,10 @@ func (client *VirtualClustersClient) getHandleResponse(resp *http.Response) (Vir return result, nil } -// List - Gets a list of all virtualClusters in the subscription. +// NewListPager - Gets a list of all virtualClusters in the subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - VirtualClustersClientListOptions contains the optional parameters for the VirtualClustersClient.List method. -func (client *VirtualClustersClient) List(options *VirtualClustersClientListOptions) *runtime.Pager[VirtualClustersClientListResponse] { +func (client *VirtualClustersClient) NewListPager(options *VirtualClustersClientListOptions) *runtime.Pager[VirtualClustersClientListResponse] { return runtime.NewPager(runtime.PageProcessor[VirtualClustersClientListResponse]{ More: func(page VirtualClustersClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -229,13 +229,13 @@ func (client *VirtualClustersClient) listHandleResponse(resp *http.Response) (Vi return result, nil } -// ListByResourceGroup - Gets a list of virtual clusters in a resource group. +// NewListByResourceGroupPager - Gets a list of virtual clusters in a resource group. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // options - VirtualClustersClientListByResourceGroupOptions contains the optional parameters for the VirtualClustersClient.ListByResourceGroup // method. -func (client *VirtualClustersClient) ListByResourceGroup(resourceGroupName string, options *VirtualClustersClientListByResourceGroupOptions) *runtime.Pager[VirtualClustersClientListByResourceGroupResponse] { +func (client *VirtualClustersClient) NewListByResourceGroupPager(resourceGroupName string, options *VirtualClustersClientListByResourceGroupOptions) *runtime.Pager[VirtualClustersClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[VirtualClustersClientListByResourceGroupResponse]{ More: func(page VirtualClustersClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_virtualnetworkrules_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_virtualnetworkrules_client.go index 64084f128a8e..c3fb8f2e1529 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_virtualnetworkrules_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_virtualnetworkrules_client.go @@ -249,14 +249,14 @@ func (client *VirtualNetworkRulesClient) getHandleResponse(resp *http.Response) return result, nil } -// ListByServer - Gets a list of virtual network rules in a server. +// NewListByServerPager - Gets a list of virtual network rules in a server. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. // serverName - The name of the server. // options - VirtualNetworkRulesClientListByServerOptions contains the optional parameters for the VirtualNetworkRulesClient.ListByServer // method. -func (client *VirtualNetworkRulesClient) ListByServer(resourceGroupName string, serverName string, options *VirtualNetworkRulesClientListByServerOptions) *runtime.Pager[VirtualNetworkRulesClientListByServerResponse] { +func (client *VirtualNetworkRulesClient) NewListByServerPager(resourceGroupName string, serverName string, options *VirtualNetworkRulesClientListByServerOptions) *runtime.Pager[VirtualNetworkRulesClientListByServerResponse] { return runtime.NewPager(runtime.PageProcessor[VirtualNetworkRulesClientListByServerResponse]{ More: func(page VirtualNetworkRulesClientListByServerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_workloadclassifiers_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_workloadclassifiers_client.go index 5361bc2582bd..00f8aa97b3d0 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_workloadclassifiers_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_workloadclassifiers_client.go @@ -279,7 +279,7 @@ func (client *WorkloadClassifiersClient) getHandleResponse(resp *http.Response) return result, nil } -// ListByWorkloadGroup - Gets the list of workload classifiers for a workload group +// NewListByWorkloadGroupPager - Gets the list of workload classifiers for a workload group // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -288,7 +288,7 @@ func (client *WorkloadClassifiersClient) getHandleResponse(resp *http.Response) // workloadGroupName - The name of the workload group from which to receive the classifiers from. // options - WorkloadClassifiersClientListByWorkloadGroupOptions contains the optional parameters for the WorkloadClassifiersClient.ListByWorkloadGroup // method. -func (client *WorkloadClassifiersClient) ListByWorkloadGroup(resourceGroupName string, serverName string, databaseName string, workloadGroupName string, options *WorkloadClassifiersClientListByWorkloadGroupOptions) *runtime.Pager[WorkloadClassifiersClientListByWorkloadGroupResponse] { +func (client *WorkloadClassifiersClient) NewListByWorkloadGroupPager(resourceGroupName string, serverName string, databaseName string, workloadGroupName string, options *WorkloadClassifiersClientListByWorkloadGroupOptions) *runtime.Pager[WorkloadClassifiersClientListByWorkloadGroupResponse] { return runtime.NewPager(runtime.PageProcessor[WorkloadClassifiersClientListByWorkloadGroupResponse]{ More: func(page WorkloadClassifiersClientListByWorkloadGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sql/armsql/zz_generated_workloadgroups_client.go b/sdk/resourcemanager/sql/armsql/zz_generated_workloadgroups_client.go index 61aec6c5ed2d..1fb434f4cb8c 100644 --- a/sdk/resourcemanager/sql/armsql/zz_generated_workloadgroups_client.go +++ b/sdk/resourcemanager/sql/armsql/zz_generated_workloadgroups_client.go @@ -264,7 +264,7 @@ func (client *WorkloadGroupsClient) getHandleResponse(resp *http.Response) (Work return result, nil } -// ListByDatabase - Gets the list of workload groups +// NewListByDatabasePager - Gets the list of workload groups // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure // Resource Manager API or the portal. @@ -272,7 +272,7 @@ func (client *WorkloadGroupsClient) getHandleResponse(resp *http.Response) (Work // databaseName - The name of the database. // options - WorkloadGroupsClientListByDatabaseOptions contains the optional parameters for the WorkloadGroupsClient.ListByDatabase // method. -func (client *WorkloadGroupsClient) ListByDatabase(resourceGroupName string, serverName string, databaseName string, options *WorkloadGroupsClientListByDatabaseOptions) *runtime.Pager[WorkloadGroupsClientListByDatabaseResponse] { +func (client *WorkloadGroupsClient) NewListByDatabasePager(resourceGroupName string, serverName string, databaseName string, options *WorkloadGroupsClientListByDatabaseOptions) *runtime.Pager[WorkloadGroupsClientListByDatabaseResponse] { return runtime.NewPager(runtime.PageProcessor[WorkloadGroupsClientListByDatabaseResponse]{ More: func(page WorkloadGroupsClientListByDatabaseResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/CHANGELOG.md b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/CHANGELOG.md index 8000e4b2f3ca..8bf6d972ea5d 100644 --- a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/CHANGELOG.md +++ b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/CHANGELOG.md @@ -1,5 +1,27 @@ # Release History +## 0.4.0 (2022-04-18) +### Breaking Changes + +- Function `*SQLVirtualMachinesClient.ListByResourceGroup` has been removed +- Function `*OperationsClient.List` has been removed +- Function `*GroupsClient.ListByResourceGroup` has been removed +- Function `*SQLVirtualMachinesClient.List` has been removed +- Function `*GroupsClient.List` has been removed +- Function `*AvailabilityGroupListenersClient.ListByGroup` has been removed +- Function `*SQLVirtualMachinesClient.ListBySQLVMGroup` has been removed + +### Features Added + +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` +- New function `*GroupsClient.NewListByResourceGroupPager(string, *GroupsClientListByResourceGroupOptions) *runtime.Pager[GroupsClientListByResourceGroupResponse]` +- New function `*SQLVirtualMachinesClient.NewListByResourceGroupPager(string, *SQLVirtualMachinesClientListByResourceGroupOptions) *runtime.Pager[SQLVirtualMachinesClientListByResourceGroupResponse]` +- New function `*SQLVirtualMachinesClient.NewListBySQLVMGroupPager(string, string, *SQLVirtualMachinesClientListBySQLVMGroupOptions) *runtime.Pager[SQLVirtualMachinesClientListBySQLVMGroupResponse]` +- New function `*SQLVirtualMachinesClient.NewListPager(*SQLVirtualMachinesClientListOptions) *runtime.Pager[SQLVirtualMachinesClientListResponse]` +- New function `*GroupsClient.NewListPager(*GroupsClientListOptions) *runtime.Pager[GroupsClientListResponse]` +- New function `*AvailabilityGroupListenersClient.NewListByGroupPager(string, string, *AvailabilityGroupListenersClientListByGroupOptions) *runtime.Pager[AvailabilityGroupListenersClientListByGroupResponse]` + + ## 0.3.0 (2022-04-13) ### Breaking Changes diff --git a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/autorest.md b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/autorest.md index 5cf0fd93a52b..902b02e989a7 100644 --- a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/autorest.md +++ b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/autorest.md @@ -5,8 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/sqlvirtualmachine/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/sqlvirtualmachine/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/sqlvirtualmachine/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/sqlvirtualmachine/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.3.0 +module-version: 0.4.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/ze_generated_example_availabilitygrouplisteners_client_test.go b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/ze_generated_example_availabilitygrouplisteners_client_test.go index 5d3db1e81ad6..50c44492b92a 100644 --- a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/ze_generated_example_availabilitygrouplisteners_client_test.go +++ b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/ze_generated_example_availabilitygrouplisteners_client_test.go @@ -124,7 +124,7 @@ func ExampleAvailabilityGroupListenersClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2021-11-01-preview/examples/ListByGroupAvailabilityGroupListener.json -func ExampleAvailabilityGroupListenersClient_ListByGroup() { +func ExampleAvailabilityGroupListenersClient_NewListByGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -136,7 +136,7 @@ func ExampleAvailabilityGroupListenersClient_ListByGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByGroup("", + pager := client.NewListByGroupPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/ze_generated_example_operations_client_test.go index 87d4dc2dba3a..d35922eb2828 100644 --- a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/ze_generated_example_operations_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2021-11-01-preview/examples/ListOperation.json -func ExampleOperationsClient_List() { +func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleOperationsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(nil) + pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/ze_generated_example_sqlvirtualmachinegroups_client_test.go b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/ze_generated_example_sqlvirtualmachinegroups_client_test.go index 98af1fd31e47..da0db8a44011 100644 --- a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/ze_generated_example_sqlvirtualmachinegroups_client_test.go +++ b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/ze_generated_example_sqlvirtualmachinegroups_client_test.go @@ -157,7 +157,7 @@ func ExampleGroupsClient_BeginUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2021-11-01-preview/examples/ListByResourceGroupSqlVirtualMachineGroup.json -func ExampleGroupsClient_ListByResourceGroup() { +func ExampleGroupsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -169,7 +169,7 @@ func ExampleGroupsClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -185,7 +185,7 @@ func ExampleGroupsClient_ListByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2021-11-01-preview/examples/ListSubscriptionSqlVirtualMachineGroup.json -func ExampleGroupsClient_List() { +func ExampleGroupsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -197,7 +197,7 @@ func ExampleGroupsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(nil) + pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/ze_generated_example_sqlvirtualmachines_client_test.go b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/ze_generated_example_sqlvirtualmachines_client_test.go index 2aa9c4e95794..26de90c11917 100644 --- a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/ze_generated_example_sqlvirtualmachines_client_test.go +++ b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/ze_generated_example_sqlvirtualmachines_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2021-11-01-preview/examples/ListSubscriptionSqlVirtualMachine.json -func ExampleSQLVirtualMachinesClient_List() { +func ExampleSQLVirtualMachinesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleSQLVirtualMachinesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(nil) + pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { @@ -205,7 +205,7 @@ func ExampleSQLVirtualMachinesClient_BeginUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2021-11-01-preview/examples/ListByResourceGroupSqlVirtualMachine.json -func ExampleSQLVirtualMachinesClient_ListByResourceGroup() { +func ExampleSQLVirtualMachinesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -217,7 +217,7 @@ func ExampleSQLVirtualMachinesClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) diff --git a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/zz_generated_availabilitygrouplisteners_client.go b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/zz_generated_availabilitygrouplisteners_client.go index f16f28f3a24e..911318c136ee 100644 --- a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/zz_generated_availabilitygrouplisteners_client.go +++ b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/zz_generated_availabilitygrouplisteners_client.go @@ -253,14 +253,14 @@ func (client *AvailabilityGroupListenersClient) getHandleResponse(resp *http.Res return result, nil } -// ListByGroup - Lists all availability group listeners in a SQL virtual machine group. +// NewListByGroupPager - Lists all availability group listeners in a SQL virtual machine group. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource // Manager API or the portal. // sqlVirtualMachineGroupName - Name of the SQL virtual machine group. // options - AvailabilityGroupListenersClientListByGroupOptions contains the optional parameters for the AvailabilityGroupListenersClient.ListByGroup // method. -func (client *AvailabilityGroupListenersClient) ListByGroup(resourceGroupName string, sqlVirtualMachineGroupName string, options *AvailabilityGroupListenersClientListByGroupOptions) *runtime.Pager[AvailabilityGroupListenersClientListByGroupResponse] { +func (client *AvailabilityGroupListenersClient) NewListByGroupPager(resourceGroupName string, sqlVirtualMachineGroupName string, options *AvailabilityGroupListenersClientListByGroupOptions) *runtime.Pager[AvailabilityGroupListenersClientListByGroupResponse] { return runtime.NewPager(runtime.PageProcessor[AvailabilityGroupListenersClientListByGroupResponse]{ More: func(page AvailabilityGroupListenersClientListByGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/zz_generated_constants.go b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/zz_generated_constants.go index c862d68e54a9..1cba4c197b5f 100644 --- a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/zz_generated_constants.go +++ b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/zz_generated_constants.go @@ -10,7 +10,7 @@ package armsqlvirtualmachine const ( moduleName = "armsqlvirtualmachine" - moduleVersion = "v0.3.0" + moduleVersion = "v0.4.0" ) // BackupScheduleType - Backup schedule type. diff --git a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/zz_generated_groups_client.go b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/zz_generated_groups_client.go index b23983701365..a88f1c04cd89 100644 --- a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/zz_generated_groups_client.go +++ b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/zz_generated_groups_client.go @@ -233,10 +233,10 @@ func (client *GroupsClient) getHandleResponse(resp *http.Response) (GroupsClient return result, nil } -// List - Gets all SQL virtual machine groups in a subscription. +// NewListPager - Gets all SQL virtual machine groups in a subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - GroupsClientListOptions contains the optional parameters for the GroupsClient.List method. -func (client *GroupsClient) List(options *GroupsClientListOptions) *runtime.Pager[GroupsClientListResponse] { +func (client *GroupsClient) NewListPager(options *GroupsClientListOptions) *runtime.Pager[GroupsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[GroupsClientListResponse]{ More: func(page GroupsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -291,13 +291,13 @@ func (client *GroupsClient) listHandleResponse(resp *http.Response) (GroupsClien return result, nil } -// ListByResourceGroup - Gets all SQL virtual machine groups in a resource group. +// NewListByResourceGroupPager - Gets all SQL virtual machine groups in a resource group. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource // Manager API or the portal. // options - GroupsClientListByResourceGroupOptions contains the optional parameters for the GroupsClient.ListByResourceGroup // method. -func (client *GroupsClient) ListByResourceGroup(resourceGroupName string, options *GroupsClientListByResourceGroupOptions) *runtime.Pager[GroupsClientListByResourceGroupResponse] { +func (client *GroupsClient) NewListByResourceGroupPager(resourceGroupName string, options *GroupsClientListByResourceGroupOptions) *runtime.Pager[GroupsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[GroupsClientListByResourceGroupResponse]{ More: func(page GroupsClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/zz_generated_operations_client.go b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/zz_generated_operations_client.go index 37c21de9f3ee..d2e7fd64a3c4 100644 --- a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/zz_generated_operations_client.go +++ b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/zz_generated_operations_client.go @@ -48,10 +48,10 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO return client, nil } -// List - Lists all of the available SQL Virtual Machine Rest API operations. +// NewListPager - Lists all of the available SQL Virtual Machine Rest API operations. // If the operation fails it returns an *azcore.ResponseError type. // options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. -func (client *OperationsClient) List(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { +func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[OperationsClientListResponse]{ More: func(page OperationsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/zz_generated_sqlvirtualmachines_client.go b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/zz_generated_sqlvirtualmachines_client.go index 88d961d50df3..937db8005675 100644 --- a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/zz_generated_sqlvirtualmachines_client.go +++ b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/zz_generated_sqlvirtualmachines_client.go @@ -237,10 +237,10 @@ func (client *SQLVirtualMachinesClient) getHandleResponse(resp *http.Response) ( return result, nil } -// List - Gets all SQL virtual machines in a subscription. +// NewListPager - Gets all SQL virtual machines in a subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - SQLVirtualMachinesClientListOptions contains the optional parameters for the SQLVirtualMachinesClient.List method. -func (client *SQLVirtualMachinesClient) List(options *SQLVirtualMachinesClientListOptions) *runtime.Pager[SQLVirtualMachinesClientListResponse] { +func (client *SQLVirtualMachinesClient) NewListPager(options *SQLVirtualMachinesClientListOptions) *runtime.Pager[SQLVirtualMachinesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[SQLVirtualMachinesClientListResponse]{ More: func(page SQLVirtualMachinesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -295,13 +295,13 @@ func (client *SQLVirtualMachinesClient) listHandleResponse(resp *http.Response) return result, nil } -// ListByResourceGroup - Gets all SQL virtual machines in a resource group. +// NewListByResourceGroupPager - Gets all SQL virtual machines in a resource group. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource // Manager API or the portal. // options - SQLVirtualMachinesClientListByResourceGroupOptions contains the optional parameters for the SQLVirtualMachinesClient.ListByResourceGroup // method. -func (client *SQLVirtualMachinesClient) ListByResourceGroup(resourceGroupName string, options *SQLVirtualMachinesClientListByResourceGroupOptions) *runtime.Pager[SQLVirtualMachinesClientListByResourceGroupResponse] { +func (client *SQLVirtualMachinesClient) NewListByResourceGroupPager(resourceGroupName string, options *SQLVirtualMachinesClientListByResourceGroupOptions) *runtime.Pager[SQLVirtualMachinesClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[SQLVirtualMachinesClientListByResourceGroupResponse]{ More: func(page SQLVirtualMachinesClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -360,14 +360,14 @@ func (client *SQLVirtualMachinesClient) listByResourceGroupHandleResponse(resp * return result, nil } -// ListBySQLVMGroup - Gets the list of sql virtual machines in a SQL virtual machine group. +// NewListBySQLVMGroupPager - Gets the list of sql virtual machines in a SQL virtual machine group. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource // Manager API or the portal. // sqlVirtualMachineGroupName - Name of the SQL virtual machine group. // options - SQLVirtualMachinesClientListBySQLVMGroupOptions contains the optional parameters for the SQLVirtualMachinesClient.ListBySQLVMGroup // method. -func (client *SQLVirtualMachinesClient) ListBySQLVMGroup(resourceGroupName string, sqlVirtualMachineGroupName string, options *SQLVirtualMachinesClientListBySQLVMGroupOptions) *runtime.Pager[SQLVirtualMachinesClientListBySQLVMGroupResponse] { +func (client *SQLVirtualMachinesClient) NewListBySQLVMGroupPager(resourceGroupName string, sqlVirtualMachineGroupName string, options *SQLVirtualMachinesClientListBySQLVMGroupOptions) *runtime.Pager[SQLVirtualMachinesClientListBySQLVMGroupResponse] { return runtime.NewPager(runtime.PageProcessor[SQLVirtualMachinesClientListBySQLVMGroupResponse]{ More: func(page SQLVirtualMachinesClientListBySQLVMGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/storage/armstorage/CHANGELOG.md b/sdk/resourcemanager/storage/armstorage/CHANGELOG.md index 3d040d0ce345..0ebcbe57a281 100644 --- a/sdk/resourcemanager/storage/armstorage/CHANGELOG.md +++ b/sdk/resourcemanager/storage/armstorage/CHANGELOG.md @@ -1,5 +1,45 @@ # Release History +## 0.6.0 (2022-04-18) +### Breaking Changes + +- Function `*EncryptionScopesClient.List` has been removed +- Function `*PrivateEndpointConnectionsClient.List` has been removed +- Function `*TableClient.List` has been removed +- Function `*AccountsClient.List` has been removed +- Function `*BlobInventoryPoliciesClient.List` has been removed +- Function `*QueueClient.List` has been removed +- Function `*DeletedAccountsClient.List` has been removed +- Function `*LocalUsersClient.List` has been removed +- Function `*ObjectReplicationPoliciesClient.List` has been removed +- Function `*BlobServicesClient.List` has been removed +- Function `*BlobContainersClient.List` has been removed +- Function `*OperationsClient.List` has been removed +- Function `*AccountsClient.ListByResourceGroup` has been removed +- Function `*SKUsClient.List` has been removed +- Function `*FileSharesClient.List` has been removed +- Function `*UsagesClient.ListByLocation` has been removed + +### Features Added + +- New function `*SKUsClient.NewListPager(*SKUsClientListOptions) *runtime.Pager[SKUsClientListResponse]` +- New function `*BlobServicesClient.NewListPager(string, string, *BlobServicesClientListOptions) *runtime.Pager[BlobServicesClientListResponse]` +- New function `*AccountsClient.NewListByResourceGroupPager(string, *AccountsClientListByResourceGroupOptions) *runtime.Pager[AccountsClientListByResourceGroupResponse]` +- New function `*AccountsClient.NewListPager(*AccountsClientListOptions) *runtime.Pager[AccountsClientListResponse]` +- New function `*UsagesClient.NewListByLocationPager(string, *UsagesClientListByLocationOptions) *runtime.Pager[UsagesClientListByLocationResponse]` +- New function `*BlobContainersClient.NewListPager(string, string, *BlobContainersClientListOptions) *runtime.Pager[BlobContainersClientListResponse]` +- New function `*PrivateEndpointConnectionsClient.NewListPager(string, string, *PrivateEndpointConnectionsClientListOptions) *runtime.Pager[PrivateEndpointConnectionsClientListResponse]` +- New function `*DeletedAccountsClient.NewListPager(*DeletedAccountsClientListOptions) *runtime.Pager[DeletedAccountsClientListResponse]` +- New function `*LocalUsersClient.NewListPager(string, string, *LocalUsersClientListOptions) *runtime.Pager[LocalUsersClientListResponse]` +- New function `*ObjectReplicationPoliciesClient.NewListPager(string, string, *ObjectReplicationPoliciesClientListOptions) *runtime.Pager[ObjectReplicationPoliciesClientListResponse]` +- New function `*FileSharesClient.NewListPager(string, string, *FileSharesClientListOptions) *runtime.Pager[FileSharesClientListResponse]` +- New function `*QueueClient.NewListPager(string, string, *QueueClientListOptions) *runtime.Pager[QueueClientListResponse]` +- New function `*TableClient.NewListPager(string, string, *TableClientListOptions) *runtime.Pager[TableClientListResponse]` +- New function `*EncryptionScopesClient.NewListPager(string, string, *EncryptionScopesClientListOptions) *runtime.Pager[EncryptionScopesClientListResponse]` +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` +- New function `*BlobInventoryPoliciesClient.NewListPager(string, string, *BlobInventoryPoliciesClientListOptions) *runtime.Pager[BlobInventoryPoliciesClientListResponse]` + + ## 0.5.0 (2022-04-14) ### Breaking Changes diff --git a/sdk/resourcemanager/storage/armstorage/autorest.md b/sdk/resourcemanager/storage/armstorage/autorest.md index e0102f02a566..ce15bef08ade 100644 --- a/sdk/resourcemanager/storage/armstorage/autorest.md +++ b/sdk/resourcemanager/storage/armstorage/autorest.md @@ -5,10 +5,10 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/storage/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/storage/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/storage/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/storage/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.5.0 +module-version: 0.6.0 modelerfour: seal-single-value-enum-by-default: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobcontainers_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobcontainers_client_test.go index 687cd0965141..d319e48d10fb 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobcontainers_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobcontainers_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/BlobContainersList.json -func ExampleBlobContainersClient_List() { +func ExampleBlobContainersClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleBlobContainersClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", &armstorage.BlobContainersClientListOptions{Maxpagesize: nil, Filter: nil, diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobinventorypolicies_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobinventorypolicies_client_test.go index 3c92a1d0d625..f36faaad6552 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobinventorypolicies_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobinventorypolicies_client_test.go @@ -160,7 +160,7 @@ func ExampleBlobInventoryPoliciesClient_Delete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountListBlobInventoryPolicy.json -func ExampleBlobInventoryPoliciesClient_List() { +func ExampleBlobInventoryPoliciesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -172,7 +172,7 @@ func ExampleBlobInventoryPoliciesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobservices_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobservices_client_test.go index 58a27936e745..237a90126284 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobservices_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobservices_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/BlobServicesList.json -func ExampleBlobServicesClient_List() { +func ExampleBlobServicesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleBlobServicesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_deletedaccounts_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_deletedaccounts_client_test.go index 34c172a067a5..f8a1d4f83a28 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_deletedaccounts_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_deletedaccounts_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/DeletedAccountList.json -func ExampleDeletedAccountsClient_List() { +func ExampleDeletedAccountsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleDeletedAccountsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(nil) + pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_encryptionscopes_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_encryptionscopes_client_test.go index 36aa515a5008..0001bd1e98e2 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_encryptionscopes_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_encryptionscopes_client_test.go @@ -105,7 +105,7 @@ func ExampleEncryptionScopesClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountEncryptionScopeList.json -func ExampleEncryptionScopesClient_List() { +func ExampleEncryptionScopesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -117,7 +117,7 @@ func ExampleEncryptionScopesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_fileshares_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_fileshares_client_test.go index 20be232160b4..82e464e3d341 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_fileshares_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_fileshares_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/DeletedFileSharesList.json -func ExampleFileSharesClient_List() { +func ExampleFileSharesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleFileSharesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", &armstorage.FileSharesClientListOptions{Maxpagesize: nil, Filter: nil, diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_localusers_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_localusers_client_test.go index 3f5b007b8524..981949983525 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_localusers_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_localusers_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/LocalUsersList.json -func ExampleLocalUsersClient_List() { +func ExampleLocalUsersClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleLocalUsersClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_objectreplicationpolicies_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_objectreplicationpolicies_client_test.go index 42d18b9fe0fa..7a7888a95b46 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_objectreplicationpolicies_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_objectreplicationpolicies_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountListObjectReplicationPolicies.json -func ExampleObjectReplicationPoliciesClient_List() { +func ExampleObjectReplicationPoliciesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleObjectReplicationPoliciesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_operations_client_test.go index e70d2017617f..ec30b59549b9 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_operations_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/OperationsList.json -func ExampleOperationsClient_List() { +func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleOperationsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(nil) + pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_privateendpointconnections_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_privateendpointconnections_client_test.go index 81dbc11a5584..f67613eed72a 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_privateendpointconnections_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_privateendpointconnections_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountListPrivateEndpointConnections.json -func ExamplePrivateEndpointConnectionsClient_List() { +func ExamplePrivateEndpointConnectionsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExamplePrivateEndpointConnectionsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_queue_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_queue_client_test.go index 3870697d328f..0b738c528170 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_queue_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_queue_client_test.go @@ -121,7 +121,7 @@ func ExampleQueueClient_Delete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/QueueOperationList.json -func ExampleQueueClient_List() { +func ExampleQueueClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -133,7 +133,7 @@ func ExampleQueueClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", &armstorage.QueueClientListOptions{Maxpagesize: nil, Filter: nil, diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_skus_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_skus_client_test.go index e3e261c6f5b9..86208b9090a2 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_skus_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_skus_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/SKUList.json -func ExampleSKUsClient_List() { +func ExampleSKUsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleSKUsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(nil) + pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_storageaccounts_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_storageaccounts_client_test.go index 0d827df60ea8..a297a5e84a78 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_storageaccounts_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_storageaccounts_client_test.go @@ -188,7 +188,7 @@ func ExampleAccountsClient_Update() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountList.json -func ExampleAccountsClient_List() { +func ExampleAccountsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -200,7 +200,7 @@ func ExampleAccountsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(nil) + pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { @@ -215,7 +215,7 @@ func ExampleAccountsClient_List() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountListByResourceGroup.json -func ExampleAccountsClient_ListByResourceGroup() { +func ExampleAccountsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -227,7 +227,7 @@ func ExampleAccountsClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_table_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_table_client_test.go index d23f74d97a2a..4f239cc3ae6c 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_table_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_table_client_test.go @@ -119,7 +119,7 @@ func ExampleTableClient_Delete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/TableOperationList.json -func ExampleTableClient_List() { +func ExampleTableClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -131,7 +131,7 @@ func ExampleTableClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_usages_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_usages_client_test.go index fdcf9ca2dd58..ae2aa5815d92 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_usages_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_usages_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountListLocationUsage.json -func ExampleUsagesClient_ListByLocation() { +func ExampleUsagesClient_NewListByLocationPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleUsagesClient_ListByLocation() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByLocation("", + pager := client.NewListByLocationPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) diff --git a/sdk/resourcemanager/storage/armstorage/zt_blobcontainers_client_live_test.go b/sdk/resourcemanager/storage/armstorage/zt_blobcontainers_client_live_test.go index 0e15b02263de..cdbe80c92f0a 100644 --- a/sdk/resourcemanager/storage/armstorage/zt_blobcontainers_client_live_test.go +++ b/sdk/resourcemanager/storage/armstorage/zt_blobcontainers_client_live_test.go @@ -126,7 +126,7 @@ func (testsuite *BlobContainersClientTestSuite) TestBlobContainersCRUD() { testsuite.Require().Equal(blobContainerName, *getResp.Name) // list - listPager := blobContainersClient.List(testsuite.resourceGroupName, scName, nil) + listPager := blobContainersClient.NewListPager(testsuite.resourceGroupName, scName, nil) testsuite.Require().True(listPager.More()) // clear legal hold diff --git a/sdk/resourcemanager/storage/armstorage/zt_encryptionscopes_client_live_test.go b/sdk/resourcemanager/storage/armstorage/zt_encryptionscopes_client_live_test.go index 7d1ad09af133..4c001f8f76a4 100644 --- a/sdk/resourcemanager/storage/armstorage/zt_encryptionscopes_client_live_test.go +++ b/sdk/resourcemanager/storage/armstorage/zt_encryptionscopes_client_live_test.go @@ -119,7 +119,7 @@ func (testsuite *EncryptionScopesClientTestSuite) TestEncryptionScopesCRUD() { testsuite.Require().Equal(encryptionScopeName, *getResp.Name) // list - listPager := encryptionScopesClient.List(testsuite.resourceGroupName, scName, nil) + listPager := encryptionScopesClient.NewListPager(testsuite.resourceGroupName, scName, nil) testsuite.Require().True(listPager.More()) // patch diff --git a/sdk/resourcemanager/storage/armstorage/zt_operations_client_live_test.go b/sdk/resourcemanager/storage/armstorage/zt_operations_client_live_test.go index 05d29fcae774..694cdb794826 100644 --- a/sdk/resourcemanager/storage/armstorage/zt_operations_client_live_test.go +++ b/sdk/resourcemanager/storage/armstorage/zt_operations_client_live_test.go @@ -53,6 +53,6 @@ func TestOperationsClient(t *testing.T) { func (testsuite *OperationsClientTestSuite) TestOperations() { operationsClient, err := armstorage.NewOperationsClient(testsuite.cred, testsuite.options) testsuite.Require().NoError(err) - resp := operationsClient.List(nil) + resp := operationsClient.NewListPager(nil) testsuite.Require().True(resp.More()) } diff --git a/sdk/resourcemanager/storage/armstorage/zt_skus_client_live_test.go b/sdk/resourcemanager/storage/armstorage/zt_skus_client_live_test.go index 0dc9252a817b..d15c80e0245a 100644 --- a/sdk/resourcemanager/storage/armstorage/zt_skus_client_live_test.go +++ b/sdk/resourcemanager/storage/armstorage/zt_skus_client_live_test.go @@ -53,6 +53,6 @@ func TestSKUsClient(t *testing.T) { func (testsuite *SKUsClientTestSuite) TestSKUs() { skusClient, err := armstorage.NewSKUsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) testsuite.Require().NoError(err) - resp := skusClient.List(nil) + resp := skusClient.NewListPager(nil) testsuite.Require().True(resp.More()) } diff --git a/sdk/resourcemanager/storage/armstorage/zt_storageaccounts_client_live_test.go b/sdk/resourcemanager/storage/armstorage/zt_storageaccounts_client_live_test.go index 2f82bd0f17f6..787c7995a0e7 100644 --- a/sdk/resourcemanager/storage/armstorage/zt_storageaccounts_client_live_test.go +++ b/sdk/resourcemanager/storage/armstorage/zt_storageaccounts_client_live_test.go @@ -141,11 +141,11 @@ func (testsuite *StorageAccountsClientTestSuite) TestStorageAccountsCRUD() { testsuite.Require().Equal(scName, *getResp.Name) // list - listPager := storageAccountsClient.List(nil) + listPager := storageAccountsClient.NewListPager(nil) testsuite.Require().True(listPager.More()) // list by resource group - listByResourceGroup := storageAccountsClient.ListByResourceGroup(testsuite.resourceGroupName, nil) + listByResourceGroup := storageAccountsClient.NewListByResourceGroupPager(testsuite.resourceGroupName, nil) testsuite.Require().True(listByResourceGroup.More()) // list keys diff --git a/sdk/resourcemanager/storage/armstorage/zt_usages_client_live_test.go b/sdk/resourcemanager/storage/armstorage/zt_usages_client_live_test.go index 0d04913fa07f..2a0b86e9814c 100644 --- a/sdk/resourcemanager/storage/armstorage/zt_usages_client_live_test.go +++ b/sdk/resourcemanager/storage/armstorage/zt_usages_client_live_test.go @@ -53,6 +53,6 @@ func TestUsagesClient(t *testing.T) { func (testsuite *UsagesClientTestSuite) TestUsages() { usagesClient, err := armstorage.NewUsagesClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) testsuite.Require().NoError(err) - resp := usagesClient.ListByLocation(testsuite.location, nil) + resp := usagesClient.NewListByLocationPager(testsuite.location, nil) testsuite.Require().True(resp.More()) } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_accounts_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_accounts_client.go index 32e47b886fb8..43b03d23de5d 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_accounts_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_accounts_client.go @@ -474,11 +474,11 @@ func (client *AccountsClient) hierarchicalNamespaceMigrationCreateRequest(ctx co return req, nil } -// List - Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the -// ListKeys operation for this. +// NewListPager - Lists all the storage accounts available under the subscription. Note that storage keys are not returned; +// use the ListKeys operation for this. // If the operation fails it returns an *azcore.ResponseError type. // options - AccountsClientListOptions contains the optional parameters for the AccountsClient.List method. -func (client *AccountsClient) List(options *AccountsClientListOptions) *runtime.Pager[AccountsClientListResponse] { +func (client *AccountsClient) NewListPager(options *AccountsClientListOptions) *runtime.Pager[AccountsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[AccountsClientListResponse]{ More: func(page AccountsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -590,13 +590,13 @@ func (client *AccountsClient) listAccountSASHandleResponse(resp *http.Response) return result, nil } -// ListByResourceGroup - Lists all the storage accounts available under the given resource group. Note that storage keys are -// not returned; use the ListKeys operation for this. +// NewListByResourceGroupPager - Lists all the storage accounts available under the given resource group. Note that storage +// keys are not returned; use the ListKeys operation for this. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. // options - AccountsClientListByResourceGroupOptions contains the optional parameters for the AccountsClient.ListByResourceGroup // method. -func (client *AccountsClient) ListByResourceGroup(resourceGroupName string, options *AccountsClientListByResourceGroupOptions) *runtime.Pager[AccountsClientListByResourceGroupResponse] { +func (client *AccountsClient) NewListByResourceGroupPager(resourceGroupName string, options *AccountsClientListByResourceGroupOptions) *runtime.Pager[AccountsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[AccountsClientListByResourceGroupResponse]{ More: func(page AccountsClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_blobcontainers_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_blobcontainers_client.go index 4ebea80d0f8f..7b2e774c9df8 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_blobcontainers_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_blobcontainers_client.go @@ -666,14 +666,14 @@ func (client *BlobContainersClient) leaseHandleResponse(resp *http.Response) (Bl return result, nil } -// List - Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation +// NewListPager - Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation // token. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. // accountName - The name of the storage account within the specified resource group. Storage account names must be between // 3 and 24 characters in length and use numbers and lower-case letters only. // options - BlobContainersClientListOptions contains the optional parameters for the BlobContainersClient.List method. -func (client *BlobContainersClient) List(resourceGroupName string, accountName string, options *BlobContainersClientListOptions) *runtime.Pager[BlobContainersClientListResponse] { +func (client *BlobContainersClient) NewListPager(resourceGroupName string, accountName string, options *BlobContainersClientListOptions) *runtime.Pager[BlobContainersClientListResponse] { return runtime.NewPager(runtime.PageProcessor[BlobContainersClientListResponse]{ More: func(page BlobContainersClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_blobinventorypolicies_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_blobinventorypolicies_client.go index 2f171a9e9a12..1c2096f4e22f 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_blobinventorypolicies_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_blobinventorypolicies_client.go @@ -232,14 +232,14 @@ func (client *BlobInventoryPoliciesClient) getHandleResponse(resp *http.Response return result, nil } -// List - Gets the blob inventory policy associated with the specified storage account. +// NewListPager - Gets the blob inventory policy associated with the specified storage account. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. // accountName - The name of the storage account within the specified resource group. Storage account names must be between // 3 and 24 characters in length and use numbers and lower-case letters only. // options - BlobInventoryPoliciesClientListOptions contains the optional parameters for the BlobInventoryPoliciesClient.List // method. -func (client *BlobInventoryPoliciesClient) List(resourceGroupName string, accountName string, options *BlobInventoryPoliciesClientListOptions) *runtime.Pager[BlobInventoryPoliciesClientListResponse] { +func (client *BlobInventoryPoliciesClient) NewListPager(resourceGroupName string, accountName string, options *BlobInventoryPoliciesClientListOptions) *runtime.Pager[BlobInventoryPoliciesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[BlobInventoryPoliciesClientListResponse]{ More: func(page BlobInventoryPoliciesClientListResponse) bool { return false diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_blobservices_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_blobservices_client.go index b8c6d21c8394..7055a62f978e 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_blobservices_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_blobservices_client.go @@ -113,13 +113,13 @@ func (client *BlobServicesClient) getServicePropertiesHandleResponse(resp *http. return result, nil } -// List - List blob services of storage account. It returns a collection of one object named default. +// NewListPager - List blob services of storage account. It returns a collection of one object named default. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. // accountName - The name of the storage account within the specified resource group. Storage account names must be between // 3 and 24 characters in length and use numbers and lower-case letters only. // options - BlobServicesClientListOptions contains the optional parameters for the BlobServicesClient.List method. -func (client *BlobServicesClient) List(resourceGroupName string, accountName string, options *BlobServicesClientListOptions) *runtime.Pager[BlobServicesClientListResponse] { +func (client *BlobServicesClient) NewListPager(resourceGroupName string, accountName string, options *BlobServicesClientListOptions) *runtime.Pager[BlobServicesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[BlobServicesClientListResponse]{ More: func(page BlobServicesClientListResponse) bool { return false diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_constants.go b/sdk/resourcemanager/storage/armstorage/zz_generated_constants.go index 63c6beac5f9c..cd5198dda5d0 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_constants.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_constants.go @@ -10,7 +10,7 @@ package armstorage const ( moduleName = "armstorage" - moduleVersion = "v0.5.0" + moduleVersion = "v0.6.0" ) // AccessTier - Required for storage accounts where kind = BlobStorage. The access tier is used for billing. The 'Premium' diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_deletedaccounts_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_deletedaccounts_client.go index 98691adb0cae..bf9158f43e4b 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_deletedaccounts_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_deletedaccounts_client.go @@ -109,10 +109,10 @@ func (client *DeletedAccountsClient) getHandleResponse(resp *http.Response) (Del return result, nil } -// List - Lists deleted accounts under the subscription. +// NewListPager - Lists deleted accounts under the subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - DeletedAccountsClientListOptions contains the optional parameters for the DeletedAccountsClient.List method. -func (client *DeletedAccountsClient) List(options *DeletedAccountsClientListOptions) *runtime.Pager[DeletedAccountsClientListResponse] { +func (client *DeletedAccountsClient) NewListPager(options *DeletedAccountsClientListOptions) *runtime.Pager[DeletedAccountsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[DeletedAccountsClientListResponse]{ More: func(page DeletedAccountsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_encryptionscopes_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_encryptionscopes_client.go index 69f5090e4786..f35c4f52973e 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_encryptionscopes_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_encryptionscopes_client.go @@ -117,13 +117,13 @@ func (client *EncryptionScopesClient) getHandleResponse(resp *http.Response) (En return result, nil } -// List - Lists all the encryption scopes available under the specified storage account. +// NewListPager - Lists all the encryption scopes available under the specified storage account. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. // accountName - The name of the storage account within the specified resource group. Storage account names must be between // 3 and 24 characters in length and use numbers and lower-case letters only. // options - EncryptionScopesClientListOptions contains the optional parameters for the EncryptionScopesClient.List method. -func (client *EncryptionScopesClient) List(resourceGroupName string, accountName string, options *EncryptionScopesClientListOptions) *runtime.Pager[EncryptionScopesClientListResponse] { +func (client *EncryptionScopesClient) NewListPager(resourceGroupName string, accountName string, options *EncryptionScopesClientListOptions) *runtime.Pager[EncryptionScopesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[EncryptionScopesClientListResponse]{ More: func(page EncryptionScopesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_fileshares_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_fileshares_client.go index 52ad542c0175..e715cb291864 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_fileshares_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_fileshares_client.go @@ -325,13 +325,13 @@ func (client *FileSharesClient) leaseHandleResponse(resp *http.Response) (FileSh return result, nil } -// List - Lists all shares. +// NewListPager - Lists all shares. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. // accountName - The name of the storage account within the specified resource group. Storage account names must be between // 3 and 24 characters in length and use numbers and lower-case letters only. // options - FileSharesClientListOptions contains the optional parameters for the FileSharesClient.List method. -func (client *FileSharesClient) List(resourceGroupName string, accountName string, options *FileSharesClientListOptions) *runtime.Pager[FileSharesClientListResponse] { +func (client *FileSharesClient) NewListPager(resourceGroupName string, accountName string, options *FileSharesClientListOptions) *runtime.Pager[FileSharesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[FileSharesClientListResponse]{ More: func(page FileSharesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_localusers_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_localusers_client.go index 53d950c08813..a5e69e360aa7 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_localusers_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_localusers_client.go @@ -233,13 +233,13 @@ func (client *LocalUsersClient) getHandleResponse(resp *http.Response) (LocalUse return result, nil } -// List - List the local users associated with the storage account. +// NewListPager - List the local users associated with the storage account. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. // accountName - The name of the storage account within the specified resource group. Storage account names must be between // 3 and 24 characters in length and use numbers and lower-case letters only. // options - LocalUsersClientListOptions contains the optional parameters for the LocalUsersClient.List method. -func (client *LocalUsersClient) List(resourceGroupName string, accountName string, options *LocalUsersClientListOptions) *runtime.Pager[LocalUsersClientListResponse] { +func (client *LocalUsersClient) NewListPager(resourceGroupName string, accountName string, options *LocalUsersClientListOptions) *runtime.Pager[LocalUsersClientListResponse] { return runtime.NewPager(runtime.PageProcessor[LocalUsersClientListResponse]{ More: func(page LocalUsersClientListResponse) bool { return false diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_objectreplicationpolicies_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_objectreplicationpolicies_client.go index 9f9cde377075..6354ffcdd935 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_objectreplicationpolicies_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_objectreplicationpolicies_client.go @@ -238,14 +238,14 @@ func (client *ObjectReplicationPoliciesClient) getHandleResponse(resp *http.Resp return result, nil } -// List - List the object replication policies associated with the storage account. +// NewListPager - List the object replication policies associated with the storage account. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. // accountName - The name of the storage account within the specified resource group. Storage account names must be between // 3 and 24 characters in length and use numbers and lower-case letters only. // options - ObjectReplicationPoliciesClientListOptions contains the optional parameters for the ObjectReplicationPoliciesClient.List // method. -func (client *ObjectReplicationPoliciesClient) List(resourceGroupName string, accountName string, options *ObjectReplicationPoliciesClientListOptions) *runtime.Pager[ObjectReplicationPoliciesClientListResponse] { +func (client *ObjectReplicationPoliciesClient) NewListPager(resourceGroupName string, accountName string, options *ObjectReplicationPoliciesClientListOptions) *runtime.Pager[ObjectReplicationPoliciesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[ObjectReplicationPoliciesClientListResponse]{ More: func(page ObjectReplicationPoliciesClientListResponse) bool { return false diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_operations_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_operations_client.go index 68285b3ccf76..851307e865d6 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_operations_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_operations_client.go @@ -48,10 +48,10 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO return client, nil } -// List - Lists all of the available Storage Rest API operations. +// NewListPager - Lists all of the available Storage Rest API operations. // If the operation fails it returns an *azcore.ResponseError type. // options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. -func (client *OperationsClient) List(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { +func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[OperationsClientListResponse]{ More: func(page OperationsClientListResponse) bool { return false diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_privateendpointconnections_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_privateendpointconnections_client.go index 85920badba58..27a942e651f5 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_privateendpointconnections_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_privateendpointconnections_client.go @@ -169,14 +169,14 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res return result, nil } -// List - List all the private endpoint connections associated with the storage account. +// NewListPager - List all the private endpoint connections associated with the storage account. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. // accountName - The name of the storage account within the specified resource group. Storage account names must be between // 3 and 24 characters in length and use numbers and lower-case letters only. // options - PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.List // method. -func (client *PrivateEndpointConnectionsClient) List(resourceGroupName string, accountName string, options *PrivateEndpointConnectionsClientListOptions) *runtime.Pager[PrivateEndpointConnectionsClientListResponse] { +func (client *PrivateEndpointConnectionsClient) NewListPager(resourceGroupName string, accountName string, options *PrivateEndpointConnectionsClientListOptions) *runtime.Pager[PrivateEndpointConnectionsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[PrivateEndpointConnectionsClientListResponse]{ More: func(page PrivateEndpointConnectionsClientListResponse) bool { return false diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_queue_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_queue_client.go index 2b361dea19ab..39ae5a7a4f19 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_queue_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_queue_client.go @@ -235,13 +235,13 @@ func (client *QueueClient) getHandleResponse(resp *http.Response) (QueueClientGe return result, nil } -// List - Gets a list of all the queues under the specified storage account +// NewListPager - Gets a list of all the queues under the specified storage account // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. // accountName - The name of the storage account within the specified resource group. Storage account names must be between // 3 and 24 characters in length and use numbers and lower-case letters only. // options - QueueClientListOptions contains the optional parameters for the QueueClient.List method. -func (client *QueueClient) List(resourceGroupName string, accountName string, options *QueueClientListOptions) *runtime.Pager[QueueClientListResponse] { +func (client *QueueClient) NewListPager(resourceGroupName string, accountName string, options *QueueClientListOptions) *runtime.Pager[QueueClientListResponse] { return runtime.NewPager(runtime.PageProcessor[QueueClientListResponse]{ More: func(page QueueClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_skus_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_skus_client.go index 64047dc157fd..bf3ae1f0acac 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_skus_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_skus_client.go @@ -54,10 +54,10 @@ func NewSKUsClient(subscriptionID string, credential azcore.TokenCredential, opt return client, nil } -// List - Lists the available SKUs supported by Microsoft.Storage for given subscription. +// NewListPager - Lists the available SKUs supported by Microsoft.Storage for given subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - SKUsClientListOptions contains the optional parameters for the SKUsClient.List method. -func (client *SKUsClient) List(options *SKUsClientListOptions) *runtime.Pager[SKUsClientListResponse] { +func (client *SKUsClient) NewListPager(options *SKUsClientListOptions) *runtime.Pager[SKUsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[SKUsClientListResponse]{ More: func(page SKUsClientListResponse) bool { return false diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_table_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_table_client.go index 5b7760d766b3..a3a1098404d7 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_table_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_table_client.go @@ -234,13 +234,13 @@ func (client *TableClient) getHandleResponse(resp *http.Response) (TableClientGe return result, nil } -// List - Gets a list of all the tables under the specified storage account +// NewListPager - Gets a list of all the tables under the specified storage account // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. // accountName - The name of the storage account within the specified resource group. Storage account names must be between // 3 and 24 characters in length and use numbers and lower-case letters only. // options - TableClientListOptions contains the optional parameters for the TableClient.List method. -func (client *TableClient) List(resourceGroupName string, accountName string, options *TableClientListOptions) *runtime.Pager[TableClientListResponse] { +func (client *TableClient) NewListPager(resourceGroupName string, accountName string, options *TableClientListOptions) *runtime.Pager[TableClientListResponse] { return runtime.NewPager(runtime.PageProcessor[TableClientListResponse]{ More: func(page TableClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_usages_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_usages_client.go index 32b012770b08..03ec467f752c 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_usages_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_usages_client.go @@ -54,11 +54,11 @@ func NewUsagesClient(subscriptionID string, credential azcore.TokenCredential, o return client, nil } -// ListByLocation - Gets the current usage count and the limit for the resources of the location under the subscription. +// NewListByLocationPager - Gets the current usage count and the limit for the resources of the location under the subscription. // If the operation fails it returns an *azcore.ResponseError type. // location - The location of the Azure Storage resource. // options - UsagesClientListByLocationOptions contains the optional parameters for the UsagesClient.ListByLocation method. -func (client *UsagesClient) ListByLocation(location string, options *UsagesClientListByLocationOptions) *runtime.Pager[UsagesClientListByLocationResponse] { +func (client *UsagesClient) NewListByLocationPager(location string, options *UsagesClientListByLocationOptions) *runtime.Pager[UsagesClientListByLocationResponse] { return runtime.NewPager(runtime.PageProcessor[UsagesClientListByLocationResponse]{ More: func(page UsagesClientListByLocationResponse) bool { return false