From 2ac677fdd9a72474afa47635f7d9edea74b7115b Mon Sep 17 00:00:00 2001 From: Jiahui Peng <46921893+Alancere@users.noreply.github.com> Date: Mon, 18 Apr 2022 14:39:51 +0800 Subject: [PATCH] Release refresh all package R17 (#17635) * [Release] sdk/resourcemanager/videoanalyzer/armvideoanalyzer/0.4.0 generation from spec commit: f92aaf88f4c9d1ffb9a014eba196d887a9288c3a * [Release] sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/0.4.0 generation from spec commit: f92aaf88f4c9d1ffb9a014eba196d887a9288c3a * [Release] sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/0.4.0 generation from spec commit: f92aaf88f4c9d1ffb9a014eba196d887a9288c3a * [Release] sdk/resourcemanager/webpubsub/armwebpubsub/0.4.0 generation from spec commit: f92aaf88f4c9d1ffb9a014eba196d887a9288c3a * [Release] sdk/resourcemanager/windowsesu/armwindowsesu/0.4.0 generation from spec commit: f92aaf88f4c9d1ffb9a014eba196d887a9288c3a * [Release] sdk/resourcemanager/windowsiot/armwindowsiot/0.4.0 generation from spec commit: f92aaf88f4c9d1ffb9a014eba196d887a9288c3a * [Release] sdk/resourcemanager/workloadmonitor/armworkloadmonitor/0.4.0 generation from spec commit: f92aaf88f4c9d1ffb9a014eba196d887a9288c3a --- .../armvideoanalyzer/CHANGELOG.md | 20 +++++++++++ .../armvideoanalyzer/autorest.md | 6 ++-- ...ated_example_accesspolicies_client_test.go | 4 +-- ...nerated_example_edgemodules_client_test.go | 4 +-- ...rated_example_livepipelines_client_test.go | 4 +-- ...erated_example_pipelinejobs_client_test.go | 4 +-- ..._example_pipelinetopologies_client_test.go | 4 +-- ...ze_generated_example_videos_client_test.go | 4 +-- .../zz_generated_accesspolicies_client.go | 4 +-- .../zz_generated_constants.go | 2 +- .../zz_generated_edgemodules_client.go | 4 +-- .../zz_generated_livepipelines_client.go | 4 +-- .../zz_generated_pipelinejobs_client.go | 4 +-- .../zz_generated_pipelinetopologies_client.go | 5 +-- .../zz_generated_videos_client.go | 4 +-- .../CHANGELOG.md | 16 +++++++++ .../armvirtualmachineimagebuilder/autorest.md | 6 ++-- ...enerated_example_operations_client_test.go | 4 +-- ...irtualmachineimagetemplates_client_test.go | 12 +++---- .../zz_generated_constants.go | 2 +- .../zz_generated_operations_client.go | 4 +-- ...ted_virtualmachineimagetemplates_client.go | 12 +++---- .../armvmwarecloudsimple/CHANGELOG.md | 36 +++++++++++++++++++ .../armvmwarecloudsimple/autorest.md | 6 ++-- ...ample_customizationpolicies_client_test.go | 4 +-- ...example_dedicatedcloudnodes_client_test.go | 8 ++--- ...mple_dedicatedcloudservices_client_test.go | 8 ++--- ...enerated_example_operations_client_test.go | 4 +-- ...rated_example_privateclouds_client_test.go | 4 +-- ...rated_example_resourcepools_client_test.go | 4 +-- ...ed_example_skusavailability_client_test.go | 4 +-- ...ze_generated_example_usages_client_test.go | 4 +-- ...ted_example_virtualmachines_client_test.go | 8 ++--- ...ple_virtualmachinetemplates_client_test.go | 4 +-- ...ted_example_virtualnetworks_client_test.go | 4 +-- .../zz_generated_constants.go | 2 +- ..._generated_customizationpolicies_client.go | 4 +-- ...zz_generated_dedicatedcloudnodes_client.go | 8 ++--- ...generated_dedicatedcloudservices_client.go | 8 ++--- .../zz_generated_operations_client.go | 4 +-- .../zz_generated_privateclouds_client.go | 4 +-- .../zz_generated_resourcepools_client.go | 4 +-- .../zz_generated_skusavailability_client.go | 4 +-- .../zz_generated_usages_client.go | 4 +-- .../zz_generated_virtualmachines_client.go | 8 ++--- ...enerated_virtualmachinetemplates_client.go | 4 +-- .../zz_generated_virtualnetworks_client.go | 4 +-- .../webpubsub/armwebpubsub/CHANGELOG.md | 24 +++++++++++++ .../webpubsub/armwebpubsub/autorest.md | 6 ++-- ...enerated_example_operations_client_test.go | 4 +-- ...ze_generated_example_usages_client_test.go | 4 +-- ...generated_example_webpubsub_client_test.go | 8 ++--- ...rated_example_webpubsubhubs_client_test.go | 4 +-- ...bprivateendpointconnections_client_test.go | 4 +-- ...bpubsubprivatelinkresources_client_test.go | 4 +-- ...bsharedprivatelinkresources_client_test.go | 4 +-- .../armwebpubsub/zz_generated_client.go | 8 ++--- .../armwebpubsub/zz_generated_constants.go | 2 +- .../armwebpubsub/zz_generated_hubs_client.go | 4 +-- .../zz_generated_operations_client.go | 4 +-- ...rated_privateendpointconnections_client.go | 4 +-- ...z_generated_privatelinkresources_client.go | 4 +-- ...rated_sharedprivatelinkresources_client.go | 4 +-- .../zz_generated_usages_client.go | 4 +-- .../windowsesu/armwindowsesu/CHANGELOG.md | 14 ++++++++ .../windowsesu/armwindowsesu/autorest.md | 6 ++-- ...mple_multipleactivationkeys_client_test.go | 8 ++--- ...enerated_example_operations_client_test.go | 4 +-- .../armwindowsesu/zz_generated_constants.go | 2 +- ...generated_multipleactivationkeys_client.go | 8 ++--- .../zz_generated_operations_client.go | 4 +-- .../windowsiot/armwindowsiot/CHANGELOG.md | 14 ++++++++ .../windowsiot/armwindowsiot/autorest.md | 6 ++-- ...enerated_example_operations_client_test.go | 4 +-- ..._generated_example_services_client_test.go | 8 ++--- .../armwindowsiot/zz_generated_constants.go | 2 +- .../zz_generated_operations_client.go | 4 +-- .../zz_generated_services_client.go | 8 ++--- .../armworkloadmonitor/CHANGELOG.md | 14 ++++++++ .../armworkloadmonitor/autorest.md | 6 ++-- ...ated_example_healthmonitors_client_test.go | 8 ++--- ...enerated_example_operations_client_test.go | 4 +-- .../zz_generated_constants.go | 2 +- .../zz_generated_healthmonitors_client.go | 12 +++---- .../zz_generated_operations_client.go | 4 +-- 85 files changed, 333 insertions(+), 194 deletions(-) diff --git a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/CHANGELOG.md b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/CHANGELOG.md index 7a8c4ef48b3a..cfd41a8eb76b 100644 --- a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/CHANGELOG.md +++ b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/CHANGELOG.md @@ -1,5 +1,25 @@ # Release History +## 0.4.0 (2022-04-18) +### Breaking Changes + +- Function `*LivePipelinesClient.List` has been removed +- Function `*VideosClient.List` has been removed +- Function `*PipelineTopologiesClient.List` has been removed +- Function `*AccessPoliciesClient.List` has been removed +- Function `*PipelineJobsClient.List` has been removed +- Function `*EdgeModulesClient.List` has been removed + +### Features Added + +- New function `*PipelineJobsClient.NewListPager(string, string, *PipelineJobsClientListOptions) *runtime.Pager[PipelineJobsClientListResponse]` +- New function `*AccessPoliciesClient.NewListPager(string, string, *AccessPoliciesClientListOptions) *runtime.Pager[AccessPoliciesClientListResponse]` +- New function `*EdgeModulesClient.NewListPager(string, string, *EdgeModulesClientListOptions) *runtime.Pager[EdgeModulesClientListResponse]` +- New function `*PipelineTopologiesClient.NewListPager(string, string, *PipelineTopologiesClientListOptions) *runtime.Pager[PipelineTopologiesClientListResponse]` +- New function `*VideosClient.NewListPager(string, string, *VideosClientListOptions) *runtime.Pager[VideosClientListResponse]` +- New function `*LivePipelinesClient.NewListPager(string, string, *LivePipelinesClientListOptions) *runtime.Pager[LivePipelinesClientListResponse]` + + ## 0.3.0 (2022-04-13) ### Breaking Changes diff --git a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/autorest.md b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/autorest.md index 8e13b404291b..1c7c86aab4aa 100644 --- a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/autorest.md +++ b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/videoanalyzer/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/videoanalyzer/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/videoanalyzer/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/videoanalyzer/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/videoanalyzer/armvideoanalyzer/ze_generated_example_accesspolicies_client_test.go b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_accesspolicies_client_test.go index af2885ab2881..6790527a9996 100644 --- a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_accesspolicies_client_test.go +++ b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_accesspolicies_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/videoanalyzer/resource-manager/Microsoft.Media/preview/2021-11-01-preview/examples/access-policy-list.json -func ExampleAccessPoliciesClient_List() { +func ExampleAccessPoliciesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleAccessPoliciesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", &armvideoanalyzer.AccessPoliciesClientListOptions{Top: to.Ptr[int32](2)}) for pager.More() { diff --git a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_edgemodules_client_test.go b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_edgemodules_client_test.go index 60b25c798434..27beb8682630 100644 --- a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_edgemodules_client_test.go +++ b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_edgemodules_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/videoanalyzer/resource-manager/Microsoft.Media/preview/2021-11-01-preview/examples/edge-modules-list.json -func ExampleEdgeModulesClient_List() { +func ExampleEdgeModulesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleEdgeModulesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", &armvideoanalyzer.EdgeModulesClientListOptions{Top: nil}) for pager.More() { diff --git a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_livepipelines_client_test.go b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_livepipelines_client_test.go index cf8abf529910..216092a4e880 100644 --- a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_livepipelines_client_test.go +++ b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_livepipelines_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/videoanalyzer/resource-manager/Microsoft.Media/preview/2021-11-01-preview/examples/live-pipeline-list.json -func ExampleLivePipelinesClient_List() { +func ExampleLivePipelinesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleLivePipelinesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", &armvideoanalyzer.LivePipelinesClientListOptions{Filter: nil, Top: to.Ptr[int32](2), diff --git a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_pipelinejobs_client_test.go b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_pipelinejobs_client_test.go index 48006af9715f..7d4302e6a2eb 100644 --- a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_pipelinejobs_client_test.go +++ b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_pipelinejobs_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/videoanalyzer/resource-manager/Microsoft.Media/preview/2021-11-01-preview/examples/pipeline-job-list.json -func ExamplePipelineJobsClient_List() { +func ExamplePipelineJobsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExamplePipelineJobsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", &armvideoanalyzer.PipelineJobsClientListOptions{Filter: nil, Top: to.Ptr[int32](2), diff --git a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_pipelinetopologies_client_test.go b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_pipelinetopologies_client_test.go index dea41d6941c3..4f8f74e6d199 100644 --- a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_pipelinetopologies_client_test.go +++ b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_pipelinetopologies_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/videoanalyzer/resource-manager/Microsoft.Media/preview/2021-11-01-preview/examples/pipeline-topology-list.json -func ExamplePipelineTopologiesClient_List() { +func ExamplePipelineTopologiesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExamplePipelineTopologiesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", &armvideoanalyzer.PipelineTopologiesClientListOptions{Filter: nil, Top: to.Ptr[int32](2), diff --git a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_videos_client_test.go b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_videos_client_test.go index 328b09bd773d..b68c0284148e 100644 --- a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_videos_client_test.go +++ b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/ze_generated_example_videos_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/videoanalyzer/resource-manager/Microsoft.Media/preview/2021-11-01-preview/examples/video-list.json -func ExampleVideosClient_List() { +func ExampleVideosClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleVideosClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", &armvideoanalyzer.VideosClientListOptions{Top: to.Ptr[int32](2)}) for pager.More() { diff --git a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_accesspolicies_client.go b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_accesspolicies_client.go index e43c1d0f3d25..b5975d79ba3f 100644 --- a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_accesspolicies_client.go +++ b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_accesspolicies_client.go @@ -228,12 +228,12 @@ func (client *AccessPoliciesClient) getHandleResponse(resp *http.Response) (Acce return result, nil } -// List - Retrieves all existing access policy resources, along with their JSON representations. +// NewListPager - Retrieves all existing access policy resources, along with their JSON representations. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group. The name is case insensitive. // accountName - The Azure Video Analyzer account name. // options - AccessPoliciesClientListOptions contains the optional parameters for the AccessPoliciesClient.List method. -func (client *AccessPoliciesClient) List(resourceGroupName string, accountName string, options *AccessPoliciesClientListOptions) *runtime.Pager[AccessPoliciesClientListResponse] { +func (client *AccessPoliciesClient) NewListPager(resourceGroupName string, accountName string, options *AccessPoliciesClientListOptions) *runtime.Pager[AccessPoliciesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[AccessPoliciesClientListResponse]{ More: func(page AccessPoliciesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_constants.go b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_constants.go index b885ec4c10ef..58894d2b494e 100644 --- a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_constants.go +++ b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_constants.go @@ -10,7 +10,7 @@ package armvideoanalyzer const ( moduleName = "armvideoanalyzer" - moduleVersion = "v0.3.0" + moduleVersion = "v0.4.0" ) // AccessPolicyEccAlgo - Elliptical curve algorithm to be used: ES256, ES384 or ES512. diff --git a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_edgemodules_client.go b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_edgemodules_client.go index fd7c5cc4aaea..059d266a3407 100644 --- a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_edgemodules_client.go +++ b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_edgemodules_client.go @@ -235,12 +235,12 @@ func (client *EdgeModulesClient) getHandleResponse(resp *http.Response) (EdgeMod return result, nil } -// List - List all existing edge module resources, along with their JSON representations. +// NewListPager - List all existing edge module resources, along with their JSON representations. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group. The name is case insensitive. // accountName - The Azure Video Analyzer account name. // options - EdgeModulesClientListOptions contains the optional parameters for the EdgeModulesClient.List method. -func (client *EdgeModulesClient) List(resourceGroupName string, accountName string, options *EdgeModulesClientListOptions) *runtime.Pager[EdgeModulesClientListResponse] { +func (client *EdgeModulesClient) NewListPager(resourceGroupName string, accountName string, options *EdgeModulesClientListOptions) *runtime.Pager[EdgeModulesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[EdgeModulesClientListResponse]{ More: func(page EdgeModulesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_livepipelines_client.go b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_livepipelines_client.go index 922381a9592b..afa102fa3665 100644 --- a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_livepipelines_client.go +++ b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_livepipelines_client.go @@ -361,12 +361,12 @@ func (client *LivePipelinesClient) getHandleResponse(resp *http.Response) (LiveP return result, nil } -// List - Retrieves a list of live pipelines that have been created, along with their JSON representations. +// NewListPager - Retrieves a list of live pipelines that have been created, along with their JSON representations. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group. The name is case insensitive. // accountName - The Azure Video Analyzer account name. // options - LivePipelinesClientListOptions contains the optional parameters for the LivePipelinesClient.List method. -func (client *LivePipelinesClient) List(resourceGroupName string, accountName string, options *LivePipelinesClientListOptions) *runtime.Pager[LivePipelinesClientListResponse] { +func (client *LivePipelinesClient) NewListPager(resourceGroupName string, accountName string, options *LivePipelinesClientListOptions) *runtime.Pager[LivePipelinesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[LivePipelinesClientListResponse]{ More: func(page LivePipelinesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_pipelinejobs_client.go b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_pipelinejobs_client.go index b4d0817dda0c..9f61918f251b 100644 --- a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_pipelinejobs_client.go +++ b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_pipelinejobs_client.go @@ -295,12 +295,12 @@ func (client *PipelineJobsClient) getHandleResponse(resp *http.Response) (Pipeli return result, nil } -// List - Retrieves a list of all live pipelines that have been created, along with their JSON representations. +// NewListPager - Retrieves a list of all live pipelines that have been created, along with their JSON representations. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group. The name is case insensitive. // accountName - The Azure Video Analyzer account name. // options - PipelineJobsClientListOptions contains the optional parameters for the PipelineJobsClient.List method. -func (client *PipelineJobsClient) List(resourceGroupName string, accountName string, options *PipelineJobsClientListOptions) *runtime.Pager[PipelineJobsClientListResponse] { +func (client *PipelineJobsClient) NewListPager(resourceGroupName string, accountName string, options *PipelineJobsClientListOptions) *runtime.Pager[PipelineJobsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[PipelineJobsClientListResponse]{ More: func(page PipelineJobsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_pipelinetopologies_client.go b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_pipelinetopologies_client.go index bde0731e56bf..e49981803a92 100644 --- a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_pipelinetopologies_client.go +++ b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_pipelinetopologies_client.go @@ -234,12 +234,13 @@ func (client *PipelineTopologiesClient) getHandleResponse(resp *http.Response) ( return result, nil } -// List - Retrieves a list of pipeline topologies that have been added to the account, if any, along with their JSON representation. +// NewListPager - Retrieves a list of pipeline topologies that have been added to the account, if any, along with their JSON +// representation. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group. The name is case insensitive. // accountName - The Azure Video Analyzer account name. // options - PipelineTopologiesClientListOptions contains the optional parameters for the PipelineTopologiesClient.List method. -func (client *PipelineTopologiesClient) List(resourceGroupName string, accountName string, options *PipelineTopologiesClientListOptions) *runtime.Pager[PipelineTopologiesClientListResponse] { +func (client *PipelineTopologiesClient) NewListPager(resourceGroupName string, accountName string, options *PipelineTopologiesClientListOptions) *runtime.Pager[PipelineTopologiesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[PipelineTopologiesClientListResponse]{ More: func(page PipelineTopologiesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_videos_client.go b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_videos_client.go index bd66ed463ee0..dea7ae5f3357 100644 --- a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_videos_client.go +++ b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/zz_generated_videos_client.go @@ -227,12 +227,12 @@ func (client *VideosClient) getHandleResponse(resp *http.Response) (VideosClient return result, nil } -// List - Retrieves a list of video resources that have been created, along with their JSON representations. +// NewListPager - Retrieves a list of video resources that have been created, along with their JSON representations. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group. The name is case insensitive. // accountName - The Azure Video Analyzer account name. // options - VideosClientListOptions contains the optional parameters for the VideosClient.List method. -func (client *VideosClient) List(resourceGroupName string, accountName string, options *VideosClientListOptions) *runtime.Pager[VideosClientListResponse] { +func (client *VideosClient) NewListPager(resourceGroupName string, accountName string, options *VideosClientListOptions) *runtime.Pager[VideosClientListResponse] { return runtime.NewPager(runtime.PageProcessor[VideosClientListResponse]{ More: func(page VideosClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/CHANGELOG.md b/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/CHANGELOG.md index fae5af4f204f..d7756e8732f3 100644 --- a/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/CHANGELOG.md +++ b/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/CHANGELOG.md @@ -1,5 +1,21 @@ # Release History +## 0.4.0 (2022-04-18) +### Breaking Changes + +- Function `*VirtualMachineImageTemplatesClient.List` has been removed +- Function `*OperationsClient.List` has been removed +- Function `*VirtualMachineImageTemplatesClient.ListByResourceGroup` has been removed +- Function `*VirtualMachineImageTemplatesClient.ListRunOutputs` has been removed + +### Features Added + +- New function `*VirtualMachineImageTemplatesClient.NewListRunOutputsPager(string, string, *VirtualMachineImageTemplatesClientListRunOutputsOptions) *runtime.Pager[VirtualMachineImageTemplatesClientListRunOutputsResponse]` +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` +- New function `*VirtualMachineImageTemplatesClient.NewListPager(*VirtualMachineImageTemplatesClientListOptions) *runtime.Pager[VirtualMachineImageTemplatesClientListResponse]` +- New function `*VirtualMachineImageTemplatesClient.NewListByResourceGroupPager(string, *VirtualMachineImageTemplatesClientListByResourceGroupOptions) *runtime.Pager[VirtualMachineImageTemplatesClientListByResourceGroupResponse]` + + ## 0.3.0 (2022-04-13) ### Breaking Changes diff --git a/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/autorest.md b/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/autorest.md index 4dafa63326a3..fa674ac980fe 100644 --- a/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/autorest.md +++ b/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/imagebuilder/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/imagebuilder/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/imagebuilder/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/imagebuilder/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/virtualmachineimagebuilder/armvirtualmachineimagebuilder/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/ze_generated_example_operations_client_test.go index fcf534dfc85b..f8b70bdd0fcd 100644 --- a/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/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/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-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/virtualmachineimagebuilder/armvirtualmachineimagebuilder/ze_generated_example_virtualmachineimagetemplates_client_test.go b/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/ze_generated_example_virtualmachineimagetemplates_client_test.go index 23840d24b59c..5f3f6e1c31ea 100644 --- a/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/ze_generated_example_virtualmachineimagetemplates_client_test.go +++ b/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/ze_generated_example_virtualmachineimagetemplates_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/ListImageTemplates.json -func ExampleVirtualMachineImageTemplatesClient_List() { +func ExampleVirtualMachineImageTemplatesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleVirtualMachineImageTemplatesClient_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 ExampleVirtualMachineImageTemplatesClient_List() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/ListImageTemplatesByRg.json -func ExampleVirtualMachineImageTemplatesClient_ListByResourceGroup() { +func ExampleVirtualMachineImageTemplatesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -59,7 +59,7 @@ func ExampleVirtualMachineImageTemplatesClient_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) @@ -291,7 +291,7 @@ func ExampleVirtualMachineImageTemplatesClient_BeginCancel() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/ListRunOutputs.json -func ExampleVirtualMachineImageTemplatesClient_ListRunOutputs() { +func ExampleVirtualMachineImageTemplatesClient_NewListRunOutputsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -303,7 +303,7 @@ func ExampleVirtualMachineImageTemplatesClient_ListRunOutputs() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListRunOutputs("", + pager := client.NewListRunOutputsPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/zz_generated_constants.go b/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/zz_generated_constants.go index 1675a2c418b7..2a4536403127 100644 --- a/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/zz_generated_constants.go +++ b/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/zz_generated_constants.go @@ -10,7 +10,7 @@ package armvirtualmachineimagebuilder const ( moduleName = "armvirtualmachineimagebuilder" - moduleVersion = "v0.3.0" + moduleVersion = "v0.4.0" ) // CreatedByType - The type of identity that created the resource. diff --git a/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/zz_generated_operations_client.go b/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/zz_generated_operations_client.go index 3feb7b3e0049..7a342e6acd9b 100644 --- a/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/zz_generated_operations_client.go +++ b/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/zz_generated_operations_client.go @@ -48,10 +48,10 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO return client, nil } -// List - Lists available operations for the Microsoft.VirtualMachineImages provider +// NewListPager - Lists available operations for the Microsoft.VirtualMachineImages 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/virtualmachineimagebuilder/armvirtualmachineimagebuilder/zz_generated_virtualmachineimagetemplates_client.go b/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/zz_generated_virtualmachineimagetemplates_client.go index ba4883f60119..20cc622c228d 100644 --- a/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/zz_generated_virtualmachineimagetemplates_client.go +++ b/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/zz_generated_virtualmachineimagetemplates_client.go @@ -362,11 +362,11 @@ func (client *VirtualMachineImageTemplatesClient) getRunOutputHandleResponse(res return result, nil } -// List - Gets information about the VM image templates associated with the subscription. +// NewListPager - Gets information about the VM image templates associated with the subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - VirtualMachineImageTemplatesClientListOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.List // method. -func (client *VirtualMachineImageTemplatesClient) List(options *VirtualMachineImageTemplatesClientListOptions) *runtime.Pager[VirtualMachineImageTemplatesClientListResponse] { +func (client *VirtualMachineImageTemplatesClient) NewListPager(options *VirtualMachineImageTemplatesClientListOptions) *runtime.Pager[VirtualMachineImageTemplatesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[VirtualMachineImageTemplatesClientListResponse]{ More: func(page VirtualMachineImageTemplatesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -421,12 +421,12 @@ func (client *VirtualMachineImageTemplatesClient) listHandleResponse(resp *http. return result, nil } -// ListByResourceGroup - Gets information about the VM image templates associated with the specified resource group. +// NewListByResourceGroupPager - Gets information about the VM image templates associated with the specified resource group. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group. // options - VirtualMachineImageTemplatesClientListByResourceGroupOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.ListByResourceGroup // method. -func (client *VirtualMachineImageTemplatesClient) ListByResourceGroup(resourceGroupName string, options *VirtualMachineImageTemplatesClientListByResourceGroupOptions) *runtime.Pager[VirtualMachineImageTemplatesClientListByResourceGroupResponse] { +func (client *VirtualMachineImageTemplatesClient) NewListByResourceGroupPager(resourceGroupName string, options *VirtualMachineImageTemplatesClientListByResourceGroupOptions) *runtime.Pager[VirtualMachineImageTemplatesClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[VirtualMachineImageTemplatesClientListByResourceGroupResponse]{ More: func(page VirtualMachineImageTemplatesClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -485,13 +485,13 @@ func (client *VirtualMachineImageTemplatesClient) listByResourceGroupHandleRespo return result, nil } -// ListRunOutputs - List all run outputs for the specified Image Template resource +// NewListRunOutputsPager - List all run outputs for the specified Image Template resource // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group. // imageTemplateName - The name of the image Template // options - VirtualMachineImageTemplatesClientListRunOutputsOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.ListRunOutputs // method. -func (client *VirtualMachineImageTemplatesClient) ListRunOutputs(resourceGroupName string, imageTemplateName string, options *VirtualMachineImageTemplatesClientListRunOutputsOptions) *runtime.Pager[VirtualMachineImageTemplatesClientListRunOutputsResponse] { +func (client *VirtualMachineImageTemplatesClient) NewListRunOutputsPager(resourceGroupName string, imageTemplateName string, options *VirtualMachineImageTemplatesClientListRunOutputsOptions) *runtime.Pager[VirtualMachineImageTemplatesClientListRunOutputsResponse] { return runtime.NewPager(runtime.PageProcessor[VirtualMachineImageTemplatesClientListRunOutputsResponse]{ More: func(page VirtualMachineImageTemplatesClientListRunOutputsResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/CHANGELOG.md b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/CHANGELOG.md index b1304f0bb6a3..2d8f57772066 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/CHANGELOG.md +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/CHANGELOG.md @@ -1,5 +1,41 @@ # Release History +## 0.4.0 (2022-04-18) +### Breaking Changes + +- Function `*ResourcePoolsClient.List` has been removed +- Function `*VirtualMachinesClient.ListByResourceGroup` has been removed +- Function `*VirtualNetworksClient.List` has been removed +- Function `*DedicatedCloudServicesClient.ListByResourceGroup` has been removed +- Function `*CustomizationPoliciesClient.List` has been removed +- Function `*SKUsAvailabilityClient.List` has been removed +- Function `*DedicatedCloudNodesClient.ListBySubscription` has been removed +- Function `*OperationsClient.List` has been removed +- Function `*VirtualMachinesClient.ListBySubscription` has been removed +- Function `*DedicatedCloudServicesClient.ListBySubscription` has been removed +- Function `*VirtualMachineTemplatesClient.List` has been removed +- Function `*DedicatedCloudNodesClient.ListByResourceGroup` has been removed +- Function `*PrivateCloudsClient.List` has been removed +- Function `*UsagesClient.List` has been removed + +### Features Added + +- New function `*DedicatedCloudServicesClient.NewListByResourceGroupPager(string, *DedicatedCloudServicesClientListByResourceGroupOptions) *runtime.Pager[DedicatedCloudServicesClientListByResourceGroupResponse]` +- New function `*DedicatedCloudNodesClient.NewListByResourceGroupPager(string, *DedicatedCloudNodesClientListByResourceGroupOptions) *runtime.Pager[DedicatedCloudNodesClientListByResourceGroupResponse]` +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` +- New function `*VirtualNetworksClient.NewListPager(string, string, string, *VirtualNetworksClientListOptions) *runtime.Pager[VirtualNetworksClientListResponse]` +- New function `*VirtualMachinesClient.NewListByResourceGroupPager(string, *VirtualMachinesClientListByResourceGroupOptions) *runtime.Pager[VirtualMachinesClientListByResourceGroupResponse]` +- New function `*SKUsAvailabilityClient.NewListPager(string, *SKUsAvailabilityClientListOptions) *runtime.Pager[SKUsAvailabilityClientListResponse]` +- New function `*PrivateCloudsClient.NewListPager(string, *PrivateCloudsClientListOptions) *runtime.Pager[PrivateCloudsClientListResponse]` +- New function `*DedicatedCloudServicesClient.NewListBySubscriptionPager(*DedicatedCloudServicesClientListBySubscriptionOptions) *runtime.Pager[DedicatedCloudServicesClientListBySubscriptionResponse]` +- New function `*UsagesClient.NewListPager(string, *UsagesClientListOptions) *runtime.Pager[UsagesClientListResponse]` +- New function `*VirtualMachinesClient.NewListBySubscriptionPager(*VirtualMachinesClientListBySubscriptionOptions) *runtime.Pager[VirtualMachinesClientListBySubscriptionResponse]` +- New function `*ResourcePoolsClient.NewListPager(string, string, *ResourcePoolsClientListOptions) *runtime.Pager[ResourcePoolsClientListResponse]` +- New function `*DedicatedCloudNodesClient.NewListBySubscriptionPager(*DedicatedCloudNodesClientListBySubscriptionOptions) *runtime.Pager[DedicatedCloudNodesClientListBySubscriptionResponse]` +- New function `*CustomizationPoliciesClient.NewListPager(string, string, *CustomizationPoliciesClientListOptions) *runtime.Pager[CustomizationPoliciesClientListResponse]` +- New function `*VirtualMachineTemplatesClient.NewListPager(string, string, string, *VirtualMachineTemplatesClientListOptions) *runtime.Pager[VirtualMachineTemplatesClientListResponse]` + + ## 0.3.0 (2022-04-13) ### Breaking Changes diff --git a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/autorest.md b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/autorest.md index 44381e3e45fe..8e196db33080 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/autorest.md +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/vmwarecloudsimple/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/vmwarecloudsimple/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/vmwarecloudsimple/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/vmwarecloudsimple/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/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_customizationpolicies_client_test.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_customizationpolicies_client_test.go index f47908dfc450..001e05994fab 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_customizationpolicies_client_test.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_customizationpolicies_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListCustomizationPolicies.json -func ExampleCustomizationPoliciesClient_List() { +func ExampleCustomizationPoliciesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleCustomizationPoliciesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", &armvmwarecloudsimple.CustomizationPoliciesClientListOptions{Filter: nil}) for pager.More() { diff --git a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_dedicatedcloudnodes_client_test.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_dedicatedcloudnodes_client_test.go index bc7f7e1735ab..3ffa9be0feb2 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_dedicatedcloudnodes_client_test.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_dedicatedcloudnodes_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListDedicatedCloudNodes.json -func ExampleDedicatedCloudNodesClient_ListBySubscription() { +func ExampleDedicatedCloudNodesClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleDedicatedCloudNodesClient_ListBySubscription() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListBySubscription(&armvmwarecloudsimple.DedicatedCloudNodesClientListBySubscriptionOptions{Filter: nil, + pager := client.NewListBySubscriptionPager(&armvmwarecloudsimple.DedicatedCloudNodesClientListBySubscriptionOptions{Filter: nil, Top: nil, SkipToken: nil, }) @@ -50,7 +50,7 @@ func ExampleDedicatedCloudNodesClient_ListBySubscription() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListRGDedicatedCloudNodes.json -func ExampleDedicatedCloudNodesClient_ListByResourceGroup() { +func ExampleDedicatedCloudNodesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -62,7 +62,7 @@ func ExampleDedicatedCloudNodesClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", &armvmwarecloudsimple.DedicatedCloudNodesClientListByResourceGroupOptions{Filter: nil, Top: nil, SkipToken: nil, diff --git a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_dedicatedcloudservices_client_test.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_dedicatedcloudservices_client_test.go index 97c9c4026da3..73b2016f66bd 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_dedicatedcloudservices_client_test.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_dedicatedcloudservices_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListDedicatedCloudServices.json -func ExampleDedicatedCloudServicesClient_ListBySubscription() { +func ExampleDedicatedCloudServicesClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleDedicatedCloudServicesClient_ListBySubscription() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListBySubscription(&armvmwarecloudsimple.DedicatedCloudServicesClientListBySubscriptionOptions{Filter: nil, + pager := client.NewListBySubscriptionPager(&armvmwarecloudsimple.DedicatedCloudServicesClientListBySubscriptionOptions{Filter: nil, Top: nil, SkipToken: nil, }) @@ -50,7 +50,7 @@ func ExampleDedicatedCloudServicesClient_ListBySubscription() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListRGDedicatedCloudServices.json -func ExampleDedicatedCloudServicesClient_ListByResourceGroup() { +func ExampleDedicatedCloudServicesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -62,7 +62,7 @@ func ExampleDedicatedCloudServicesClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", &armvmwarecloudsimple.DedicatedCloudServicesClientListByResourceGroupOptions{Filter: nil, Top: nil, SkipToken: nil, diff --git a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_operations_client_test.go index 4d5ab5f280ae..cd28d3668967 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/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/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-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/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_privateclouds_client_test.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_privateclouds_client_test.go index 64b02967870c..fe78b26eb136 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_privateclouds_client_test.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_privateclouds_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListPrivateCloudInLocation.json -func ExamplePrivateCloudsClient_List() { +func ExamplePrivateCloudsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExamplePrivateCloudsClient_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/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_resourcepools_client_test.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_resourcepools_client_test.go index 71309697aa04..4fdf35c45328 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_resourcepools_client_test.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_resourcepools_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListResourcePools.json -func ExampleResourcePoolsClient_List() { +func ExampleResourcePoolsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleResourcePoolsClient_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/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_skusavailability_client_test.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_skusavailability_client_test.go index 213ecb40b5e3..2c66e83cd8de 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_skusavailability_client_test.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_skusavailability_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListAvailabilities.json -func ExampleSKUsAvailabilityClient_List() { +func ExampleSKUsAvailabilityClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleSKUsAvailabilityClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", &armvmwarecloudsimple.SKUsAvailabilityClientListOptions{SKUID: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) diff --git a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_usages_client_test.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_usages_client_test.go index 1b4c5e39b49c..cc15a3d4f1c5 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_usages_client_test.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/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/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListUsages.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("", &armvmwarecloudsimple.UsagesClientListOptions{Filter: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) diff --git a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_virtualmachines_client_test.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_virtualmachines_client_test.go index 7c391f90f0a5..8675c355751a 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_virtualmachines_client_test.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_virtualmachines_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListVirtualMachines.json -func ExampleVirtualMachinesClient_ListBySubscription() { +func ExampleVirtualMachinesClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleVirtualMachinesClient_ListBySubscription() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListBySubscription(&armvmwarecloudsimple.VirtualMachinesClientListBySubscriptionOptions{Filter: nil, + pager := client.NewListBySubscriptionPager(&armvmwarecloudsimple.VirtualMachinesClientListBySubscriptionOptions{Filter: nil, Top: nil, SkipToken: nil, }) @@ -50,7 +50,7 @@ func ExampleVirtualMachinesClient_ListBySubscription() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListRGVirtualMachines.json -func ExampleVirtualMachinesClient_ListByResourceGroup() { +func ExampleVirtualMachinesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -62,7 +62,7 @@ func ExampleVirtualMachinesClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", &armvmwarecloudsimple.VirtualMachinesClientListByResourceGroupOptions{Filter: nil, Top: nil, SkipToken: nil, diff --git a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_virtualmachinetemplates_client_test.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_virtualmachinetemplates_client_test.go index 2933c5fa34fc..6f75302ddecb 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_virtualmachinetemplates_client_test.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_virtualmachinetemplates_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListVirtualMachineTemplates.json -func ExampleVirtualMachineTemplatesClient_List() { +func ExampleVirtualMachineTemplatesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleVirtualMachineTemplatesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", "", nil) diff --git a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_virtualnetworks_client_test.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_virtualnetworks_client_test.go index 91d58d466105..e266803ca14d 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_virtualnetworks_client_test.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/ze_generated_example_virtualnetworks_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListVirtualNetworks.json -func ExampleVirtualNetworksClient_List() { +func ExampleVirtualNetworksClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleVirtualNetworksClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", "", nil) diff --git a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_constants.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_constants.go index 6748098c476e..39bcf1a75d1f 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_constants.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_constants.go @@ -10,7 +10,7 @@ package armvmwarecloudsimple const ( moduleName = "armvmwarecloudsimple" - moduleVersion = "v0.3.0" + moduleVersion = "v0.4.0" ) // AggregationType - Metric's aggregation type for e.g. (Average, Total) diff --git a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_customizationpolicies_client.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_customizationpolicies_client.go index 0acb5c27563c..61dc7a0078e9 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_customizationpolicies_client.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_customizationpolicies_client.go @@ -115,13 +115,13 @@ func (client *CustomizationPoliciesClient) getHandleResponse(resp *http.Response return result, nil } -// List - Returns list of customization policies in region for private cloud +// NewListPager - Returns list of customization policies in region for private cloud // If the operation fails it returns an *azcore.ResponseError type. // regionID - The region Id (westus, eastus) // pcName - The private cloud name // options - CustomizationPoliciesClientListOptions contains the optional parameters for the CustomizationPoliciesClient.List // method. -func (client *CustomizationPoliciesClient) List(regionID string, pcName string, options *CustomizationPoliciesClientListOptions) *runtime.Pager[CustomizationPoliciesClientListResponse] { +func (client *CustomizationPoliciesClient) NewListPager(regionID string, pcName string, options *CustomizationPoliciesClientListOptions) *runtime.Pager[CustomizationPoliciesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[CustomizationPoliciesClientListResponse]{ More: func(page CustomizationPoliciesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_dedicatedcloudnodes_client.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_dedicatedcloudnodes_client.go index c64a6f7378e3..3c2f5479d280 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_dedicatedcloudnodes_client.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_dedicatedcloudnodes_client.go @@ -221,12 +221,12 @@ func (client *DedicatedCloudNodesClient) getHandleResponse(resp *http.Response) return result, nil } -// ListByResourceGroup - Returns list of dedicate cloud nodes within resource group +// NewListByResourceGroupPager - Returns list of dedicate cloud nodes within resource group // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group // options - DedicatedCloudNodesClientListByResourceGroupOptions contains the optional parameters for the DedicatedCloudNodesClient.ListByResourceGroup // method. -func (client *DedicatedCloudNodesClient) ListByResourceGroup(resourceGroupName string, options *DedicatedCloudNodesClientListByResourceGroupOptions) *runtime.Pager[DedicatedCloudNodesClientListByResourceGroupResponse] { +func (client *DedicatedCloudNodesClient) NewListByResourceGroupPager(resourceGroupName string, options *DedicatedCloudNodesClientListByResourceGroupOptions) *runtime.Pager[DedicatedCloudNodesClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[DedicatedCloudNodesClientListByResourceGroupResponse]{ More: func(page DedicatedCloudNodesClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -294,11 +294,11 @@ func (client *DedicatedCloudNodesClient) listByResourceGroupHandleResponse(resp return result, nil } -// ListBySubscription - Returns list of dedicate cloud nodes within subscription +// NewListBySubscriptionPager - Returns list of dedicate cloud nodes within subscription // If the operation fails it returns an *azcore.ResponseError type. // options - DedicatedCloudNodesClientListBySubscriptionOptions contains the optional parameters for the DedicatedCloudNodesClient.ListBySubscription // method. -func (client *DedicatedCloudNodesClient) ListBySubscription(options *DedicatedCloudNodesClientListBySubscriptionOptions) *runtime.Pager[DedicatedCloudNodesClientListBySubscriptionResponse] { +func (client *DedicatedCloudNodesClient) NewListBySubscriptionPager(options *DedicatedCloudNodesClientListBySubscriptionOptions) *runtime.Pager[DedicatedCloudNodesClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PageProcessor[DedicatedCloudNodesClientListBySubscriptionResponse]{ More: func(page DedicatedCloudNodesClientListBySubscriptionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_dedicatedcloudservices_client.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_dedicatedcloudservices_client.go index 211346fd8e3a..b9e6c5d29cee 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_dedicatedcloudservices_client.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_dedicatedcloudservices_client.go @@ -229,12 +229,12 @@ func (client *DedicatedCloudServicesClient) getHandleResponse(resp *http.Respons return result, nil } -// ListByResourceGroup - Returns list of dedicated cloud services within a resource group +// NewListByResourceGroupPager - Returns list of dedicated cloud services within a resource group // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group // options - DedicatedCloudServicesClientListByResourceGroupOptions contains the optional parameters for the DedicatedCloudServicesClient.ListByResourceGroup // method. -func (client *DedicatedCloudServicesClient) ListByResourceGroup(resourceGroupName string, options *DedicatedCloudServicesClientListByResourceGroupOptions) *runtime.Pager[DedicatedCloudServicesClientListByResourceGroupResponse] { +func (client *DedicatedCloudServicesClient) NewListByResourceGroupPager(resourceGroupName string, options *DedicatedCloudServicesClientListByResourceGroupOptions) *runtime.Pager[DedicatedCloudServicesClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[DedicatedCloudServicesClientListByResourceGroupResponse]{ More: func(page DedicatedCloudServicesClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -302,11 +302,11 @@ func (client *DedicatedCloudServicesClient) listByResourceGroupHandleResponse(re return result, nil } -// ListBySubscription - Returns list of dedicated cloud services within a subscription +// NewListBySubscriptionPager - Returns list of dedicated cloud services within a subscription // If the operation fails it returns an *azcore.ResponseError type. // options - DedicatedCloudServicesClientListBySubscriptionOptions contains the optional parameters for the DedicatedCloudServicesClient.ListBySubscription // method. -func (client *DedicatedCloudServicesClient) ListBySubscription(options *DedicatedCloudServicesClientListBySubscriptionOptions) *runtime.Pager[DedicatedCloudServicesClientListBySubscriptionResponse] { +func (client *DedicatedCloudServicesClient) NewListBySubscriptionPager(options *DedicatedCloudServicesClientListBySubscriptionOptions) *runtime.Pager[DedicatedCloudServicesClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PageProcessor[DedicatedCloudServicesClientListBySubscriptionResponse]{ More: func(page DedicatedCloudServicesClientListBySubscriptionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_operations_client.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_operations_client.go index 45f776f63b1f..46c84ba8e70e 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_operations_client.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_operations_client.go @@ -123,10 +123,10 @@ func (client *OperationsClient) getHandleResponse(resp *http.Response) (Operatio return result, nil } -// List - Return list of operations +// NewListPager - Return list of 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/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_privateclouds_client.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_privateclouds_client.go index ba3a4cb78bc7..9c924db18111 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_privateclouds_client.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_privateclouds_client.go @@ -109,11 +109,11 @@ func (client *PrivateCloudsClient) getHandleResponse(resp *http.Response) (Priva return result, nil } -// List - Returns list of private clouds in particular region +// NewListPager - Returns list of private clouds in particular region // If the operation fails it returns an *azcore.ResponseError type. // regionID - The region Id (westus, eastus) // options - PrivateCloudsClientListOptions contains the optional parameters for the PrivateCloudsClient.List method. -func (client *PrivateCloudsClient) List(regionID string, options *PrivateCloudsClientListOptions) *runtime.Pager[PrivateCloudsClientListResponse] { +func (client *PrivateCloudsClient) NewListPager(regionID string, options *PrivateCloudsClientListOptions) *runtime.Pager[PrivateCloudsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[PrivateCloudsClientListResponse]{ More: func(page PrivateCloudsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_resourcepools_client.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_resourcepools_client.go index a5ddaf803ee3..a795318fb9b7 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_resourcepools_client.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_resourcepools_client.go @@ -114,12 +114,12 @@ func (client *ResourcePoolsClient) getHandleResponse(resp *http.Response) (Resou return result, nil } -// List - Returns list of resource pools in region for private cloud +// NewListPager - Returns list of resource pools in region for private cloud // If the operation fails it returns an *azcore.ResponseError type. // regionID - The region Id (westus, eastus) // pcName - The private cloud name // options - ResourcePoolsClientListOptions contains the optional parameters for the ResourcePoolsClient.List method. -func (client *ResourcePoolsClient) List(regionID string, pcName string, options *ResourcePoolsClientListOptions) *runtime.Pager[ResourcePoolsClientListResponse] { +func (client *ResourcePoolsClient) NewListPager(regionID string, pcName string, options *ResourcePoolsClientListOptions) *runtime.Pager[ResourcePoolsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[ResourcePoolsClientListResponse]{ More: func(page ResourcePoolsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_skusavailability_client.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_skusavailability_client.go index 3fa30bafd0d9..5903795d1bed 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_skusavailability_client.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_skusavailability_client.go @@ -54,11 +54,11 @@ func NewSKUsAvailabilityClient(subscriptionID string, credential azcore.TokenCre return client, nil } -// List - Returns list of available resources in region +// NewListPager - Returns list of available resources in region // If the operation fails it returns an *azcore.ResponseError type. // regionID - The region Id (westus, eastus) // options - SKUsAvailabilityClientListOptions contains the optional parameters for the SKUsAvailabilityClient.List method. -func (client *SKUsAvailabilityClient) List(regionID string, options *SKUsAvailabilityClientListOptions) *runtime.Pager[SKUsAvailabilityClientListResponse] { +func (client *SKUsAvailabilityClient) NewListPager(regionID string, options *SKUsAvailabilityClientListOptions) *runtime.Pager[SKUsAvailabilityClientListResponse] { return runtime.NewPager(runtime.PageProcessor[SKUsAvailabilityClientListResponse]{ More: func(page SKUsAvailabilityClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_usages_client.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_usages_client.go index 12b5af98c76e..7755a5ae64b5 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_usages_client.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_usages_client.go @@ -54,11 +54,11 @@ func NewUsagesClient(subscriptionID string, credential azcore.TokenCredential, o return client, nil } -// List - Returns list of usage in region +// NewListPager - Returns list of usage in region // If the operation fails it returns an *azcore.ResponseError type. // regionID - The region Id (westus, eastus) // options - UsagesClientListOptions contains the optional parameters for the UsagesClient.List method. -func (client *UsagesClient) List(regionID string, options *UsagesClientListOptions) *runtime.Pager[UsagesClientListResponse] { +func (client *UsagesClient) NewListPager(regionID 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/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_virtualmachines_client.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_virtualmachines_client.go index 84fd161df856..ad45719357e6 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_virtualmachines_client.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_virtualmachines_client.go @@ -237,12 +237,12 @@ func (client *VirtualMachinesClient) getHandleResponse(resp *http.Response) (Vir return result, nil } -// ListByResourceGroup - Returns list of virtual machine within resource group +// NewListByResourceGroupPager - Returns list of virtual machine within resource group // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group // options - VirtualMachinesClientListByResourceGroupOptions contains the optional parameters for the VirtualMachinesClient.ListByResourceGroup // method. -func (client *VirtualMachinesClient) ListByResourceGroup(resourceGroupName string, options *VirtualMachinesClientListByResourceGroupOptions) *runtime.Pager[VirtualMachinesClientListByResourceGroupResponse] { +func (client *VirtualMachinesClient) NewListByResourceGroupPager(resourceGroupName string, options *VirtualMachinesClientListByResourceGroupOptions) *runtime.Pager[VirtualMachinesClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[VirtualMachinesClientListByResourceGroupResponse]{ More: func(page VirtualMachinesClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -310,11 +310,11 @@ func (client *VirtualMachinesClient) listByResourceGroupHandleResponse(resp *htt return result, nil } -// ListBySubscription - Returns list virtual machine within subscription +// NewListBySubscriptionPager - Returns list virtual machine within subscription // If the operation fails it returns an *azcore.ResponseError type. // options - VirtualMachinesClientListBySubscriptionOptions contains the optional parameters for the VirtualMachinesClient.ListBySubscription // method. -func (client *VirtualMachinesClient) ListBySubscription(options *VirtualMachinesClientListBySubscriptionOptions) *runtime.Pager[VirtualMachinesClientListBySubscriptionResponse] { +func (client *VirtualMachinesClient) NewListBySubscriptionPager(options *VirtualMachinesClientListBySubscriptionOptions) *runtime.Pager[VirtualMachinesClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PageProcessor[VirtualMachinesClientListBySubscriptionResponse]{ More: func(page VirtualMachinesClientListBySubscriptionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_virtualmachinetemplates_client.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_virtualmachinetemplates_client.go index b8638244a922..9126d4710b53 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_virtualmachinetemplates_client.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_virtualmachinetemplates_client.go @@ -115,14 +115,14 @@ func (client *VirtualMachineTemplatesClient) getHandleResponse(resp *http.Respon return result, nil } -// List - Returns list of virtual machine templates in region for private cloud +// NewListPager - Returns list of virtual machine templates in region for private cloud // If the operation fails it returns an *azcore.ResponseError type. // pcName - The private cloud name // regionID - The region Id (westus, eastus) // resourcePoolName - Resource pool used to derive vSphere cluster which contains VM templates // options - VirtualMachineTemplatesClientListOptions contains the optional parameters for the VirtualMachineTemplatesClient.List // method. -func (client *VirtualMachineTemplatesClient) List(pcName string, regionID string, resourcePoolName string, options *VirtualMachineTemplatesClientListOptions) *runtime.Pager[VirtualMachineTemplatesClientListResponse] { +func (client *VirtualMachineTemplatesClient) NewListPager(pcName string, regionID string, resourcePoolName string, options *VirtualMachineTemplatesClientListOptions) *runtime.Pager[VirtualMachineTemplatesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[VirtualMachineTemplatesClientListResponse]{ More: func(page VirtualMachineTemplatesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_virtualnetworks_client.go b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_virtualnetworks_client.go index 03fde1087520..0d3cbbbc176a 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_virtualnetworks_client.go +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/zz_generated_virtualnetworks_client.go @@ -114,13 +114,13 @@ func (client *VirtualNetworksClient) getHandleResponse(resp *http.Response) (Vir return result, nil } -// List - Return list of virtual networks in location for private cloud +// NewListPager - Return list of virtual networks in location for private cloud // If the operation fails it returns an *azcore.ResponseError type. // regionID - The region Id (westus, eastus) // pcName - The private cloud name // resourcePoolName - Resource pool used to derive vSphere cluster which contains virtual networks // options - VirtualNetworksClientListOptions contains the optional parameters for the VirtualNetworksClient.List method. -func (client *VirtualNetworksClient) List(regionID string, pcName string, resourcePoolName string, options *VirtualNetworksClientListOptions) *runtime.Pager[VirtualNetworksClientListResponse] { +func (client *VirtualNetworksClient) NewListPager(regionID string, pcName string, resourcePoolName string, options *VirtualNetworksClientListOptions) *runtime.Pager[VirtualNetworksClientListResponse] { return runtime.NewPager(runtime.PageProcessor[VirtualNetworksClientListResponse]{ More: func(page VirtualNetworksClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/webpubsub/armwebpubsub/CHANGELOG.md b/sdk/resourcemanager/webpubsub/armwebpubsub/CHANGELOG.md index 2340572d1190..f5bc5d402029 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/CHANGELOG.md +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/CHANGELOG.md @@ -1,5 +1,29 @@ # Release History +## 0.4.0 (2022-04-18) +### Breaking Changes + +- Function `*PrivateEndpointConnectionsClient.List` has been removed +- Function `*Client.ListBySubscription` has been removed +- Function `*PrivateLinkResourcesClient.List` has been removed +- Function `*Client.ListByResourceGroup` has been removed +- Function `*SharedPrivateLinkResourcesClient.List` has been removed +- Function `*OperationsClient.List` has been removed +- Function `*HubsClient.List` has been removed +- Function `*UsagesClient.List` has been removed + +### Features Added + +- New function `*PrivateLinkResourcesClient.NewListPager(string, string, *PrivateLinkResourcesClientListOptions) *runtime.Pager[PrivateLinkResourcesClientListResponse]` +- New function `*HubsClient.NewListPager(string, string, *HubsClientListOptions) *runtime.Pager[HubsClientListResponse]` +- 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 `*Client.NewListBySubscriptionPager(*ClientListBySubscriptionOptions) *runtime.Pager[ClientListBySubscriptionResponse]` +- New function `*Client.NewListByResourceGroupPager(string, *ClientListByResourceGroupOptions) *runtime.Pager[ClientListByResourceGroupResponse]` +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` + + ## 0.3.0 (2022-04-13) ### Breaking Changes diff --git a/sdk/resourcemanager/webpubsub/armwebpubsub/autorest.md b/sdk/resourcemanager/webpubsub/armwebpubsub/autorest.md index a96287c03c49..4d845d52b661 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/autorest.md +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/webpubsub/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/webpubsub/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/webpubsub/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/webpubsub/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/webpubsub/armwebpubsub/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/webpubsub/armwebpubsub/ze_generated_example_operations_client_test.go index 89c9164165ea..78f501503739 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/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/webpubsub/resource-manager/Microsoft.SignalRService/stable/2021-10-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/webpubsub/armwebpubsub/ze_generated_example_usages_client_test.go b/sdk/resourcemanager/webpubsub/armwebpubsub/ze_generated_example_usages_client_test.go index 418fc6852074..436751ee1439 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/ze_generated_example_usages_client_test.go +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/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/webpubsub/resource-manager/Microsoft.SignalRService/stable/2021-10-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/webpubsub/armwebpubsub/ze_generated_example_webpubsub_client_test.go b/sdk/resourcemanager/webpubsub/armwebpubsub/ze_generated_example_webpubsub_client_test.go index 143a6221af71..95f7bcce4772 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/ze_generated_example_webpubsub_client_test.go +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/ze_generated_example_webpubsub_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/webpubsub/resource-manager/Microsoft.SignalRService/stable/2021-10-01/examples/WebPubSub_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/webpubsub/resource-manager/Microsoft.SignalRService/stable/2021-10-01/examples/WebPubSub_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/webpubsub/armwebpubsub/ze_generated_example_webpubsubhubs_client_test.go b/sdk/resourcemanager/webpubsub/armwebpubsub/ze_generated_example_webpubsubhubs_client_test.go index c9d86a91e335..e766d258677f 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/ze_generated_example_webpubsubhubs_client_test.go +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/ze_generated_example_webpubsubhubs_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2021-10-01/examples/WebPubSubHubs_List.json -func ExampleHubsClient_List() { +func ExampleHubsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleHubsClient_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/webpubsub/armwebpubsub/ze_generated_example_webpubsubprivateendpointconnections_client_test.go b/sdk/resourcemanager/webpubsub/armwebpubsub/ze_generated_example_webpubsubprivateendpointconnections_client_test.go index c4870c7a2ffb..3b185dbace2b 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/ze_generated_example_webpubsubprivateendpointconnections_client_test.go +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/ze_generated_example_webpubsubprivateendpointconnections_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2021-10-01/examples/WebPubSubPrivateEndpointConnections_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/webpubsub/armwebpubsub/ze_generated_example_webpubsubprivatelinkresources_client_test.go b/sdk/resourcemanager/webpubsub/armwebpubsub/ze_generated_example_webpubsubprivatelinkresources_client_test.go index 00ec2ebfd7c2..83bad0ebdd05 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/ze_generated_example_webpubsubprivatelinkresources_client_test.go +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/ze_generated_example_webpubsubprivatelinkresources_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2021-10-01/examples/WebPubSubPrivateLinkResources_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/webpubsub/armwebpubsub/ze_generated_example_webpubsubsharedprivatelinkresources_client_test.go b/sdk/resourcemanager/webpubsub/armwebpubsub/ze_generated_example_webpubsubsharedprivatelinkresources_client_test.go index a157317e1785..755b0d3a71aa 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/ze_generated_example_webpubsubsharedprivatelinkresources_client_test.go +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/ze_generated_example_webpubsubsharedprivatelinkresources_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2021-10-01/examples/WebPubSubSharedPrivateLinkResources_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/webpubsub/armwebpubsub/zz_generated_client.go b/sdk/resourcemanager/webpubsub/armwebpubsub/zz_generated_client.go index 7ea11e359e37..0e3cfc904e66 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/zz_generated_client.go +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/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/webpubsub/armwebpubsub/zz_generated_constants.go b/sdk/resourcemanager/webpubsub/armwebpubsub/zz_generated_constants.go index 4cdac7b7f30c..bbd61cf15868 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/zz_generated_constants.go +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/zz_generated_constants.go @@ -10,7 +10,7 @@ package armwebpubsub const ( moduleName = "armwebpubsub" - moduleVersion = "v0.3.0" + moduleVersion = "v0.4.0" ) // ACLAction - Azure Networking ACL Action. diff --git a/sdk/resourcemanager/webpubsub/armwebpubsub/zz_generated_hubs_client.go b/sdk/resourcemanager/webpubsub/armwebpubsub/zz_generated_hubs_client.go index c9bf9a09b97d..c6e5dc72374c 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/zz_generated_hubs_client.go +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/zz_generated_hubs_client.go @@ -250,13 +250,13 @@ func (client *HubsClient) getHandleResponse(resp *http.Response) (HubsClientGetR return result, nil } -// List - List hub settings. +// NewListPager - List hub settings. // 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 - HubsClientListOptions contains the optional parameters for the HubsClient.List method. -func (client *HubsClient) List(resourceGroupName string, resourceName string, options *HubsClientListOptions) *runtime.Pager[HubsClientListResponse] { +func (client *HubsClient) NewListPager(resourceGroupName string, resourceName string, options *HubsClientListOptions) *runtime.Pager[HubsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[HubsClientListResponse]{ More: func(page HubsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/webpubsub/armwebpubsub/zz_generated_operations_client.go b/sdk/resourcemanager/webpubsub/armwebpubsub/zz_generated_operations_client.go index 48292c939c6d..bf0524edb2d6 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/zz_generated_operations_client.go +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/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/webpubsub/armwebpubsub/zz_generated_privateendpointconnections_client.go b/sdk/resourcemanager/webpubsub/armwebpubsub/zz_generated_privateendpointconnections_client.go index 3b4dd31da46a..0b7f713ebacd 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/zz_generated_privateendpointconnections_client.go +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/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/webpubsub/armwebpubsub/zz_generated_privatelinkresources_client.go b/sdk/resourcemanager/webpubsub/armwebpubsub/zz_generated_privatelinkresources_client.go index 45b36780f02e..bc4d40b9946f 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/zz_generated_privatelinkresources_client.go +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/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/webpubsub/armwebpubsub/zz_generated_sharedprivatelinkresources_client.go b/sdk/resourcemanager/webpubsub/armwebpubsub/zz_generated_sharedprivatelinkresources_client.go index 568e0bd38c46..c498a71db046 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/zz_generated_sharedprivatelinkresources_client.go +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/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/webpubsub/armwebpubsub/zz_generated_usages_client.go b/sdk/resourcemanager/webpubsub/armwebpubsub/zz_generated_usages_client.go index 7e0751126abb..43451f5d0180 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/zz_generated_usages_client.go +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/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/windowsesu/armwindowsesu/CHANGELOG.md b/sdk/resourcemanager/windowsesu/armwindowsesu/CHANGELOG.md index 7ab8a1e80b0a..55d71e4bdb11 100644 --- a/sdk/resourcemanager/windowsesu/armwindowsesu/CHANGELOG.md +++ b/sdk/resourcemanager/windowsesu/armwindowsesu/CHANGELOG.md @@ -1,5 +1,19 @@ # Release History +## 0.4.0 (2022-04-18) +### Breaking Changes + +- Function `*MultipleActivationKeysClient.List` has been removed +- Function `*MultipleActivationKeysClient.ListByResourceGroup` has been removed +- Function `*OperationsClient.List` has been removed + +### Features Added + +- New function `*MultipleActivationKeysClient.NewListPager(*MultipleActivationKeysClientListOptions) *runtime.Pager[MultipleActivationKeysClientListResponse]` +- New function `*MultipleActivationKeysClient.NewListByResourceGroupPager(string, *MultipleActivationKeysClientListByResourceGroupOptions) *runtime.Pager[MultipleActivationKeysClientListByResourceGroupResponse]` +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` + + ## 0.3.0 (2022-04-13) ### Breaking Changes diff --git a/sdk/resourcemanager/windowsesu/armwindowsesu/autorest.md b/sdk/resourcemanager/windowsesu/armwindowsesu/autorest.md index ceb8c7c8a24f..49c71278a93d 100644 --- a/sdk/resourcemanager/windowsesu/armwindowsesu/autorest.md +++ b/sdk/resourcemanager/windowsesu/armwindowsesu/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/windowsesu/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/windowsesu/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/windowsesu/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/windowsesu/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/windowsesu/armwindowsesu/ze_generated_example_multipleactivationkeys_client_test.go b/sdk/resourcemanager/windowsesu/armwindowsesu/ze_generated_example_multipleactivationkeys_client_test.go index 51d78685c580..ebda0721c0de 100644 --- a/sdk/resourcemanager/windowsesu/armwindowsesu/ze_generated_example_multipleactivationkeys_client_test.go +++ b/sdk/resourcemanager/windowsesu/armwindowsesu/ze_generated_example_multipleactivationkeys_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/windowsesu/resource-manager/Microsoft.WindowsESU/preview/2019-09-16-preview/examples/ListMultipleActivationKeys.json -func ExampleMultipleActivationKeysClient_List() { +func ExampleMultipleActivationKeysClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleMultipleActivationKeysClient_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 ExampleMultipleActivationKeysClient_List() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/windowsesu/resource-manager/Microsoft.WindowsESU/preview/2019-09-16-preview/examples/ListMultipleActivationKeysByResourceGroup.json -func ExampleMultipleActivationKeysClient_ListByResourceGroup() { +func ExampleMultipleActivationKeysClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -59,7 +59,7 @@ func ExampleMultipleActivationKeysClient_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/windowsesu/armwindowsesu/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/windowsesu/armwindowsesu/ze_generated_example_operations_client_test.go index 1092eacb6176..805e161406c9 100644 --- a/sdk/resourcemanager/windowsesu/armwindowsesu/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/windowsesu/armwindowsesu/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/windowsesu/resource-manager/Microsoft.WindowsESU/preview/2019-09-16-preview/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/windowsesu/armwindowsesu/zz_generated_constants.go b/sdk/resourcemanager/windowsesu/armwindowsesu/zz_generated_constants.go index d2714642bfad..4528d029b2e5 100644 --- a/sdk/resourcemanager/windowsesu/armwindowsesu/zz_generated_constants.go +++ b/sdk/resourcemanager/windowsesu/armwindowsesu/zz_generated_constants.go @@ -10,7 +10,7 @@ package armwindowsesu const ( moduleName = "armwindowsesu" - moduleVersion = "v0.3.0" + moduleVersion = "v0.4.0" ) // OsType - Type of OS for which the key is requested. diff --git a/sdk/resourcemanager/windowsesu/armwindowsesu/zz_generated_multipleactivationkeys_client.go b/sdk/resourcemanager/windowsesu/armwindowsesu/zz_generated_multipleactivationkeys_client.go index 995764f23189..4cf436cfa798 100644 --- a/sdk/resourcemanager/windowsesu/armwindowsesu/zz_generated_multipleactivationkeys_client.go +++ b/sdk/resourcemanager/windowsesu/armwindowsesu/zz_generated_multipleactivationkeys_client.go @@ -219,11 +219,11 @@ func (client *MultipleActivationKeysClient) getHandleResponse(resp *http.Respons return result, nil } -// List - List all Multiple Activation Keys (MAK) created for a subscription. +// NewListPager - List all Multiple Activation Keys (MAK) created for a subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - MultipleActivationKeysClientListOptions contains the optional parameters for the MultipleActivationKeysClient.List // method. -func (client *MultipleActivationKeysClient) List(options *MultipleActivationKeysClientListOptions) *runtime.Pager[MultipleActivationKeysClientListResponse] { +func (client *MultipleActivationKeysClient) NewListPager(options *MultipleActivationKeysClientListOptions) *runtime.Pager[MultipleActivationKeysClientListResponse] { return runtime.NewPager(runtime.PageProcessor[MultipleActivationKeysClientListResponse]{ More: func(page MultipleActivationKeysClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -278,12 +278,12 @@ func (client *MultipleActivationKeysClient) listHandleResponse(resp *http.Respon return result, nil } -// ListByResourceGroup - List all Multiple Activation Keys (MAK) in a resource group. +// NewListByResourceGroupPager - List all Multiple Activation Keys (MAK) 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 - MultipleActivationKeysClientListByResourceGroupOptions contains the optional parameters for the MultipleActivationKeysClient.ListByResourceGroup // method. -func (client *MultipleActivationKeysClient) ListByResourceGroup(resourceGroupName string, options *MultipleActivationKeysClientListByResourceGroupOptions) *runtime.Pager[MultipleActivationKeysClientListByResourceGroupResponse] { +func (client *MultipleActivationKeysClient) NewListByResourceGroupPager(resourceGroupName string, options *MultipleActivationKeysClientListByResourceGroupOptions) *runtime.Pager[MultipleActivationKeysClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[MultipleActivationKeysClientListByResourceGroupResponse]{ More: func(page MultipleActivationKeysClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/windowsesu/armwindowsesu/zz_generated_operations_client.go b/sdk/resourcemanager/windowsesu/armwindowsesu/zz_generated_operations_client.go index 51567e621b2e..66eb91dcba49 100644 --- a/sdk/resourcemanager/windowsesu/armwindowsesu/zz_generated_operations_client.go +++ b/sdk/resourcemanager/windowsesu/armwindowsesu/zz_generated_operations_client.go @@ -48,10 +48,10 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO return client, nil } -// List - List all available Windows.ESU provider operations. +// NewListPager - List all available Windows.ESU provider 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/windowsiot/armwindowsiot/CHANGELOG.md b/sdk/resourcemanager/windowsiot/armwindowsiot/CHANGELOG.md index 9ba1d6a9cf8a..ff7afa3a93c2 100644 --- a/sdk/resourcemanager/windowsiot/armwindowsiot/CHANGELOG.md +++ b/sdk/resourcemanager/windowsiot/armwindowsiot/CHANGELOG.md @@ -1,5 +1,19 @@ # Release History +## 0.4.0 (2022-04-18) +### Breaking Changes + +- Function `*OperationsClient.List` has been removed +- Function `*ServicesClient.List` has been removed +- Function `*ServicesClient.ListByResourceGroup` has been removed + +### Features Added + +- New function `*ServicesClient.NewListByResourceGroupPager(string, *ServicesClientListByResourceGroupOptions) *runtime.Pager[ServicesClientListByResourceGroupResponse]` +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` +- New function `*ServicesClient.NewListPager(*ServicesClientListOptions) *runtime.Pager[ServicesClientListResponse]` + + ## 0.3.0 (2022-04-13) ### Breaking Changes diff --git a/sdk/resourcemanager/windowsiot/armwindowsiot/autorest.md b/sdk/resourcemanager/windowsiot/armwindowsiot/autorest.md index 1d8390de8fcc..9c969991d7ff 100644 --- a/sdk/resourcemanager/windowsiot/armwindowsiot/autorest.md +++ b/sdk/resourcemanager/windowsiot/armwindowsiot/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/windowsiot/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/windowsiot/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/windowsiot/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/windowsiot/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/windowsiot/armwindowsiot/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/windowsiot/armwindowsiot/ze_generated_example_operations_client_test.go index a01dc395b8e0..11610cc15fa2 100644 --- a/sdk/resourcemanager/windowsiot/armwindowsiot/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/windowsiot/armwindowsiot/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/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-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/windowsiot/armwindowsiot/ze_generated_example_services_client_test.go b/sdk/resourcemanager/windowsiot/armwindowsiot/ze_generated_example_services_client_test.go index 4ba9fbf00ca9..c93d95777ab4 100644 --- a/sdk/resourcemanager/windowsiot/armwindowsiot/ze_generated_example_services_client_test.go +++ b/sdk/resourcemanager/windowsiot/armwindowsiot/ze_generated_example_services_client_test.go @@ -136,7 +136,7 @@ func ExampleServicesClient_Delete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_ListByResourceGroup.json -func ExampleServicesClient_ListByResourceGroup() { +func ExampleServicesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -148,7 +148,7 @@ func ExampleServicesClient_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) @@ -164,7 +164,7 @@ func ExampleServicesClient_ListByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/stable/2019-06-01/examples/Service_List.json -func ExampleServicesClient_List() { +func ExampleServicesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -176,7 +176,7 @@ func ExampleServicesClient_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/windowsiot/armwindowsiot/zz_generated_constants.go b/sdk/resourcemanager/windowsiot/armwindowsiot/zz_generated_constants.go index fa179995d87a..ab741b61db57 100644 --- a/sdk/resourcemanager/windowsiot/armwindowsiot/zz_generated_constants.go +++ b/sdk/resourcemanager/windowsiot/armwindowsiot/zz_generated_constants.go @@ -10,7 +10,7 @@ package armwindowsiot const ( moduleName = "armwindowsiot" - moduleVersion = "v0.3.0" + moduleVersion = "v0.4.0" ) // ServiceNameUnavailabilityReason - The reason for unavailability. diff --git a/sdk/resourcemanager/windowsiot/armwindowsiot/zz_generated_operations_client.go b/sdk/resourcemanager/windowsiot/armwindowsiot/zz_generated_operations_client.go index 5a01294efdfd..dbd99df39ebe 100644 --- a/sdk/resourcemanager/windowsiot/armwindowsiot/zz_generated_operations_client.go +++ b/sdk/resourcemanager/windowsiot/armwindowsiot/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 Windows IoT Services REST API operations. +// NewListPager - Lists all of the available Windows IoT Services 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/windowsiot/armwindowsiot/zz_generated_services_client.go b/sdk/resourcemanager/windowsiot/armwindowsiot/zz_generated_services_client.go index 36ef031315d3..520742a0904c 100644 --- a/sdk/resourcemanager/windowsiot/armwindowsiot/zz_generated_services_client.go +++ b/sdk/resourcemanager/windowsiot/armwindowsiot/zz_generated_services_client.go @@ -273,10 +273,10 @@ func (client *ServicesClient) getHandleResponse(resp *http.Response) (ServicesCl return result, nil } -// List - Get all the IoT hubs in a subscription. +// NewListPager - Get all the IoT hubs in a subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - ServicesClientListOptions contains the optional parameters for the ServicesClient.List method. -func (client *ServicesClient) List(options *ServicesClientListOptions) *runtime.Pager[ServicesClientListResponse] { +func (client *ServicesClient) NewListPager(options *ServicesClientListOptions) *runtime.Pager[ServicesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[ServicesClientListResponse]{ More: func(page ServicesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -331,12 +331,12 @@ func (client *ServicesClient) listHandleResponse(resp *http.Response) (ServicesC return result, nil } -// ListByResourceGroup - Get all the IoT hubs in a resource group. +// NewListByResourceGroupPager - Get all the IoT hubs in a resource group. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group that contains the Windows IoT Device Service. // options - ServicesClientListByResourceGroupOptions contains the optional parameters for the ServicesClient.ListByResourceGroup // method. -func (client *ServicesClient) ListByResourceGroup(resourceGroupName string, options *ServicesClientListByResourceGroupOptions) *runtime.Pager[ServicesClientListByResourceGroupResponse] { +func (client *ServicesClient) NewListByResourceGroupPager(resourceGroupName string, options *ServicesClientListByResourceGroupOptions) *runtime.Pager[ServicesClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[ServicesClientListByResourceGroupResponse]{ More: func(page ServicesClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/CHANGELOG.md b/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/CHANGELOG.md index 0563f18790eb..0dc87693d901 100644 --- a/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/CHANGELOG.md +++ b/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/CHANGELOG.md @@ -1,5 +1,19 @@ # Release History +## 0.4.0 (2022-04-18) +### Breaking Changes + +- Function `*HealthMonitorsClient.ListStateChanges` has been removed +- Function `*OperationsClient.List` has been removed +- Function `*HealthMonitorsClient.List` has been removed + +### Features Added + +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` +- New function `*HealthMonitorsClient.NewListPager(string, string, string, string, string, *HealthMonitorsClientListOptions) *runtime.Pager[HealthMonitorsClientListResponse]` +- New function `*HealthMonitorsClient.NewListStateChangesPager(string, string, string, string, string, string, *HealthMonitorsClientListStateChangesOptions) *runtime.Pager[HealthMonitorsClientListStateChangesResponse]` + + ## 0.3.0 (2022-04-13) ### Breaking Changes diff --git a/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/autorest.md b/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/autorest.md index 046a7ed6cad3..fcc59aee2545 100644 --- a/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/autorest.md +++ b/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/workloadmonitor/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/b9d36b704e582a2bd5677fedc813607e73963469/specification/workloadmonitor/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/workloadmonitor/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/f92aaf88f4c9d1ffb9a014eba196d887a9288c3a/specification/workloadmonitor/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/workloadmonitor/armworkloadmonitor/ze_generated_example_healthmonitors_client_test.go b/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/ze_generated_example_healthmonitors_client_test.go index fd7f4bfa085f..b9daa91e1580 100644 --- a/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/ze_generated_example_healthmonitors_client_test.go +++ b/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/ze_generated_example_healthmonitors_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloadmonitor/resource-manager/Microsoft.WorkloadMonitor/preview/2020-01-13-preview/examples/MonitorList_GetDefault.json -func ExampleHealthMonitorsClient_List() { +func ExampleHealthMonitorsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleHealthMonitorsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", "", "", @@ -83,7 +83,7 @@ func ExampleHealthMonitorsClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloadmonitor/resource-manager/Microsoft.WorkloadMonitor/preview/2020-01-13-preview/examples/MonitorHistory_GetDefault.json -func ExampleHealthMonitorsClient_ListStateChanges() { +func ExampleHealthMonitorsClient_NewListStateChangesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -95,7 +95,7 @@ func ExampleHealthMonitorsClient_ListStateChanges() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListStateChanges("", + pager := client.NewListStateChangesPager("", "", "", "", diff --git a/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/ze_generated_example_operations_client_test.go index a114dee65248..202ca3b9432e 100644 --- a/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/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/workloadmonitor/resource-manager/Microsoft.WorkloadMonitor/preview/2020-01-13-preview/examples/OperationList_Get.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/workloadmonitor/armworkloadmonitor/zz_generated_constants.go b/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/zz_generated_constants.go index 30d958c4fbae..e7f98a0a2bab 100644 --- a/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/zz_generated_constants.go +++ b/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/zz_generated_constants.go @@ -10,7 +10,7 @@ package armworkloadmonitor const ( moduleName = "armworkloadmonitor" - moduleVersion = "v0.3.0" + moduleVersion = "v0.4.0" ) // HealthState - One of health states - healthy, critical, warning, unknown, none, disabled. diff --git a/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/zz_generated_healthmonitors_client.go b/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/zz_generated_healthmonitors_client.go index aa16622271e3..4dba0672ce98 100644 --- a/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/zz_generated_healthmonitors_client.go +++ b/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/zz_generated_healthmonitors_client.go @@ -208,8 +208,8 @@ func (client *HealthMonitorsClient) getStateChangeHandleResponse(resp *http.Resp return result, nil } -// List - Get the current health status of all monitors of a virtual machine. Optional parameters: $expand (retrieve the monitor's -// evidence and configuration) and $filter (filter by monitor name). +// NewListPager - Get the current health status of all monitors of a virtual machine. Optional parameters: $expand (retrieve +// the monitor's evidence and configuration) and $filter (filter by monitor name). // If the operation fails it returns an *azcore.ResponseError type. // subscriptionID - The subscription Id of the virtual machine. // resourceGroupName - The resource group of the virtual machine. @@ -217,7 +217,7 @@ func (client *HealthMonitorsClient) getStateChangeHandleResponse(resp *http.Resp // resourceCollectionName - The resource collection name (ex: virtualMachines for virtual machines). // resourceName - The name of the virtual machine. // options - HealthMonitorsClientListOptions contains the optional parameters for the HealthMonitorsClient.List method. -func (client *HealthMonitorsClient) List(subscriptionID string, resourceGroupName string, providerName string, resourceCollectionName string, resourceName string, options *HealthMonitorsClientListOptions) *runtime.Pager[HealthMonitorsClientListResponse] { +func (client *HealthMonitorsClient) NewListPager(subscriptionID string, resourceGroupName string, providerName string, resourceCollectionName string, resourceName string, options *HealthMonitorsClientListOptions) *runtime.Pager[HealthMonitorsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[HealthMonitorsClientListResponse]{ More: func(page HealthMonitorsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -294,8 +294,8 @@ func (client *HealthMonitorsClient) listHandleResponse(resp *http.Response) (Hea return result, nil } -// ListStateChanges - Get the health state changes of a monitor of a virtual machine within the provided time window (default -// is the last 24 hours). Optional parameters: $expand (retrieve the monitor's evidence and +// NewListStateChangesPager - Get the health state changes of a monitor of a virtual machine within the provided time window +// (default is the last 24 hours). Optional parameters: $expand (retrieve the monitor's evidence and // configuration) and $filter (filter by heartbeat condition). // If the operation fails it returns an *azcore.ResponseError type. // subscriptionID - The subscription Id of the virtual machine. @@ -306,7 +306,7 @@ func (client *HealthMonitorsClient) listHandleResponse(resp *http.Response) (Hea // monitorID - The monitor Id of the virtual machine. // options - HealthMonitorsClientListStateChangesOptions contains the optional parameters for the HealthMonitorsClient.ListStateChanges // method. -func (client *HealthMonitorsClient) ListStateChanges(subscriptionID string, resourceGroupName string, providerName string, resourceCollectionName string, resourceName string, monitorID string, options *HealthMonitorsClientListStateChangesOptions) *runtime.Pager[HealthMonitorsClientListStateChangesResponse] { +func (client *HealthMonitorsClient) NewListStateChangesPager(subscriptionID string, resourceGroupName string, providerName string, resourceCollectionName string, resourceName string, monitorID string, options *HealthMonitorsClientListStateChangesOptions) *runtime.Pager[HealthMonitorsClientListStateChangesResponse] { return runtime.NewPager(runtime.PageProcessor[HealthMonitorsClientListStateChangesResponse]{ More: func(page HealthMonitorsClientListStateChangesResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/zz_generated_operations_client.go b/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/zz_generated_operations_client.go index e9927aff17c9..a64546d3cb20 100644 --- a/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/zz_generated_operations_client.go +++ b/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/zz_generated_operations_client.go @@ -48,10 +48,10 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO return client, nil } -// List - Get a list of all available REST API operations. +// NewListPager - Get a list of all available 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