From 8f5fd7cfde9803ca9fe4563131cc063e8c764ed0 Mon Sep 17 00:00:00 2001 From: Jiahui Peng <46921893+Alancere@users.noreply.github.com> Date: Fri, 15 Apr 2022 16:17:19 +0800 Subject: [PATCH] Release refresh all package R3 (#17603) * [Release] sdk/resourcemanager/billing/armbilling/0.4.0 generation from spec commit: cc26f1d28c939bbcde00a29aa8958b3eebb10cea * [Release] sdk/resourcemanager/blockchain/armblockchain/0.4.0 generation from spec commit: cc26f1d28c939bbcde00a29aa8958b3eebb10cea * [Release] sdk/resourcemanager/blueprint/armblueprint/0.4.0 generation from spec commit: cc26f1d28c939bbcde00a29aa8958b3eebb10cea * [Release] sdk/resourcemanager/botservice/armbotservice/0.4.0 generation from spec commit: cc26f1d28c939bbcde00a29aa8958b3eebb10cea * [Release] sdk/resourcemanager/cdn/armcdn/0.5.0 generation from spec commit: cc26f1d28c939bbcde00a29aa8958b3eebb10cea * [Release] sdk/resourcemanager/changeanalysis/armchangeanalysis/0.4.0 generation from spec commit: cc26f1d28c939bbcde00a29aa8958b3eebb10cea * [Release] sdk/resourcemanager/chaos/armchaos/0.4.0 generation from spec commit: cc26f1d28c939bbcde00a29aa8958b3eebb10cea * [Release] sdk/resourcemanager/cognitiveservices/armcognitiveservices/0.6.0 generation from spec commit: cc26f1d28c939bbcde00a29aa8958b3eebb10cea * [Release] sdk/resourcemanager/communication/armcommunication/0.4.0 generation from spec commit: cc26f1d28c939bbcde00a29aa8958b3eebb10cea * [Release] sdk/resourcemanager/compute/armcompute/0.7.0 generation from spec commit: cc26f1d28c939bbcde00a29aa8958b3eebb10cea * fix --- .../billing/armbilling/CHANGELOG.md | 78 +++++++++++ .../billing/armbilling/autorest.md | 6 +- ...enerated_example_agreements_client_test.go | 4 +- ...ted_example_billingaccounts_client_test.go | 8 +- ...ated_example_billingperiods_client_test.go | 4 +- ..._example_billingpermissions_client_test.go | 16 +-- ...ted_example_billingprofiles_client_test.go | 4 +- ...mple_billingroleassignments_client_test.go | 12 +- ...mple_billingroledefinitions_client_test.go | 12 +- ...xample_billingsubscriptions_client_test.go | 16 +-- ...generated_example_customers_client_test.go | 8 +- ..._example_enrollmentaccounts_client_test.go | 4 +- ...erated_example_instructions_client_test.go | 4 +- ..._generated_example_invoices_client_test.go | 12 +- ...ted_example_invoicesections_client_test.go | 4 +- ..._generated_example_products_client_test.go | 16 +-- ...erated_example_reservations_client_test.go | 8 +- ...erated_example_transactions_client_test.go | 4 +- .../zz_generated_accounts_client.go | 11 +- .../zz_generated_agreements_client.go | 4 +- .../armbilling/zz_generated_constants.go | 2 +- .../zz_generated_customers_client.go | 12 +- .../zz_generated_enrollmentaccounts_client.go | 4 +- .../zz_generated_instructions_client.go | 4 +- .../zz_generated_invoices_client.go | 16 +-- .../zz_generated_invoicesections_client.go | 6 +- .../zz_generated_operations_client.go | 4 +- .../armbilling/zz_generated_periods_client.go | 6 +- .../zz_generated_permissions_client.go | 16 +-- .../zz_generated_products_client.go | 24 ++-- .../zz_generated_profiles_client.go | 6 +- .../zz_generated_reservations_client.go | 12 +- .../zz_generated_roleassignments_client.go | 18 +-- .../zz_generated_roledefinitions_client.go | 18 +-- .../zz_generated_subscriptions_client.go | 24 ++-- .../zz_generated_transactions_client.go | 5 +- .../blockchain/armblockchain/CHANGELOG.md | 18 +++ .../blockchain/armblockchain/autorest.md | 6 +- ...d_example_blockchainmembers_client_test.go | 12 +- ...enerated_example_operations_client_test.go | 4 +- ...ed_example_transactionnodes_client_test.go | 4 +- .../armblockchain/zz_generated_constants.go | 2 +- .../zz_generated_members_client.go | 12 +- .../zz_generated_operations_client.go | 4 +- .../zz_generated_transactionnodes_client.go | 4 +- .../blueprint/armblueprint/CHANGELOG.md | 20 +++ .../blueprint/armblueprint/autorest.md | 6 +- ...generated_example_artifacts_client_test.go | 4 +- ...xample_assignmentoperations_client_test.go | 4 +- ...nerated_example_assignments_client_test.go | 4 +- ...enerated_example_blueprints_client_test.go | 4 +- ..._example_publishedartifacts_client_test.go | 4 +- ...example_publishedblueprints_client_test.go | 4 +- .../zz_generated_artifacts_client.go | 4 +- ...z_generated_assignmentoperations_client.go | 4 +- .../zz_generated_assignments_client.go | 4 +- .../zz_generated_blueprints_client.go | 4 +- .../armblueprint/zz_generated_constants.go | 2 +- .../zz_generated_publishedartifacts_client.go | 4 +- ...zz_generated_publishedblueprints_client.go | 4 +- .../botservice/armbotservice/CHANGELOG.md | 20 +++ .../botservice/armbotservice/autorest.md | 6 +- ...rated_example_botconnection_client_test.go | 4 +- .../ze_generated_example_bots_client_test.go | 8 +- ..._generated_example_channels_client_test.go | 4 +- ...enerated_example_operations_client_test.go | 4 +- ..._privateendpointconnections_client_test.go | 4 +- .../zz_generated_botconnection_client.go | 4 +- .../armbotservice/zz_generated_bots_client.go | 8 +- .../zz_generated_channels_client.go | 4 +- .../armbotservice/zz_generated_constants.go | 2 +- .../zz_generated_operations_client.go | 4 +- ...rated_privateendpointconnections_client.go | 4 +- sdk/resourcemanager/cdn/armcdn/CHANGELOG.md | 60 ++++++++ sdk/resourcemanager/cdn/armcdn/autorest.md | 6 +- ...ed_example_afdcustomdomains_client_test.go | 4 +- ...erated_example_afdendpoints_client_test.go | 8 +- ...ted_example_afdorigingroups_client_test.go | 8 +- ...enerated_example_afdorigins_client_test.go | 4 +- ...nerated_example_afdprofiles_client_test.go | 4 +- ...rated_example_customdomains_client_test.go | 4 +- ...generated_example_edgenodes_client_test.go | 4 +- ...generated_example_endpoints_client_test.go | 8 +- ...ted_example_managedrulesets_client_test.go | 4 +- ...enerated_example_operations_client_test.go | 4 +- ...erated_example_origingroups_client_test.go | 4 +- ...e_generated_example_origins_client_test.go | 4 +- ..._generated_example_policies_client_test.go | 4 +- ..._generated_example_profiles_client_test.go | 12 +- ...rated_example_resourceusage_client_test.go | 4 +- ...ze_generated_example_routes_client_test.go | 4 +- .../ze_generated_example_rules_client_test.go | 4 +- ..._generated_example_rulesets_client_test.go | 8 +- ...e_generated_example_secrets_client_test.go | 4 +- ...ed_example_securitypolicies_client_test.go | 4 +- .../zz_generated_afdcustomdomains_client.go | 4 +- .../zz_generated_afdendpoints_client.go | 8 +- .../zz_generated_afdorigingroups_client.go | 8 +- .../armcdn/zz_generated_afdorigins_client.go | 4 +- .../armcdn/zz_generated_afdprofiles_client.go | 4 +- .../cdn/armcdn/zz_generated_constants.go | 2 +- .../zz_generated_customdomains_client.go | 4 +- .../armcdn/zz_generated_edgenodes_client.go | 4 +- .../armcdn/zz_generated_endpoints_client.go | 8 +- .../zz_generated_managedrulesets_client.go | 4 +- .../armcdn/zz_generated_operations_client.go | 4 +- .../zz_generated_origingroups_client.go | 4 +- .../cdn/armcdn/zz_generated_origins_client.go | 4 +- .../armcdn/zz_generated_policies_client.go | 4 +- .../armcdn/zz_generated_profiles_client.go | 16 +-- .../zz_generated_resourceusage_client.go | 4 +- .../cdn/armcdn/zz_generated_routes_client.go | 4 +- .../cdn/armcdn/zz_generated_rules_client.go | 4 +- .../armcdn/zz_generated_rulesets_client.go | 8 +- .../cdn/armcdn/zz_generated_secrets_client.go | 4 +- .../zz_generated_securitypolicies_client.go | 4 +- .../armchangeanalysis/CHANGELOG.md | 16 +++ .../armchangeanalysis/autorest.md | 6 +- ...e_generated_example_changes_client_test.go | 8 +- ...enerated_example_operations_client_test.go | 4 +- ...ted_example_resourcechanges_client_test.go | 4 +- .../zz_generated_changes_client.go | 12 +- .../zz_generated_constants.go | 2 +- .../zz_generated_operations_client.go | 4 +- .../zz_generated_resourcechanges_client.go | 6 +- .../chaos/armchaos/CHANGELOG.md | 26 ++++ .../chaos/armchaos/autorest.md | 6 +- ...erated_example_capabilities_client_test.go | 4 +- ...ted_example_capabilitytypes_client_test.go | 4 +- ...nerated_example_experiments_client_test.go | 16 +-- ...e_generated_example_targets_client_test.go | 4 +- ...nerated_example_targettypes_client_test.go | 4 +- .../zz_generated_capabilities_client.go | 4 +- .../zz_generated_capabilitytypes_client.go | 4 +- .../chaos/armchaos/zz_generated_constants.go | 2 +- .../zz_generated_experiments_client.go | 16 +-- .../zz_generated_operations_client.go | 4 +- .../armchaos/zz_generated_targets_client.go | 4 +- .../zz_generated_targettypes_client.go | 4 +- .../armcognitiveservices/CHANGELOG.md | 26 ++++ .../armcognitiveservices/autorest.md | 6 +- ..._generated_example_accounts_client_test.go | 12 +- ...ted_example_commitmentplans_client_test.go | 4 +- ...ted_example_commitmenttiers_client_test.go | 4 +- ...ted_example_deletedaccounts_client_test.go | 4 +- ...nerated_example_deployments_client_test.go | 4 +- ...enerated_example_operations_client_test.go | 4 +- ...erated_example_resourceskus_client_test.go | 4 +- .../zz_generated_accounts_client.go | 12 +- .../zz_generated_commitmentplans_client.go | 4 +- .../zz_generated_commitmenttiers_client.go | 4 +- .../zz_generated_constants.go | 2 +- .../zz_generated_deletedaccounts_client.go | 4 +- .../zz_generated_deployments_client.go | 4 +- .../zz_generated_operations_client.go | 4 +- .../zz_generated_resourceskus_client.go | 4 +- .../armcommunication/CHANGELOG.md | 14 ++ .../armcommunication/autorest.md | 6 +- ...xample_communicationservice_client_test.go | 8 +- .../zz_generated_constants.go | 2 +- .../zz_generated_operations_client.go | 4 +- .../zz_generated_service_client.go | 8 +- .../compute/armcompute/CHANGELOG.md | 132 ++++++++++++++++++ .../compute/armcompute/autorest.md | 6 +- ...ed_example_availabilitysets_client_test.go | 12 +- ...e_capacityreservationgroups_client_test.go | 8 +- ...xample_capacityreservations_client_test.go | 4 +- ...loudserviceoperatingsystems_client_test.go | 8 +- ...e_cloudserviceroleinstances_client_test.go | 4 +- ...d_example_cloudserviceroles_client_test.go | 4 +- ...rated_example_cloudservices_client_test.go | 8 +- ...e_cloudservicesupdatedomain_client_test.go | 4 +- ...example_dedicatedhostgroups_client_test.go | 8 +- ...ated_example_dedicatedhosts_client_test.go | 4 +- ...erated_example_diskaccesses_client_test.go | 12 +- ..._example_diskencryptionsets_client_test.go | 12 +- ...ed_example_diskrestorepoint_client_test.go | 4 +- .../ze_generated_example_disks_client_test.go | 8 +- ...generated_example_galleries_client_test.go | 8 +- ...example_galleryapplications_client_test.go | 4 +- ..._galleryapplicationversions_client_test.go | 4 +- ...rated_example_galleryimages_client_test.go | 4 +- ...xample_galleryimageversions_client_test.go | 4 +- ...ze_generated_example_images_client_test.go | 8 +- ...enerated_example_operations_client_test.go | 4 +- ...le_proximityplacementgroups_client_test.go | 8 +- ...erated_example_resourceskus_client_test.go | 4 +- ...ple_restorepointcollections_client_test.go | 8 +- ...ted_example_sharedgalleries_client_test.go | 4 +- ...example_sharedgalleryimages_client_test.go | 4 +- ..._sharedgalleryimageversions_client_test.go | 4 +- ...generated_example_snapshots_client_test.go | 8 +- ...rated_example_sshpublickeys_client_test.go | 8 +- .../ze_generated_example_usage_client_test.go | 4 +- ...e_virtualmachineruncommands_client_test.go | 8 +- ...ted_example_virtualmachines_client_test.go | 16 +-- ...almachinescalesetextensions_client_test.go | 4 +- ...ple_virtualmachinescalesets_client_test.go | 16 +-- ...achinescalesetvmruncommands_client_test.go | 4 +- ...e_virtualmachinescalesetvms_client_test.go | 4 +- ...example_virtualmachinesizes_client_test.go | 4 +- .../zt_availabilitysets_client_live_test.go | 6 +- .../zt_virtualmachines_client_live_test.go | 2 +- ...irtualmachinescalesets_client_live_test.go | 2 +- .../zz_generated_availabilitysets_client.go | 14 +- ...erated_capacityreservationgroups_client.go | 12 +- ...z_generated_capacityreservations_client.go | 6 +- ...ted_cloudserviceoperatingsystems_client.go | 12 +- ...erated_cloudserviceroleinstances_client.go | 6 +- .../zz_generated_cloudserviceroles_client.go | 6 +- .../zz_generated_cloudservices_client.go | 12 +- ...erated_cloudservicesupdatedomain_client.go | 4 +- .../armcompute/zz_generated_constants.go | 2 +- ...zz_generated_dedicatedhostgroups_client.go | 12 +- .../zz_generated_dedicatedhosts_client.go | 6 +- .../zz_generated_diskaccesses_client.go | 12 +- .../zz_generated_diskencryptionsets_client.go | 12 +- .../zz_generated_diskrestorepoint_client.go | 4 +- .../armcompute/zz_generated_disks_client.go | 8 +- .../zz_generated_galleries_client.go | 8 +- ...zz_generated_galleryapplications_client.go | 4 +- ...rated_galleryapplicationversions_client.go | 4 +- .../zz_generated_galleryimages_client.go | 4 +- ...z_generated_galleryimageversions_client.go | 4 +- .../armcompute/zz_generated_images_client.go | 10 +- .../zz_generated_operations_client.go | 4 +- ...nerated_proximityplacementgroups_client.go | 8 +- .../zz_generated_resourceskus_client.go | 4 +- ...enerated_restorepointcollections_client.go | 10 +- .../zz_generated_sharedgalleries_client.go | 4 +- ...zz_generated_sharedgalleryimages_client.go | 4 +- ...rated_sharedgalleryimageversions_client.go | 4 +- .../zz_generated_snapshots_client.go | 8 +- .../zz_generated_sshpublickeys_client.go | 12 +- .../armcompute/zz_generated_usage_client.go | 6 +- ...erated_virtualmachineruncommands_client.go | 8 +- .../zz_generated_virtualmachines_client.go | 20 +-- ...virtualmachinescalesetextensions_client.go | 4 +- ...enerated_virtualmachinescalesets_client.go | 24 ++-- ...tualmachinescalesetvmruncommands_client.go | 4 +- ...erated_virtualmachinescalesetvms_client.go | 4 +- ...zz_generated_virtualmachinesizes_client.go | 4 +- 242 files changed, 1160 insertions(+), 748 deletions(-) diff --git a/sdk/resourcemanager/billing/armbilling/CHANGELOG.md b/sdk/resourcemanager/billing/armbilling/CHANGELOG.md index 50c864940bfc..17f18673e3d3 100644 --- a/sdk/resourcemanager/billing/armbilling/CHANGELOG.md +++ b/sdk/resourcemanager/billing/armbilling/CHANGELOG.md @@ -1,5 +1,83 @@ # Release History +## 0.4.0 (2022-04-15) +### Breaking Changes + +- Function `*PeriodsClient.List` has been removed +- Function `*InvoicesClient.ListByBillingProfile` has been removed +- Function `*RoleAssignmentsClient.ListByBillingProfile` has been removed +- Function `*CustomersClient.ListByBillingAccount` has been removed +- Function `*AccountsClient.List` has been removed +- Function `*RoleDefinitionsClient.ListByInvoiceSection` has been removed +- Function `*PermissionsClient.ListByBillingProfile` has been removed +- Function `*ProductsClient.ListByCustomer` has been removed +- Function `*TransactionsClient.ListByInvoice` has been removed +- Function `*ReservationsClient.ListByBillingProfile` has been removed +- Function `*ProductsClient.ListByBillingAccount` has been removed +- Function `*SubscriptionsClient.ListByCustomer` has been removed +- Function `*CustomersClient.ListByBillingProfile` has been removed +- Function `*SubscriptionsClient.ListByBillingProfile` has been removed +- Function `*InvoicesClient.ListByBillingAccount` has been removed +- Function `*PermissionsClient.ListByBillingAccount` has been removed +- Function `*RoleAssignmentsClient.ListByBillingAccount` has been removed +- Function `*AgreementsClient.ListByBillingAccount` has been removed +- Function `*PermissionsClient.ListByInvoiceSections` has been removed +- Function `*EnrollmentAccountsClient.List` has been removed +- Function `*InvoiceSectionsClient.ListByBillingProfile` has been removed +- Function `*ProductsClient.ListByBillingProfile` has been removed +- Function `*InvoicesClient.ListByBillingSubscription` has been removed +- Function `*SubscriptionsClient.ListByBillingAccount` has been removed +- Function `*ReservationsClient.ListByBillingAccount` has been removed +- Function `*PermissionsClient.ListByCustomer` has been removed +- Function `*RoleAssignmentsClient.ListByInvoiceSection` has been removed +- Function `*AccountsClient.ListInvoiceSectionsByCreateSubscriptionPermission` has been removed +- Function `*RoleDefinitionsClient.ListByBillingProfile` has been removed +- Function `*InstructionsClient.ListByBillingProfile` has been removed +- Function `*RoleDefinitionsClient.ListByBillingAccount` has been removed +- Function `*ProfilesClient.ListByBillingAccount` has been removed +- Function `*OperationsClient.List` has been removed +- Function `*SubscriptionsClient.ListByInvoiceSection` has been removed +- Function `*ProductsClient.ListByInvoiceSection` has been removed + +### Features Added + +- New function `*SubscriptionsClient.NewListByInvoiceSectionPager(string, string, string, *SubscriptionsClientListByInvoiceSectionOptions) *runtime.Pager[SubscriptionsClientListByInvoiceSectionResponse]` +- New function `*RoleDefinitionsClient.NewListByBillingAccountPager(string, *RoleDefinitionsClientListByBillingAccountOptions) *runtime.Pager[RoleDefinitionsClientListByBillingAccountResponse]` +- New function `*ProfilesClient.NewListByBillingAccountPager(string, *ProfilesClientListByBillingAccountOptions) *runtime.Pager[ProfilesClientListByBillingAccountResponse]` +- New function `*AgreementsClient.NewListByBillingAccountPager(string, *AgreementsClientListByBillingAccountOptions) *runtime.Pager[AgreementsClientListByBillingAccountResponse]` +- New function `*ProductsClient.NewListByInvoiceSectionPager(string, string, string, *ProductsClientListByInvoiceSectionOptions) *runtime.Pager[ProductsClientListByInvoiceSectionResponse]` +- New function `*PeriodsClient.NewListPager(*PeriodsClientListOptions) *runtime.Pager[PeriodsClientListResponse]` +- New function `*PermissionsClient.NewListByBillingProfilePager(string, string, *PermissionsClientListByBillingProfileOptions) *runtime.Pager[PermissionsClientListByBillingProfileResponse]` +- New function `*InvoiceSectionsClient.NewListByBillingProfilePager(string, string, *InvoiceSectionsClientListByBillingProfileOptions) *runtime.Pager[InvoiceSectionsClientListByBillingProfileResponse]` +- New function `*EnrollmentAccountsClient.NewListPager(*EnrollmentAccountsClientListOptions) *runtime.Pager[EnrollmentAccountsClientListResponse]` +- New function `*ProductsClient.NewListByBillingAccountPager(string, *ProductsClientListByBillingAccountOptions) *runtime.Pager[ProductsClientListByBillingAccountResponse]` +- New function `*InvoicesClient.NewListByBillingProfilePager(string, string, string, string, *InvoicesClientListByBillingProfileOptions) *runtime.Pager[InvoicesClientListByBillingProfileResponse]` +- New function `*RoleAssignmentsClient.NewListByBillingAccountPager(string, *RoleAssignmentsClientListByBillingAccountOptions) *runtime.Pager[RoleAssignmentsClientListByBillingAccountResponse]` +- New function `*AccountsClient.NewListInvoiceSectionsByCreateSubscriptionPermissionPager(string, *AccountsClientListInvoiceSectionsByCreateSubscriptionPermissionOptions) *runtime.Pager[AccountsClientListInvoiceSectionsByCreateSubscriptionPermissionResponse]` +- New function `*ProductsClient.NewListByCustomerPager(string, string, *ProductsClientListByCustomerOptions) *runtime.Pager[ProductsClientListByCustomerResponse]` +- New function `*ProductsClient.NewListByBillingProfilePager(string, string, *ProductsClientListByBillingProfileOptions) *runtime.Pager[ProductsClientListByBillingProfileResponse]` +- New function `*PermissionsClient.NewListByInvoiceSectionsPager(string, string, string, *PermissionsClientListByInvoiceSectionsOptions) *runtime.Pager[PermissionsClientListByInvoiceSectionsResponse]` +- New function `*SubscriptionsClient.NewListByCustomerPager(string, string, *SubscriptionsClientListByCustomerOptions) *runtime.Pager[SubscriptionsClientListByCustomerResponse]` +- New function `*RoleAssignmentsClient.NewListByInvoiceSectionPager(string, string, string, *RoleAssignmentsClientListByInvoiceSectionOptions) *runtime.Pager[RoleAssignmentsClientListByInvoiceSectionResponse]` +- New function `*InvoicesClient.NewListByBillingAccountPager(string, string, string, *InvoicesClientListByBillingAccountOptions) *runtime.Pager[InvoicesClientListByBillingAccountResponse]` +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` +- New function `*InstructionsClient.NewListByBillingProfilePager(string, string, *InstructionsClientListByBillingProfileOptions) *runtime.Pager[InstructionsClientListByBillingProfileResponse]` +- New function `*RoleDefinitionsClient.NewListByBillingProfilePager(string, string, *RoleDefinitionsClientListByBillingProfileOptions) *runtime.Pager[RoleDefinitionsClientListByBillingProfileResponse]` +- New function `*PermissionsClient.NewListByBillingAccountPager(string, *PermissionsClientListByBillingAccountOptions) *runtime.Pager[PermissionsClientListByBillingAccountResponse]` +- New function `*ReservationsClient.NewListByBillingAccountPager(string, *ReservationsClientListByBillingAccountOptions) *runtime.Pager[ReservationsClientListByBillingAccountResponse]` +- New function `*ReservationsClient.NewListByBillingProfilePager(string, string, *ReservationsClientListByBillingProfileOptions) *runtime.Pager[ReservationsClientListByBillingProfileResponse]` +- New function `*CustomersClient.NewListByBillingAccountPager(string, *CustomersClientListByBillingAccountOptions) *runtime.Pager[CustomersClientListByBillingAccountResponse]` +- New function `*SubscriptionsClient.NewListByBillingAccountPager(string, *SubscriptionsClientListByBillingAccountOptions) *runtime.Pager[SubscriptionsClientListByBillingAccountResponse]` +- New function `*RoleAssignmentsClient.NewListByBillingProfilePager(string, string, *RoleAssignmentsClientListByBillingProfileOptions) *runtime.Pager[RoleAssignmentsClientListByBillingProfileResponse]` +- New function `*CustomersClient.NewListByBillingProfilePager(string, string, *CustomersClientListByBillingProfileOptions) *runtime.Pager[CustomersClientListByBillingProfileResponse]` +- New function `*AccountsClient.NewListPager(*AccountsClientListOptions) *runtime.Pager[AccountsClientListResponse]` +- New function `*PermissionsClient.NewListByCustomerPager(string, string, *PermissionsClientListByCustomerOptions) *runtime.Pager[PermissionsClientListByCustomerResponse]` +- New function `*TransactionsClient.NewListByInvoicePager(string, string, *TransactionsClientListByInvoiceOptions) *runtime.Pager[TransactionsClientListByInvoiceResponse]` +- New function `*InvoicesClient.NewListByBillingSubscriptionPager(string, string, *InvoicesClientListByBillingSubscriptionOptions) *runtime.Pager[InvoicesClientListByBillingSubscriptionResponse]` +- New function `*SubscriptionsClient.NewListByBillingProfilePager(string, string, *SubscriptionsClientListByBillingProfileOptions) *runtime.Pager[SubscriptionsClientListByBillingProfileResponse]` +- New function `*RoleDefinitionsClient.NewListByInvoiceSectionPager(string, string, string, *RoleDefinitionsClientListByInvoiceSectionOptions) *runtime.Pager[RoleDefinitionsClientListByInvoiceSectionResponse]` + + ## 0.3.0 (2022-04-11) ### Breaking Changes diff --git a/sdk/resourcemanager/billing/armbilling/autorest.md b/sdk/resourcemanager/billing/armbilling/autorest.md index 03b3b7db6ebd..87e925ae35cb 100644 --- a/sdk/resourcemanager/billing/armbilling/autorest.md +++ b/sdk/resourcemanager/billing/armbilling/autorest.md @@ -5,8 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/d48ca7ed92cbb4f972eb6214bdb3200edaf78369/specification/billing/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/d48ca7ed92cbb4f972eb6214bdb3200edaf78369/specification/billing/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/billing/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/billing/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/billing/armbilling/ze_generated_example_agreements_client_test.go b/sdk/resourcemanager/billing/armbilling/ze_generated_example_agreements_client_test.go index b173c467ec11..d408ee9b9d83 100644 --- a/sdk/resourcemanager/billing/armbilling/ze_generated_example_agreements_client_test.go +++ b/sdk/resourcemanager/billing/armbilling/ze_generated_example_agreements_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/AgreementsListByBillingAccount.json -func ExampleAgreementsClient_ListByBillingAccount() { +func ExampleAgreementsClient_NewListByBillingAccountPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleAgreementsClient_ListByBillingAccount() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBillingAccount("", + pager := client.NewListByBillingAccountPager("", &armbilling.AgreementsClientListByBillingAccountOptions{Expand: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) diff --git a/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingaccounts_client_test.go b/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingaccounts_client_test.go index ed7190533a5c..00601c91459e 100644 --- a/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingaccounts_client_test.go +++ b/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingaccounts_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountsList.json -func ExampleAccountsClient_List() { +func ExampleAccountsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleAccountsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(&armbilling.AccountsClientListOptions{Expand: nil}) + pager := client.NewListPager(&armbilling.AccountsClientListOptions{Expand: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { @@ -115,7 +115,7 @@ func ExampleAccountsClient_BeginUpdate() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionsListWithCreateSubPermission.json -func ExampleAccountsClient_ListInvoiceSectionsByCreateSubscriptionPermission() { +func ExampleAccountsClient_NewListInvoiceSectionsByCreateSubscriptionPermissionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -127,7 +127,7 @@ func ExampleAccountsClient_ListInvoiceSectionsByCreateSubscriptionPermission() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListInvoiceSectionsByCreateSubscriptionPermission("", + pager := client.NewListInvoiceSectionsByCreateSubscriptionPermissionPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) diff --git a/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingperiods_client_test.go b/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingperiods_client_test.go index 1a0ac593c410..f9f1dcff4dbf 100644 --- a/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingperiods_client_test.go +++ b/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingperiods_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/preview/2018-03-01-preview/examples/BillingPeriodsList.json -func ExamplePeriodsClient_List() { +func ExamplePeriodsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExamplePeriodsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(&armbilling.PeriodsClientListOptions{Filter: nil, + pager := client.NewListPager(&armbilling.PeriodsClientListOptions{Filter: nil, Skiptoken: nil, Top: nil, }) diff --git a/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingpermissions_client_test.go b/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingpermissions_client_test.go index 10b5aecaaab3..62f7b50269fa 100644 --- a/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingpermissions_client_test.go +++ b/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingpermissions_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomerPermissionsList.json -func ExamplePermissionsClient_ListByCustomer() { +func ExamplePermissionsClient_NewListByCustomerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExamplePermissionsClient_ListByCustomer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByCustomer("", + pager := client.NewListByCustomerPager("", "", nil) for pager.More() { @@ -46,7 +46,7 @@ func ExamplePermissionsClient_ListByCustomer() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountPermissionsList.json -func ExamplePermissionsClient_ListByBillingAccount() { +func ExamplePermissionsClient_NewListByBillingAccountPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -58,7 +58,7 @@ func ExamplePermissionsClient_ListByBillingAccount() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBillingAccount("", + pager := client.NewListByBillingAccountPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -74,7 +74,7 @@ func ExamplePermissionsClient_ListByBillingAccount() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionPermissionsList.json -func ExamplePermissionsClient_ListByInvoiceSections() { +func ExamplePermissionsClient_NewListByInvoiceSectionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -86,7 +86,7 @@ func ExamplePermissionsClient_ListByInvoiceSections() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInvoiceSections("", + pager := client.NewListByInvoiceSectionsPager("", "", "", nil) @@ -104,7 +104,7 @@ func ExamplePermissionsClient_ListByInvoiceSections() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilePermissionsList.json -func ExamplePermissionsClient_ListByBillingProfile() { +func ExamplePermissionsClient_NewListByBillingProfilePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -116,7 +116,7 @@ func ExamplePermissionsClient_ListByBillingProfile() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBillingProfile("", + pager := client.NewListByBillingProfilePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingprofiles_client_test.go b/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingprofiles_client_test.go index 7ebd7a43ecf1..a9fcafeaefd2 100644 --- a/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingprofiles_client_test.go +++ b/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingprofiles_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilesListByBillingAccount.json -func ExampleProfilesClient_ListByBillingAccount() { +func ExampleProfilesClient_NewListByBillingAccountPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleProfilesClient_ListByBillingAccount() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBillingAccount("", + pager := client.NewListByBillingAccountPager("", &armbilling.ProfilesClientListByBillingAccountOptions{Expand: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) diff --git a/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingroleassignments_client_test.go b/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingroleassignments_client_test.go index 79abeae0bf09..68f808687576 100644 --- a/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingroleassignments_client_test.go +++ b/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingroleassignments_client_test.go @@ -173,7 +173,7 @@ func ExampleRoleAssignmentsClient_DeleteByBillingProfile() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleAssignmentList.json -func ExampleRoleAssignmentsClient_ListByBillingAccount() { +func ExampleRoleAssignmentsClient_NewListByBillingAccountPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -185,7 +185,7 @@ func ExampleRoleAssignmentsClient_ListByBillingAccount() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBillingAccount("", + pager := client.NewListByBillingAccountPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -201,7 +201,7 @@ func ExampleRoleAssignmentsClient_ListByBillingAccount() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleAssignmentList.json -func ExampleRoleAssignmentsClient_ListByInvoiceSection() { +func ExampleRoleAssignmentsClient_NewListByInvoiceSectionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -213,7 +213,7 @@ func ExampleRoleAssignmentsClient_ListByInvoiceSection() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInvoiceSection("", + pager := client.NewListByInvoiceSectionPager("", "", "", nil) @@ -231,7 +231,7 @@ func ExampleRoleAssignmentsClient_ListByInvoiceSection() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleAssignmentList.json -func ExampleRoleAssignmentsClient_ListByBillingProfile() { +func ExampleRoleAssignmentsClient_NewListByBillingProfilePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -243,7 +243,7 @@ func ExampleRoleAssignmentsClient_ListByBillingProfile() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBillingProfile("", + pager := client.NewListByBillingProfilePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingroledefinitions_client_test.go b/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingroledefinitions_client_test.go index 15c3014a302d..5547b795799b 100644 --- a/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingroledefinitions_client_test.go +++ b/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingroledefinitions_client_test.go @@ -95,7 +95,7 @@ func ExampleRoleDefinitionsClient_GetByBillingProfile() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleDefinitionsList.json -func ExampleRoleDefinitionsClient_ListByBillingAccount() { +func ExampleRoleDefinitionsClient_NewListByBillingAccountPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -107,7 +107,7 @@ func ExampleRoleDefinitionsClient_ListByBillingAccount() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBillingAccount("", + pager := client.NewListByBillingAccountPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -123,7 +123,7 @@ func ExampleRoleDefinitionsClient_ListByBillingAccount() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleDefinitionsList.json -func ExampleRoleDefinitionsClient_ListByInvoiceSection() { +func ExampleRoleDefinitionsClient_NewListByInvoiceSectionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -135,7 +135,7 @@ func ExampleRoleDefinitionsClient_ListByInvoiceSection() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInvoiceSection("", + pager := client.NewListByInvoiceSectionPager("", "", "", nil) @@ -153,7 +153,7 @@ func ExampleRoleDefinitionsClient_ListByInvoiceSection() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleDefinitionsList.json -func ExampleRoleDefinitionsClient_ListByBillingProfile() { +func ExampleRoleDefinitionsClient_NewListByBillingProfilePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -165,7 +165,7 @@ func ExampleRoleDefinitionsClient_ListByBillingProfile() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBillingProfile("", + pager := client.NewListByBillingProfilePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingsubscriptions_client_test.go b/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingsubscriptions_client_test.go index 2369c3abf1cd..6eda85a5e54a 100644 --- a/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingsubscriptions_client_test.go +++ b/sdk/resourcemanager/billing/armbilling/ze_generated_example_billingsubscriptions_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionsListByCustomer.json -func ExampleSubscriptionsClient_ListByCustomer() { +func ExampleSubscriptionsClient_NewListByCustomerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleSubscriptionsClient_ListByCustomer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByCustomer("", + pager := client.NewListByCustomerPager("", "", nil) for pager.More() { @@ -49,7 +49,7 @@ func ExampleSubscriptionsClient_ListByCustomer() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionsListByBillingAccount.json -func ExampleSubscriptionsClient_ListByBillingAccount() { +func ExampleSubscriptionsClient_NewListByBillingAccountPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -61,7 +61,7 @@ func ExampleSubscriptionsClient_ListByBillingAccount() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBillingAccount("", + pager := client.NewListByBillingAccountPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -77,7 +77,7 @@ func ExampleSubscriptionsClient_ListByBillingAccount() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionsListByBillingProfile.json -func ExampleSubscriptionsClient_ListByBillingProfile() { +func ExampleSubscriptionsClient_NewListByBillingProfilePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -89,7 +89,7 @@ func ExampleSubscriptionsClient_ListByBillingProfile() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBillingProfile("", + pager := client.NewListByBillingProfilePager("", "", nil) for pager.More() { @@ -106,7 +106,7 @@ func ExampleSubscriptionsClient_ListByBillingProfile() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionsListByInvoiceSection.json -func ExampleSubscriptionsClient_ListByInvoiceSection() { +func ExampleSubscriptionsClient_NewListByInvoiceSectionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -118,7 +118,7 @@ func ExampleSubscriptionsClient_ListByInvoiceSection() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInvoiceSection("", + pager := client.NewListByInvoiceSectionPager("", "", "", nil) diff --git a/sdk/resourcemanager/billing/armbilling/ze_generated_example_customers_client_test.go b/sdk/resourcemanager/billing/armbilling/ze_generated_example_customers_client_test.go index 3393102b0a05..b845013ef491 100644 --- a/sdk/resourcemanager/billing/armbilling/ze_generated_example_customers_client_test.go +++ b/sdk/resourcemanager/billing/armbilling/ze_generated_example_customers_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomersListByBillingProfile.json -func ExampleCustomersClient_ListByBillingProfile() { +func ExampleCustomersClient_NewListByBillingProfilePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleCustomersClient_ListByBillingProfile() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBillingProfile("", + pager := client.NewListByBillingProfilePager("", "", &armbilling.CustomersClientListByBillingProfileOptions{Search: nil, Filter: nil, @@ -48,7 +48,7 @@ func ExampleCustomersClient_ListByBillingProfile() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomersListByBillingAccount.json -func ExampleCustomersClient_ListByBillingAccount() { +func ExampleCustomersClient_NewListByBillingAccountPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -60,7 +60,7 @@ func ExampleCustomersClient_ListByBillingAccount() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBillingAccount("", + pager := client.NewListByBillingAccountPager("", &armbilling.CustomersClientListByBillingAccountOptions{Search: nil, Filter: nil, }) diff --git a/sdk/resourcemanager/billing/armbilling/ze_generated_example_enrollmentaccounts_client_test.go b/sdk/resourcemanager/billing/armbilling/ze_generated_example_enrollmentaccounts_client_test.go index ae8597f32378..c987b9146f5f 100644 --- a/sdk/resourcemanager/billing/armbilling/ze_generated_example_enrollmentaccounts_client_test.go +++ b/sdk/resourcemanager/billing/armbilling/ze_generated_example_enrollmentaccounts_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/preview/2018-03-01-preview/examples/EnrollmentAccountsList.json -func ExampleEnrollmentAccountsClient_List() { +func ExampleEnrollmentAccountsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleEnrollmentAccountsClient_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/billing/armbilling/ze_generated_example_instructions_client_test.go b/sdk/resourcemanager/billing/armbilling/ze_generated_example_instructions_client_test.go index 317bd7b3eccb..56098b77d131 100644 --- a/sdk/resourcemanager/billing/armbilling/ze_generated_example_instructions_client_test.go +++ b/sdk/resourcemanager/billing/armbilling/ze_generated_example_instructions_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InstructionsListByBillingProfile.json -func ExampleInstructionsClient_ListByBillingProfile() { +func ExampleInstructionsClient_NewListByBillingProfilePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleInstructionsClient_ListByBillingProfile() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBillingProfile("", + pager := client.NewListByBillingProfilePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/billing/armbilling/ze_generated_example_invoices_client_test.go b/sdk/resourcemanager/billing/armbilling/ze_generated_example_invoices_client_test.go index e873222b05dd..4860318049a4 100644 --- a/sdk/resourcemanager/billing/armbilling/ze_generated_example_invoices_client_test.go +++ b/sdk/resourcemanager/billing/armbilling/ze_generated_example_invoices_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountInvoicesList.json -func ExampleInvoicesClient_ListByBillingAccount() { +func ExampleInvoicesClient_NewListByBillingAccountPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleInvoicesClient_ListByBillingAccount() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBillingAccount("", + pager := client.NewListByBillingAccountPager("", "", "", nil) @@ -50,7 +50,7 @@ func ExampleInvoicesClient_ListByBillingAccount() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoicesListByBillingProfile.json -func ExampleInvoicesClient_ListByBillingProfile() { +func ExampleInvoicesClient_NewListByBillingProfilePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -62,7 +62,7 @@ func ExampleInvoicesClient_ListByBillingProfile() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBillingProfile("", + pager := client.NewListByBillingProfilePager("", "", "", "", @@ -170,7 +170,7 @@ func ExampleInvoicesClient_BeginDownloadMultipleBillingProfileInvoices() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionInvoicesList.json -func ExampleInvoicesClient_ListByBillingSubscription() { +func ExampleInvoicesClient_NewListByBillingSubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -182,7 +182,7 @@ func ExampleInvoicesClient_ListByBillingSubscription() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBillingSubscription("", + pager := client.NewListByBillingSubscriptionPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/billing/armbilling/ze_generated_example_invoicesections_client_test.go b/sdk/resourcemanager/billing/armbilling/ze_generated_example_invoicesections_client_test.go index 01d021afce1f..89b6dc04a954 100644 --- a/sdk/resourcemanager/billing/armbilling/ze_generated_example_invoicesections_client_test.go +++ b/sdk/resourcemanager/billing/armbilling/ze_generated_example_invoicesections_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionsListByBillingProfile.json -func ExampleInvoiceSectionsClient_ListByBillingProfile() { +func ExampleInvoiceSectionsClient_NewListByBillingProfilePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleInvoiceSectionsClient_ListByBillingProfile() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBillingProfile("", + pager := client.NewListByBillingProfilePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/billing/armbilling/ze_generated_example_products_client_test.go b/sdk/resourcemanager/billing/armbilling/ze_generated_example_products_client_test.go index e8a26af90e75..f1945d2dff0c 100644 --- a/sdk/resourcemanager/billing/armbilling/ze_generated_example_products_client_test.go +++ b/sdk/resourcemanager/billing/armbilling/ze_generated_example_products_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByCustomer.json -func ExampleProductsClient_ListByCustomer() { +func ExampleProductsClient_NewListByCustomerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleProductsClient_ListByCustomer() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByCustomer("", + pager := client.NewListByCustomerPager("", "", nil) for pager.More() { @@ -47,7 +47,7 @@ func ExampleProductsClient_ListByCustomer() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByBillingAccount.json -func ExampleProductsClient_ListByBillingAccount() { +func ExampleProductsClient_NewListByBillingAccountPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -59,7 +59,7 @@ func ExampleProductsClient_ListByBillingAccount() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBillingAccount("", + pager := client.NewListByBillingAccountPager("", &armbilling.ProductsClientListByBillingAccountOptions{Filter: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -75,7 +75,7 @@ func ExampleProductsClient_ListByBillingAccount() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByBillingProfile.json -func ExampleProductsClient_ListByBillingProfile() { +func ExampleProductsClient_NewListByBillingProfilePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -87,7 +87,7 @@ func ExampleProductsClient_ListByBillingProfile() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBillingProfile("", + pager := client.NewListByBillingProfilePager("", "", &armbilling.ProductsClientListByBillingProfileOptions{Filter: nil}) for pager.More() { @@ -104,7 +104,7 @@ func ExampleProductsClient_ListByBillingProfile() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByInvoiceSection.json -func ExampleProductsClient_ListByInvoiceSection() { +func ExampleProductsClient_NewListByInvoiceSectionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -116,7 +116,7 @@ func ExampleProductsClient_ListByInvoiceSection() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInvoiceSection("", + pager := client.NewListByInvoiceSectionPager("", "", "", &armbilling.ProductsClientListByInvoiceSectionOptions{Filter: nil}) diff --git a/sdk/resourcemanager/billing/armbilling/ze_generated_example_reservations_client_test.go b/sdk/resourcemanager/billing/armbilling/ze_generated_example_reservations_client_test.go index 3769bb010a32..481822024f30 100644 --- a/sdk/resourcemanager/billing/armbilling/ze_generated_example_reservations_client_test.go +++ b/sdk/resourcemanager/billing/armbilling/ze_generated_example_reservations_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ReservationsListByBillingAccount.json -func ExampleReservationsClient_ListByBillingAccount() { +func ExampleReservationsClient_NewListByBillingAccountPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleReservationsClient_ListByBillingAccount() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBillingAccount("", + pager := client.NewListByBillingAccountPager("", &armbilling.ReservationsClientListByBillingAccountOptions{Filter: to.Ptr(""), Orderby: to.Ptr(""), RefreshSummary: nil, @@ -50,7 +50,7 @@ func ExampleReservationsClient_ListByBillingAccount() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ReservationsListByBillingProfile.json -func ExampleReservationsClient_ListByBillingProfile() { +func ExampleReservationsClient_NewListByBillingProfilePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -62,7 +62,7 @@ func ExampleReservationsClient_ListByBillingProfile() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBillingProfile("", + pager := client.NewListByBillingProfilePager("", "", &armbilling.ReservationsClientListByBillingProfileOptions{Filter: to.Ptr(""), Orderby: to.Ptr(""), diff --git a/sdk/resourcemanager/billing/armbilling/ze_generated_example_transactions_client_test.go b/sdk/resourcemanager/billing/armbilling/ze_generated_example_transactions_client_test.go index 438d7ee4a933..c6ece4a40292 100644 --- a/sdk/resourcemanager/billing/armbilling/ze_generated_example_transactions_client_test.go +++ b/sdk/resourcemanager/billing/armbilling/ze_generated_example_transactions_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/TransactionsListByInvoice.json -func ExampleTransactionsClient_ListByInvoice() { +func ExampleTransactionsClient_NewListByInvoicePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleTransactionsClient_ListByInvoice() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByInvoice("", + pager := client.NewListByInvoicePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/billing/armbilling/zz_generated_accounts_client.go b/sdk/resourcemanager/billing/armbilling/zz_generated_accounts_client.go index c4b2658333c8..be1d08a7efb1 100644 --- a/sdk/resourcemanager/billing/armbilling/zz_generated_accounts_client.go +++ b/sdk/resourcemanager/billing/armbilling/zz_generated_accounts_client.go @@ -100,10 +100,10 @@ func (client *AccountsClient) getHandleResponse(resp *http.Response) (AccountsCl return result, nil } -// List - Lists the billing accounts that a user has access to. +// NewListPager - Lists the billing accounts that a user has access to. // If the operation fails it returns an *azcore.ResponseError type. // options - AccountsClientListOptions contains the optional parameters for the AccountsClient.List method. -func (client *AccountsClient) List(options *AccountsClientListOptions) *runtime.Pager[AccountsClientListResponse] { +func (client *AccountsClient) NewListPager(options *AccountsClientListOptions) *runtime.Pager[AccountsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[AccountsClientListResponse]{ More: func(page AccountsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -157,13 +157,14 @@ func (client *AccountsClient) listHandleResponse(resp *http.Response) (AccountsC return result, nil } -// ListInvoiceSectionsByCreateSubscriptionPermission - Lists the invoice sections for which the user has permission to create -// Azure subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. +// NewListInvoiceSectionsByCreateSubscriptionPermissionPager - Lists the invoice sections for which the user has permission +// to create Azure subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer +// Agreement. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // options - AccountsClientListInvoiceSectionsByCreateSubscriptionPermissionOptions contains the optional parameters for the // AccountsClient.ListInvoiceSectionsByCreateSubscriptionPermission method. -func (client *AccountsClient) ListInvoiceSectionsByCreateSubscriptionPermission(billingAccountName string, options *AccountsClientListInvoiceSectionsByCreateSubscriptionPermissionOptions) *runtime.Pager[AccountsClientListInvoiceSectionsByCreateSubscriptionPermissionResponse] { +func (client *AccountsClient) NewListInvoiceSectionsByCreateSubscriptionPermissionPager(billingAccountName string, options *AccountsClientListInvoiceSectionsByCreateSubscriptionPermissionOptions) *runtime.Pager[AccountsClientListInvoiceSectionsByCreateSubscriptionPermissionResponse] { return runtime.NewPager(runtime.PageProcessor[AccountsClientListInvoiceSectionsByCreateSubscriptionPermissionResponse]{ More: func(page AccountsClientListInvoiceSectionsByCreateSubscriptionPermissionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/billing/armbilling/zz_generated_agreements_client.go b/sdk/resourcemanager/billing/armbilling/zz_generated_agreements_client.go index ad105a8b146d..096e410e53c8 100644 --- a/sdk/resourcemanager/billing/armbilling/zz_generated_agreements_client.go +++ b/sdk/resourcemanager/billing/armbilling/zz_generated_agreements_client.go @@ -105,12 +105,12 @@ func (client *AgreementsClient) getHandleResponse(resp *http.Response) (Agreemen return result, nil } -// ListByBillingAccount - Lists the agreements for a billing account. +// NewListByBillingAccountPager - Lists the agreements for a billing account. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // options - AgreementsClientListByBillingAccountOptions contains the optional parameters for the AgreementsClient.ListByBillingAccount // method. -func (client *AgreementsClient) ListByBillingAccount(billingAccountName string, options *AgreementsClientListByBillingAccountOptions) *runtime.Pager[AgreementsClientListByBillingAccountResponse] { +func (client *AgreementsClient) NewListByBillingAccountPager(billingAccountName string, options *AgreementsClientListByBillingAccountOptions) *runtime.Pager[AgreementsClientListByBillingAccountResponse] { return runtime.NewPager(runtime.PageProcessor[AgreementsClientListByBillingAccountResponse]{ More: func(page AgreementsClientListByBillingAccountResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/billing/armbilling/zz_generated_constants.go b/sdk/resourcemanager/billing/armbilling/zz_generated_constants.go index bb5054b473b3..5bfc567ba568 100644 --- a/sdk/resourcemanager/billing/armbilling/zz_generated_constants.go +++ b/sdk/resourcemanager/billing/armbilling/zz_generated_constants.go @@ -10,7 +10,7 @@ package armbilling const ( moduleName = "armbilling" - moduleVersion = "v0.3.0" + moduleVersion = "v0.4.0" ) // AcceptanceMode - The mode of acceptance for an agreement. diff --git a/sdk/resourcemanager/billing/armbilling/zz_generated_customers_client.go b/sdk/resourcemanager/billing/armbilling/zz_generated_customers_client.go index db8efbc76005..cfc3fe6577fb 100644 --- a/sdk/resourcemanager/billing/armbilling/zz_generated_customers_client.go +++ b/sdk/resourcemanager/billing/armbilling/zz_generated_customers_client.go @@ -106,13 +106,13 @@ func (client *CustomersClient) getHandleResponse(resp *http.Response) (Customers return result, nil } -// ListByBillingAccount - Lists the customers that are billed to a billing account. The operation is supported only for billing -// accounts with agreement type Microsoft Partner Agreement. +// NewListByBillingAccountPager - Lists the customers that are billed to a billing account. The operation is supported only +// for billing accounts with agreement type Microsoft Partner Agreement. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // options - CustomersClientListByBillingAccountOptions contains the optional parameters for the CustomersClient.ListByBillingAccount // method. -func (client *CustomersClient) ListByBillingAccount(billingAccountName string, options *CustomersClientListByBillingAccountOptions) *runtime.Pager[CustomersClientListByBillingAccountResponse] { +func (client *CustomersClient) NewListByBillingAccountPager(billingAccountName string, options *CustomersClientListByBillingAccountOptions) *runtime.Pager[CustomersClientListByBillingAccountResponse] { return runtime.NewPager(runtime.PageProcessor[CustomersClientListByBillingAccountResponse]{ More: func(page CustomersClientListByBillingAccountResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -173,14 +173,14 @@ func (client *CustomersClient) listByBillingAccountHandleResponse(resp *http.Res return result, nil } -// ListByBillingProfile - Lists the customers that are billed to a billing profile. The operation is supported only for billing -// accounts with agreement type Microsoft Partner Agreement. +// NewListByBillingProfilePager - Lists the customers that are billed to a billing profile. The operation is supported only +// for billing accounts with agreement type Microsoft Partner Agreement. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // billingProfileName - The ID that uniquely identifies a billing profile. // options - CustomersClientListByBillingProfileOptions contains the optional parameters for the CustomersClient.ListByBillingProfile // method. -func (client *CustomersClient) ListByBillingProfile(billingAccountName string, billingProfileName string, options *CustomersClientListByBillingProfileOptions) *runtime.Pager[CustomersClientListByBillingProfileResponse] { +func (client *CustomersClient) NewListByBillingProfilePager(billingAccountName string, billingProfileName string, options *CustomersClientListByBillingProfileOptions) *runtime.Pager[CustomersClientListByBillingProfileResponse] { return runtime.NewPager(runtime.PageProcessor[CustomersClientListByBillingProfileResponse]{ More: func(page CustomersClientListByBillingProfileResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/billing/armbilling/zz_generated_enrollmentaccounts_client.go b/sdk/resourcemanager/billing/armbilling/zz_generated_enrollmentaccounts_client.go index 7a75c875efdc..a5c69654f9b6 100644 --- a/sdk/resourcemanager/billing/armbilling/zz_generated_enrollmentaccounts_client.go +++ b/sdk/resourcemanager/billing/armbilling/zz_generated_enrollmentaccounts_client.go @@ -97,10 +97,10 @@ func (client *EnrollmentAccountsClient) getHandleResponse(resp *http.Response) ( return result, nil } -// List - Lists the enrollment accounts the caller has access to. +// NewListPager - Lists the enrollment accounts the caller has access to. // If the operation fails it returns an *azcore.ResponseError type. // options - EnrollmentAccountsClientListOptions contains the optional parameters for the EnrollmentAccountsClient.List method. -func (client *EnrollmentAccountsClient) List(options *EnrollmentAccountsClientListOptions) *runtime.Pager[EnrollmentAccountsClientListResponse] { +func (client *EnrollmentAccountsClient) NewListPager(options *EnrollmentAccountsClientListOptions) *runtime.Pager[EnrollmentAccountsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[EnrollmentAccountsClientListResponse]{ More: func(page EnrollmentAccountsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/billing/armbilling/zz_generated_instructions_client.go b/sdk/resourcemanager/billing/armbilling/zz_generated_instructions_client.go index 5d9b98810b81..c65648258dee 100644 --- a/sdk/resourcemanager/billing/armbilling/zz_generated_instructions_client.go +++ b/sdk/resourcemanager/billing/armbilling/zz_generated_instructions_client.go @@ -107,13 +107,13 @@ func (client *InstructionsClient) getHandleResponse(resp *http.Response) (Instru return result, nil } -// ListByBillingProfile - Lists the instructions by billing profile id. +// NewListByBillingProfilePager - Lists the instructions by billing profile id. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // billingProfileName - The ID that uniquely identifies a billing profile. // options - InstructionsClientListByBillingProfileOptions contains the optional parameters for the InstructionsClient.ListByBillingProfile // method. -func (client *InstructionsClient) ListByBillingProfile(billingAccountName string, billingProfileName string, options *InstructionsClientListByBillingProfileOptions) *runtime.Pager[InstructionsClientListByBillingProfileResponse] { +func (client *InstructionsClient) NewListByBillingProfilePager(billingAccountName string, billingProfileName string, options *InstructionsClientListByBillingProfileOptions) *runtime.Pager[InstructionsClientListByBillingProfileResponse] { return runtime.NewPager(runtime.PageProcessor[InstructionsClientListByBillingProfileResponse]{ More: func(page InstructionsClientListByBillingProfileResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/billing/armbilling/zz_generated_invoices_client.go b/sdk/resourcemanager/billing/armbilling/zz_generated_invoices_client.go index bf197fbec491..c344b4a1ca5a 100644 --- a/sdk/resourcemanager/billing/armbilling/zz_generated_invoices_client.go +++ b/sdk/resourcemanager/billing/armbilling/zz_generated_invoices_client.go @@ -442,8 +442,8 @@ func (client *InvoicesClient) getBySubscriptionAndInvoiceIDHandleResponse(resp * return result, nil } -// ListByBillingAccount - Lists the invoices for a billing account for a given start date and end date. The operation is supported -// for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer +// NewListByBillingAccountPager - Lists the invoices for a billing account for a given start date and end date. The operation +// is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer // Agreement. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. @@ -451,7 +451,7 @@ func (client *InvoicesClient) getBySubscriptionAndInvoiceIDHandleResponse(resp * // periodEndDate - The end date to fetch the invoices. The date should be specified in MM-DD-YYYY format. // options - InvoicesClientListByBillingAccountOptions contains the optional parameters for the InvoicesClient.ListByBillingAccount // method. -func (client *InvoicesClient) ListByBillingAccount(billingAccountName string, periodStartDate string, periodEndDate string, options *InvoicesClientListByBillingAccountOptions) *runtime.Pager[InvoicesClientListByBillingAccountResponse] { +func (client *InvoicesClient) NewListByBillingAccountPager(billingAccountName string, periodStartDate string, periodEndDate string, options *InvoicesClientListByBillingAccountOptions) *runtime.Pager[InvoicesClientListByBillingAccountResponse] { return runtime.NewPager(runtime.PageProcessor[InvoicesClientListByBillingAccountResponse]{ More: func(page InvoicesClientListByBillingAccountResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -508,8 +508,8 @@ func (client *InvoicesClient) listByBillingAccountHandleResponse(resp *http.Resp return result, nil } -// ListByBillingProfile - Lists the invoices for a billing profile for a given start date and end date. The operation is supported -// for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer +// NewListByBillingProfilePager - Lists the invoices for a billing profile for a given start date and end date. The operation +// is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer // Agreement. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. @@ -518,7 +518,7 @@ func (client *InvoicesClient) listByBillingAccountHandleResponse(resp *http.Resp // periodEndDate - The end date to fetch the invoices. The date should be specified in MM-DD-YYYY format. // options - InvoicesClientListByBillingProfileOptions contains the optional parameters for the InvoicesClient.ListByBillingProfile // method. -func (client *InvoicesClient) ListByBillingProfile(billingAccountName string, billingProfileName string, periodStartDate string, periodEndDate string, options *InvoicesClientListByBillingProfileOptions) *runtime.Pager[InvoicesClientListByBillingProfileResponse] { +func (client *InvoicesClient) NewListByBillingProfilePager(billingAccountName string, billingProfileName string, periodStartDate string, periodEndDate string, options *InvoicesClientListByBillingProfileOptions) *runtime.Pager[InvoicesClientListByBillingProfileResponse] { return runtime.NewPager(runtime.PageProcessor[InvoicesClientListByBillingProfileResponse]{ More: func(page InvoicesClientListByBillingProfileResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -579,13 +579,13 @@ func (client *InvoicesClient) listByBillingProfileHandleResponse(resp *http.Resp return result, nil } -// ListByBillingSubscription - Lists the invoices for a subscription. +// NewListByBillingSubscriptionPager - Lists the invoices for a subscription. // If the operation fails it returns an *azcore.ResponseError type. // periodStartDate - Invoice period start date. // periodEndDate - Invoice period end date. // options - InvoicesClientListByBillingSubscriptionOptions contains the optional parameters for the InvoicesClient.ListByBillingSubscription // method. -func (client *InvoicesClient) ListByBillingSubscription(periodStartDate string, periodEndDate string, options *InvoicesClientListByBillingSubscriptionOptions) *runtime.Pager[InvoicesClientListByBillingSubscriptionResponse] { +func (client *InvoicesClient) NewListByBillingSubscriptionPager(periodStartDate string, periodEndDate string, options *InvoicesClientListByBillingSubscriptionOptions) *runtime.Pager[InvoicesClientListByBillingSubscriptionResponse] { return runtime.NewPager(runtime.PageProcessor[InvoicesClientListByBillingSubscriptionResponse]{ More: func(page InvoicesClientListByBillingSubscriptionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/billing/armbilling/zz_generated_invoicesections_client.go b/sdk/resourcemanager/billing/armbilling/zz_generated_invoicesections_client.go index e67cab9fe44c..8ff85e391baa 100644 --- a/sdk/resourcemanager/billing/armbilling/zz_generated_invoicesections_client.go +++ b/sdk/resourcemanager/billing/armbilling/zz_generated_invoicesections_client.go @@ -173,14 +173,14 @@ func (client *InvoiceSectionsClient) getHandleResponse(resp *http.Response) (Inv return result, nil } -// ListByBillingProfile - Lists the invoice sections that a user has access to. The operation is supported only for billing -// accounts with agreement type Microsoft Customer Agreement. +// NewListByBillingProfilePager - Lists the invoice sections that a user has access to. The operation is supported only for +// billing accounts with agreement type Microsoft Customer Agreement. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // billingProfileName - The ID that uniquely identifies a billing profile. // options - InvoiceSectionsClientListByBillingProfileOptions contains the optional parameters for the InvoiceSectionsClient.ListByBillingProfile // method. -func (client *InvoiceSectionsClient) ListByBillingProfile(billingAccountName string, billingProfileName string, options *InvoiceSectionsClientListByBillingProfileOptions) *runtime.Pager[InvoiceSectionsClientListByBillingProfileResponse] { +func (client *InvoiceSectionsClient) NewListByBillingProfilePager(billingAccountName string, billingProfileName string, options *InvoiceSectionsClientListByBillingProfileOptions) *runtime.Pager[InvoiceSectionsClientListByBillingProfileResponse] { return runtime.NewPager(runtime.PageProcessor[InvoiceSectionsClientListByBillingProfileResponse]{ More: func(page InvoiceSectionsClientListByBillingProfileResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/billing/armbilling/zz_generated_operations_client.go b/sdk/resourcemanager/billing/armbilling/zz_generated_operations_client.go index 7885d2d2b049..a2b8a0f81041 100644 --- a/sdk/resourcemanager/billing/armbilling/zz_generated_operations_client.go +++ b/sdk/resourcemanager/billing/armbilling/zz_generated_operations_client.go @@ -48,10 +48,10 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO return client, nil } -// List - Lists the available billing REST API operations. +// NewListPager - Lists the available billing 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/billing/armbilling/zz_generated_periods_client.go b/sdk/resourcemanager/billing/armbilling/zz_generated_periods_client.go index 77e4888ebf76..ec7d5d79d267 100644 --- a/sdk/resourcemanager/billing/armbilling/zz_generated_periods_client.go +++ b/sdk/resourcemanager/billing/armbilling/zz_generated_periods_client.go @@ -107,12 +107,12 @@ func (client *PeriodsClient) getHandleResponse(resp *http.Response) (PeriodsClie return result, nil } -// List - Lists the available billing periods for a subscription in reverse chronological order. This is only supported for -// Azure Web-Direct subscriptions. Other subscription types which were not purchased +// NewListPager - Lists the available billing periods for a subscription in reverse chronological order. This is only supported +// for Azure Web-Direct subscriptions. Other subscription types which were not purchased // directly through the Azure web portal are not supported through this preview API. // If the operation fails it returns an *azcore.ResponseError type. // options - PeriodsClientListOptions contains the optional parameters for the PeriodsClient.List method. -func (client *PeriodsClient) List(options *PeriodsClientListOptions) *runtime.Pager[PeriodsClientListResponse] { +func (client *PeriodsClient) NewListPager(options *PeriodsClientListOptions) *runtime.Pager[PeriodsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[PeriodsClientListResponse]{ More: func(page PeriodsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/billing/armbilling/zz_generated_permissions_client.go b/sdk/resourcemanager/billing/armbilling/zz_generated_permissions_client.go index d570ece42ec0..435983853c2a 100644 --- a/sdk/resourcemanager/billing/armbilling/zz_generated_permissions_client.go +++ b/sdk/resourcemanager/billing/armbilling/zz_generated_permissions_client.go @@ -51,12 +51,12 @@ func NewPermissionsClient(credential azcore.TokenCredential, options *arm.Client return client, nil } -// ListByBillingAccount - Lists the billing permissions the caller has on a billing account. +// NewListByBillingAccountPager - Lists the billing permissions the caller has on a billing account. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // options - PermissionsClientListByBillingAccountOptions contains the optional parameters for the PermissionsClient.ListByBillingAccount // method. -func (client *PermissionsClient) ListByBillingAccount(billingAccountName string, options *PermissionsClientListByBillingAccountOptions) *runtime.Pager[PermissionsClientListByBillingAccountResponse] { +func (client *PermissionsClient) NewListByBillingAccountPager(billingAccountName string, options *PermissionsClientListByBillingAccountOptions) *runtime.Pager[PermissionsClientListByBillingAccountResponse] { return runtime.NewPager(runtime.PageProcessor[PermissionsClientListByBillingAccountResponse]{ More: func(page PermissionsClientListByBillingAccountResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -111,13 +111,13 @@ func (client *PermissionsClient) listByBillingAccountHandleResponse(resp *http.R return result, nil } -// ListByBillingProfile - Lists the billing permissions the caller has on a billing profile. +// NewListByBillingProfilePager - Lists the billing permissions the caller has on a billing profile. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // billingProfileName - The ID that uniquely identifies a billing profile. // options - PermissionsClientListByBillingProfileOptions contains the optional parameters for the PermissionsClient.ListByBillingProfile // method. -func (client *PermissionsClient) ListByBillingProfile(billingAccountName string, billingProfileName string, options *PermissionsClientListByBillingProfileOptions) *runtime.Pager[PermissionsClientListByBillingProfileResponse] { +func (client *PermissionsClient) NewListByBillingProfilePager(billingAccountName string, billingProfileName string, options *PermissionsClientListByBillingProfileOptions) *runtime.Pager[PermissionsClientListByBillingProfileResponse] { return runtime.NewPager(runtime.PageProcessor[PermissionsClientListByBillingProfileResponse]{ More: func(page PermissionsClientListByBillingProfileResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -176,13 +176,13 @@ func (client *PermissionsClient) listByBillingProfileHandleResponse(resp *http.R return result, nil } -// ListByCustomer - Lists the billing permissions the caller has for a customer. +// NewListByCustomerPager - Lists the billing permissions the caller has for a customer. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // customerName - The ID that uniquely identifies a customer. // options - PermissionsClientListByCustomerOptions contains the optional parameters for the PermissionsClient.ListByCustomer // method. -func (client *PermissionsClient) ListByCustomer(billingAccountName string, customerName string, options *PermissionsClientListByCustomerOptions) *runtime.Pager[PermissionsClientListByCustomerResponse] { +func (client *PermissionsClient) NewListByCustomerPager(billingAccountName string, customerName string, options *PermissionsClientListByCustomerOptions) *runtime.Pager[PermissionsClientListByCustomerResponse] { return runtime.NewPager(runtime.PageProcessor[PermissionsClientListByCustomerResponse]{ More: func(page PermissionsClientListByCustomerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -241,14 +241,14 @@ func (client *PermissionsClient) listByCustomerHandleResponse(resp *http.Respons return result, nil } -// ListByInvoiceSections - Lists the billing permissions the caller has on an invoice section. +// NewListByInvoiceSectionsPager - Lists the billing permissions the caller has on an invoice section. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // billingProfileName - The ID that uniquely identifies a billing profile. // invoiceSectionName - The ID that uniquely identifies an invoice section. // options - PermissionsClientListByInvoiceSectionsOptions contains the optional parameters for the PermissionsClient.ListByInvoiceSections // method. -func (client *PermissionsClient) ListByInvoiceSections(billingAccountName string, billingProfileName string, invoiceSectionName string, options *PermissionsClientListByInvoiceSectionsOptions) *runtime.Pager[PermissionsClientListByInvoiceSectionsResponse] { +func (client *PermissionsClient) NewListByInvoiceSectionsPager(billingAccountName string, billingProfileName string, invoiceSectionName string, options *PermissionsClientListByInvoiceSectionsOptions) *runtime.Pager[PermissionsClientListByInvoiceSectionsResponse] { return runtime.NewPager(runtime.PageProcessor[PermissionsClientListByInvoiceSectionsResponse]{ More: func(page PermissionsClientListByInvoiceSectionsResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/billing/armbilling/zz_generated_products_client.go b/sdk/resourcemanager/billing/armbilling/zz_generated_products_client.go index 9c9024aaa1b8..e79dda1a67b7 100644 --- a/sdk/resourcemanager/billing/armbilling/zz_generated_products_client.go +++ b/sdk/resourcemanager/billing/armbilling/zz_generated_products_client.go @@ -104,14 +104,14 @@ func (client *ProductsClient) getHandleResponse(resp *http.Response) (ProductsCl return result, nil } -// ListByBillingAccount - Lists the products for a billing account. These don't include products billed based on usage. The -// operation is supported for billing accounts with agreement type Microsoft Customer Agreement or +// NewListByBillingAccountPager - Lists the products for a billing account. These don't include products billed based on usage. +// The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or // Microsoft Partner Agreement. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // options - ProductsClientListByBillingAccountOptions contains the optional parameters for the ProductsClient.ListByBillingAccount // method. -func (client *ProductsClient) ListByBillingAccount(billingAccountName string, options *ProductsClientListByBillingAccountOptions) *runtime.Pager[ProductsClientListByBillingAccountResponse] { +func (client *ProductsClient) NewListByBillingAccountPager(billingAccountName string, options *ProductsClientListByBillingAccountOptions) *runtime.Pager[ProductsClientListByBillingAccountResponse] { return runtime.NewPager(runtime.PageProcessor[ProductsClientListByBillingAccountResponse]{ More: func(page ProductsClientListByBillingAccountResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -169,15 +169,15 @@ func (client *ProductsClient) listByBillingAccountHandleResponse(resp *http.Resp return result, nil } -// ListByBillingProfile - Lists the products for a billing profile. These don't include products billed based on usage. The -// operation is supported for billing accounts with agreement type Microsoft Customer Agreement or +// NewListByBillingProfilePager - Lists the products for a billing profile. These don't include products billed based on usage. +// The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or // Microsoft Partner Agreement. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // billingProfileName - The ID that uniquely identifies a billing profile. // options - ProductsClientListByBillingProfileOptions contains the optional parameters for the ProductsClient.ListByBillingProfile // method. -func (client *ProductsClient) ListByBillingProfile(billingAccountName string, billingProfileName string, options *ProductsClientListByBillingProfileOptions) *runtime.Pager[ProductsClientListByBillingProfileResponse] { +func (client *ProductsClient) NewListByBillingProfilePager(billingAccountName string, billingProfileName string, options *ProductsClientListByBillingProfileOptions) *runtime.Pager[ProductsClientListByBillingProfileResponse] { return runtime.NewPager(runtime.PageProcessor[ProductsClientListByBillingProfileResponse]{ More: func(page ProductsClientListByBillingProfileResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -239,13 +239,13 @@ func (client *ProductsClient) listByBillingProfileHandleResponse(resp *http.Resp return result, nil } -// ListByCustomer - Lists the products for a customer. These don't include products billed based on usage.The operation is -// supported only for billing accounts with agreement type Microsoft Partner Agreement. +// NewListByCustomerPager - Lists the products for a customer. These don't include products billed based on usage.The operation +// is supported only for billing accounts with agreement type Microsoft Partner Agreement. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // customerName - The ID that uniquely identifies a customer. // options - ProductsClientListByCustomerOptions contains the optional parameters for the ProductsClient.ListByCustomer method. -func (client *ProductsClient) ListByCustomer(billingAccountName string, customerName string, options *ProductsClientListByCustomerOptions) *runtime.Pager[ProductsClientListByCustomerResponse] { +func (client *ProductsClient) NewListByCustomerPager(billingAccountName string, customerName string, options *ProductsClientListByCustomerOptions) *runtime.Pager[ProductsClientListByCustomerResponse] { return runtime.NewPager(runtime.PageProcessor[ProductsClientListByCustomerResponse]{ More: func(page ProductsClientListByCustomerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -304,15 +304,15 @@ func (client *ProductsClient) listByCustomerHandleResponse(resp *http.Response) return result, nil } -// ListByInvoiceSection - Lists the products for an invoice section. These don't include products billed based on usage. The -// operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. +// NewListByInvoiceSectionPager - Lists the products for an invoice section. These don't include products billed based on +// usage. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // billingProfileName - The ID that uniquely identifies a billing profile. // invoiceSectionName - The ID that uniquely identifies an invoice section. // options - ProductsClientListByInvoiceSectionOptions contains the optional parameters for the ProductsClient.ListByInvoiceSection // method. -func (client *ProductsClient) ListByInvoiceSection(billingAccountName string, billingProfileName string, invoiceSectionName string, options *ProductsClientListByInvoiceSectionOptions) *runtime.Pager[ProductsClientListByInvoiceSectionResponse] { +func (client *ProductsClient) NewListByInvoiceSectionPager(billingAccountName string, billingProfileName string, invoiceSectionName string, options *ProductsClientListByInvoiceSectionOptions) *runtime.Pager[ProductsClientListByInvoiceSectionResponse] { return runtime.NewPager(runtime.PageProcessor[ProductsClientListByInvoiceSectionResponse]{ More: func(page ProductsClientListByInvoiceSectionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/billing/armbilling/zz_generated_profiles_client.go b/sdk/resourcemanager/billing/armbilling/zz_generated_profiles_client.go index 95078ed06101..e1c0c1e6b57e 100644 --- a/sdk/resourcemanager/billing/armbilling/zz_generated_profiles_client.go +++ b/sdk/resourcemanager/billing/armbilling/zz_generated_profiles_client.go @@ -166,13 +166,13 @@ func (client *ProfilesClient) getHandleResponse(resp *http.Response) (ProfilesCl return result, nil } -// ListByBillingAccount - Lists the billing profiles that a user has access to. The operation is supported for billing accounts -// with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement. +// NewListByBillingAccountPager - Lists the billing profiles that a user has access to. The operation is supported for billing +// accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // options - ProfilesClientListByBillingAccountOptions contains the optional parameters for the ProfilesClient.ListByBillingAccount // method. -func (client *ProfilesClient) ListByBillingAccount(billingAccountName string, options *ProfilesClientListByBillingAccountOptions) *runtime.Pager[ProfilesClientListByBillingAccountResponse] { +func (client *ProfilesClient) NewListByBillingAccountPager(billingAccountName string, options *ProfilesClientListByBillingAccountOptions) *runtime.Pager[ProfilesClientListByBillingAccountResponse] { return runtime.NewPager(runtime.PageProcessor[ProfilesClientListByBillingAccountResponse]{ More: func(page ProfilesClientListByBillingAccountResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/billing/armbilling/zz_generated_reservations_client.go b/sdk/resourcemanager/billing/armbilling/zz_generated_reservations_client.go index f032fc4f751e..eedacf8324c7 100644 --- a/sdk/resourcemanager/billing/armbilling/zz_generated_reservations_client.go +++ b/sdk/resourcemanager/billing/armbilling/zz_generated_reservations_client.go @@ -51,13 +51,13 @@ func NewReservationsClient(credential azcore.TokenCredential, options *arm.Clien return client, nil } -// ListByBillingAccount - Lists the reservations for a billing account and the roll up counts of reservations group by provisioning -// states. +// NewListByBillingAccountPager - Lists the reservations for a billing account and the roll up counts of reservations group +// by provisioning states. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // options - ReservationsClientListByBillingAccountOptions contains the optional parameters for the ReservationsClient.ListByBillingAccount // method. -func (client *ReservationsClient) ListByBillingAccount(billingAccountName string, options *ReservationsClientListByBillingAccountOptions) *runtime.Pager[ReservationsClientListByBillingAccountResponse] { +func (client *ReservationsClient) NewListByBillingAccountPager(billingAccountName string, options *ReservationsClientListByBillingAccountOptions) *runtime.Pager[ReservationsClientListByBillingAccountResponse] { return runtime.NewPager(runtime.PageProcessor[ReservationsClientListByBillingAccountResponse]{ More: func(page ReservationsClientListByBillingAccountResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -124,14 +124,14 @@ func (client *ReservationsClient) listByBillingAccountHandleResponse(resp *http. return result, nil } -// ListByBillingProfile - Lists the reservations for a billing profile and the roll up counts of reservations group by provisioning -// state. +// NewListByBillingProfilePager - Lists the reservations for a billing profile and the roll up counts of reservations group +// by provisioning state. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // billingProfileName - The ID that uniquely identifies a billing profile. // options - ReservationsClientListByBillingProfileOptions contains the optional parameters for the ReservationsClient.ListByBillingProfile // method. -func (client *ReservationsClient) ListByBillingProfile(billingAccountName string, billingProfileName string, options *ReservationsClientListByBillingProfileOptions) *runtime.Pager[ReservationsClientListByBillingProfileResponse] { +func (client *ReservationsClient) NewListByBillingProfilePager(billingAccountName string, billingProfileName string, options *ReservationsClientListByBillingProfileOptions) *runtime.Pager[ReservationsClientListByBillingProfileResponse] { return runtime.NewPager(runtime.PageProcessor[ReservationsClientListByBillingProfileResponse]{ More: func(page ReservationsClientListByBillingProfileResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/billing/armbilling/zz_generated_roleassignments_client.go b/sdk/resourcemanager/billing/armbilling/zz_generated_roleassignments_client.go index fccc95f2b39f..37c6bca413e4 100644 --- a/sdk/resourcemanager/billing/armbilling/zz_generated_roleassignments_client.go +++ b/sdk/resourcemanager/billing/armbilling/zz_generated_roleassignments_client.go @@ -399,13 +399,13 @@ func (client *RoleAssignmentsClient) getByInvoiceSectionHandleResponse(resp *htt return result, nil } -// ListByBillingAccount - Lists the role assignments for the caller on a billing account. The operation is supported for billing -// accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. +// NewListByBillingAccountPager - Lists the role assignments for the caller on a billing account. The operation is supported +// for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // options - RoleAssignmentsClientListByBillingAccountOptions contains the optional parameters for the RoleAssignmentsClient.ListByBillingAccount // method. -func (client *RoleAssignmentsClient) ListByBillingAccount(billingAccountName string, options *RoleAssignmentsClientListByBillingAccountOptions) *runtime.Pager[RoleAssignmentsClientListByBillingAccountResponse] { +func (client *RoleAssignmentsClient) NewListByBillingAccountPager(billingAccountName string, options *RoleAssignmentsClientListByBillingAccountOptions) *runtime.Pager[RoleAssignmentsClientListByBillingAccountResponse] { return runtime.NewPager(runtime.PageProcessor[RoleAssignmentsClientListByBillingAccountResponse]{ More: func(page RoleAssignmentsClientListByBillingAccountResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -460,14 +460,14 @@ func (client *RoleAssignmentsClient) listByBillingAccountHandleResponse(resp *ht return result, nil } -// ListByBillingProfile - Lists the role assignments for the caller on a billing profile. The operation is supported for billing -// accounts with agreement type Microsoft Customer Agreement. +// NewListByBillingProfilePager - Lists the role assignments for the caller on a billing profile. The operation is supported +// for billing accounts with agreement type Microsoft Customer Agreement. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // billingProfileName - The ID that uniquely identifies a billing profile. // options - RoleAssignmentsClientListByBillingProfileOptions contains the optional parameters for the RoleAssignmentsClient.ListByBillingProfile // method. -func (client *RoleAssignmentsClient) ListByBillingProfile(billingAccountName string, billingProfileName string, options *RoleAssignmentsClientListByBillingProfileOptions) *runtime.Pager[RoleAssignmentsClientListByBillingProfileResponse] { +func (client *RoleAssignmentsClient) NewListByBillingProfilePager(billingAccountName string, billingProfileName string, options *RoleAssignmentsClientListByBillingProfileOptions) *runtime.Pager[RoleAssignmentsClientListByBillingProfileResponse] { return runtime.NewPager(runtime.PageProcessor[RoleAssignmentsClientListByBillingProfileResponse]{ More: func(page RoleAssignmentsClientListByBillingProfileResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -526,15 +526,15 @@ func (client *RoleAssignmentsClient) listByBillingProfileHandleResponse(resp *ht return result, nil } -// ListByInvoiceSection - Lists the role assignments for the caller on an invoice section. The operation is supported for -// billing accounts with agreement type Microsoft Customer Agreement. +// NewListByInvoiceSectionPager - Lists the role assignments for the caller on an invoice section. The operation is supported +// for billing accounts with agreement type Microsoft Customer Agreement. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // billingProfileName - The ID that uniquely identifies a billing profile. // invoiceSectionName - The ID that uniquely identifies an invoice section. // options - RoleAssignmentsClientListByInvoiceSectionOptions contains the optional parameters for the RoleAssignmentsClient.ListByInvoiceSection // method. -func (client *RoleAssignmentsClient) ListByInvoiceSection(billingAccountName string, billingProfileName string, invoiceSectionName string, options *RoleAssignmentsClientListByInvoiceSectionOptions) *runtime.Pager[RoleAssignmentsClientListByInvoiceSectionResponse] { +func (client *RoleAssignmentsClient) NewListByInvoiceSectionPager(billingAccountName string, billingProfileName string, invoiceSectionName string, options *RoleAssignmentsClientListByInvoiceSectionOptions) *runtime.Pager[RoleAssignmentsClientListByInvoiceSectionResponse] { return runtime.NewPager(runtime.PageProcessor[RoleAssignmentsClientListByInvoiceSectionResponse]{ More: func(page RoleAssignmentsClientListByInvoiceSectionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/billing/armbilling/zz_generated_roledefinitions_client.go b/sdk/resourcemanager/billing/armbilling/zz_generated_roledefinitions_client.go index fa0d00d7b3b4..5e286a03baf4 100644 --- a/sdk/resourcemanager/billing/armbilling/zz_generated_roledefinitions_client.go +++ b/sdk/resourcemanager/billing/armbilling/zz_generated_roledefinitions_client.go @@ -225,13 +225,13 @@ func (client *RoleDefinitionsClient) getByInvoiceSectionHandleResponse(resp *htt return result, nil } -// ListByBillingAccount - Lists the role definitions for a billing account. The operation is supported for billing accounts -// with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. +// NewListByBillingAccountPager - Lists the role definitions for a billing account. The operation is supported for billing +// accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // options - RoleDefinitionsClientListByBillingAccountOptions contains the optional parameters for the RoleDefinitionsClient.ListByBillingAccount // method. -func (client *RoleDefinitionsClient) ListByBillingAccount(billingAccountName string, options *RoleDefinitionsClientListByBillingAccountOptions) *runtime.Pager[RoleDefinitionsClientListByBillingAccountResponse] { +func (client *RoleDefinitionsClient) NewListByBillingAccountPager(billingAccountName string, options *RoleDefinitionsClientListByBillingAccountOptions) *runtime.Pager[RoleDefinitionsClientListByBillingAccountResponse] { return runtime.NewPager(runtime.PageProcessor[RoleDefinitionsClientListByBillingAccountResponse]{ More: func(page RoleDefinitionsClientListByBillingAccountResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -286,14 +286,14 @@ func (client *RoleDefinitionsClient) listByBillingAccountHandleResponse(resp *ht return result, nil } -// ListByBillingProfile - Lists the role definitions for a billing profile. The operation is supported for billing accounts -// with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. +// NewListByBillingProfilePager - Lists the role definitions for a billing profile. The operation is supported for billing +// accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // billingProfileName - The ID that uniquely identifies a billing profile. // options - RoleDefinitionsClientListByBillingProfileOptions contains the optional parameters for the RoleDefinitionsClient.ListByBillingProfile // method. -func (client *RoleDefinitionsClient) ListByBillingProfile(billingAccountName string, billingProfileName string, options *RoleDefinitionsClientListByBillingProfileOptions) *runtime.Pager[RoleDefinitionsClientListByBillingProfileResponse] { +func (client *RoleDefinitionsClient) NewListByBillingProfilePager(billingAccountName string, billingProfileName string, options *RoleDefinitionsClientListByBillingProfileOptions) *runtime.Pager[RoleDefinitionsClientListByBillingProfileResponse] { return runtime.NewPager(runtime.PageProcessor[RoleDefinitionsClientListByBillingProfileResponse]{ More: func(page RoleDefinitionsClientListByBillingProfileResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -352,15 +352,15 @@ func (client *RoleDefinitionsClient) listByBillingProfileHandleResponse(resp *ht return result, nil } -// ListByInvoiceSection - Lists the role definitions for an invoice section. The operation is supported for billing accounts -// with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. +// NewListByInvoiceSectionPager - Lists the role definitions for an invoice section. The operation is supported for billing +// accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // billingProfileName - The ID that uniquely identifies a billing profile. // invoiceSectionName - The ID that uniquely identifies an invoice section. // options - RoleDefinitionsClientListByInvoiceSectionOptions contains the optional parameters for the RoleDefinitionsClient.ListByInvoiceSection // method. -func (client *RoleDefinitionsClient) ListByInvoiceSection(billingAccountName string, billingProfileName string, invoiceSectionName string, options *RoleDefinitionsClientListByInvoiceSectionOptions) *runtime.Pager[RoleDefinitionsClientListByInvoiceSectionResponse] { +func (client *RoleDefinitionsClient) NewListByInvoiceSectionPager(billingAccountName string, billingProfileName string, invoiceSectionName string, options *RoleDefinitionsClientListByInvoiceSectionOptions) *runtime.Pager[RoleDefinitionsClientListByInvoiceSectionResponse] { return runtime.NewPager(runtime.PageProcessor[RoleDefinitionsClientListByInvoiceSectionResponse]{ More: func(page RoleDefinitionsClientListByInvoiceSectionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/billing/armbilling/zz_generated_subscriptions_client.go b/sdk/resourcemanager/billing/armbilling/zz_generated_subscriptions_client.go index 5c3f1d1399aa..4679417c5faf 100644 --- a/sdk/resourcemanager/billing/armbilling/zz_generated_subscriptions_client.go +++ b/sdk/resourcemanager/billing/armbilling/zz_generated_subscriptions_client.go @@ -105,13 +105,13 @@ func (client *SubscriptionsClient) getHandleResponse(resp *http.Response) (Subsc return result, nil } -// ListByBillingAccount - Lists the subscriptions for a billing account. The operation is supported for billing accounts with -// agreement type Microsoft Customer Agreement or Microsoft Partner Agreement. +// NewListByBillingAccountPager - Lists the subscriptions for a billing account. The operation is supported for billing accounts +// with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // options - SubscriptionsClientListByBillingAccountOptions contains the optional parameters for the SubscriptionsClient.ListByBillingAccount // method. -func (client *SubscriptionsClient) ListByBillingAccount(billingAccountName string, options *SubscriptionsClientListByBillingAccountOptions) *runtime.Pager[SubscriptionsClientListByBillingAccountResponse] { +func (client *SubscriptionsClient) NewListByBillingAccountPager(billingAccountName string, options *SubscriptionsClientListByBillingAccountOptions) *runtime.Pager[SubscriptionsClientListByBillingAccountResponse] { return runtime.NewPager(runtime.PageProcessor[SubscriptionsClientListByBillingAccountResponse]{ More: func(page SubscriptionsClientListByBillingAccountResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -166,14 +166,14 @@ func (client *SubscriptionsClient) listByBillingAccountHandleResponse(resp *http return result, nil } -// ListByBillingProfile - Lists the subscriptions that are billed to a billing profile. The operation is supported for billing -// accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement. +// NewListByBillingProfilePager - Lists the subscriptions that are billed to a billing profile. The operation is supported +// for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // billingProfileName - The ID that uniquely identifies a billing profile. // options - SubscriptionsClientListByBillingProfileOptions contains the optional parameters for the SubscriptionsClient.ListByBillingProfile // method. -func (client *SubscriptionsClient) ListByBillingProfile(billingAccountName string, billingProfileName string, options *SubscriptionsClientListByBillingProfileOptions) *runtime.Pager[SubscriptionsClientListByBillingProfileResponse] { +func (client *SubscriptionsClient) NewListByBillingProfilePager(billingAccountName string, billingProfileName string, options *SubscriptionsClientListByBillingProfileOptions) *runtime.Pager[SubscriptionsClientListByBillingProfileResponse] { return runtime.NewPager(runtime.PageProcessor[SubscriptionsClientListByBillingProfileResponse]{ More: func(page SubscriptionsClientListByBillingProfileResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -232,14 +232,14 @@ func (client *SubscriptionsClient) listByBillingProfileHandleResponse(resp *http return result, nil } -// ListByCustomer - Lists the subscriptions for a customer. The operation is supported only for billing accounts with agreement -// type Microsoft Partner Agreement. +// NewListByCustomerPager - Lists the subscriptions for a customer. The operation is supported only for billing accounts with +// agreement type Microsoft Partner Agreement. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // customerName - The ID that uniquely identifies a customer. // options - SubscriptionsClientListByCustomerOptions contains the optional parameters for the SubscriptionsClient.ListByCustomer // method. -func (client *SubscriptionsClient) ListByCustomer(billingAccountName string, customerName string, options *SubscriptionsClientListByCustomerOptions) *runtime.Pager[SubscriptionsClientListByCustomerResponse] { +func (client *SubscriptionsClient) NewListByCustomerPager(billingAccountName string, customerName string, options *SubscriptionsClientListByCustomerOptions) *runtime.Pager[SubscriptionsClientListByCustomerResponse] { return runtime.NewPager(runtime.PageProcessor[SubscriptionsClientListByCustomerResponse]{ More: func(page SubscriptionsClientListByCustomerResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -298,15 +298,15 @@ func (client *SubscriptionsClient) listByCustomerHandleResponse(resp *http.Respo return result, nil } -// ListByInvoiceSection - Lists the subscriptions that are billed to an invoice section. The operation is supported only for -// billing accounts with agreement type Microsoft Customer Agreement. +// NewListByInvoiceSectionPager - Lists the subscriptions that are billed to an invoice section. The operation is supported +// only for billing accounts with agreement type Microsoft Customer Agreement. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // billingProfileName - The ID that uniquely identifies a billing profile. // invoiceSectionName - The ID that uniquely identifies an invoice section. // options - SubscriptionsClientListByInvoiceSectionOptions contains the optional parameters for the SubscriptionsClient.ListByInvoiceSection // method. -func (client *SubscriptionsClient) ListByInvoiceSection(billingAccountName string, billingProfileName string, invoiceSectionName string, options *SubscriptionsClientListByInvoiceSectionOptions) *runtime.Pager[SubscriptionsClientListByInvoiceSectionResponse] { +func (client *SubscriptionsClient) NewListByInvoiceSectionPager(billingAccountName string, billingProfileName string, invoiceSectionName string, options *SubscriptionsClientListByInvoiceSectionOptions) *runtime.Pager[SubscriptionsClientListByInvoiceSectionResponse] { return runtime.NewPager(runtime.PageProcessor[SubscriptionsClientListByInvoiceSectionResponse]{ More: func(page SubscriptionsClientListByInvoiceSectionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/billing/armbilling/zz_generated_transactions_client.go b/sdk/resourcemanager/billing/armbilling/zz_generated_transactions_client.go index d24417e2b633..5b0aa53a5452 100644 --- a/sdk/resourcemanager/billing/armbilling/zz_generated_transactions_client.go +++ b/sdk/resourcemanager/billing/armbilling/zz_generated_transactions_client.go @@ -51,13 +51,14 @@ func NewTransactionsClient(credential azcore.TokenCredential, options *arm.Clien return client, nil } -// ListByInvoice - Lists the transactions for an invoice. Transactions include purchases, refunds and Azure usage charges. +// NewListByInvoicePager - Lists the transactions for an invoice. Transactions include purchases, refunds and Azure usage +// charges. // If the operation fails it returns an *azcore.ResponseError type. // billingAccountName - The ID that uniquely identifies a billing account. // invoiceName - The ID that uniquely identifies an invoice. // options - TransactionsClientListByInvoiceOptions contains the optional parameters for the TransactionsClient.ListByInvoice // method. -func (client *TransactionsClient) ListByInvoice(billingAccountName string, invoiceName string, options *TransactionsClientListByInvoiceOptions) *runtime.Pager[TransactionsClientListByInvoiceResponse] { +func (client *TransactionsClient) NewListByInvoicePager(billingAccountName string, invoiceName string, options *TransactionsClientListByInvoiceOptions) *runtime.Pager[TransactionsClientListByInvoiceResponse] { return runtime.NewPager(runtime.PageProcessor[TransactionsClientListByInvoiceResponse]{ More: func(page TransactionsClientListByInvoiceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/blockchain/armblockchain/CHANGELOG.md b/sdk/resourcemanager/blockchain/armblockchain/CHANGELOG.md index 463c847e97f9..a6b4930c5de4 100644 --- a/sdk/resourcemanager/blockchain/armblockchain/CHANGELOG.md +++ b/sdk/resourcemanager/blockchain/armblockchain/CHANGELOG.md @@ -1,5 +1,23 @@ # Release History +## 0.4.0 (2022-04-15) +### Breaking Changes + +- Function `*MembersClient.ListConsortiumMembers` has been removed +- Function `*MembersClient.ListAll` has been removed +- Function `*OperationsClient.List` has been removed +- Function `*TransactionNodesClient.List` has been removed +- Function `*MembersClient.List` has been removed + +### Features Added + +- New function `*TransactionNodesClient.NewListPager(string, string, *TransactionNodesClientListOptions) *runtime.Pager[TransactionNodesClientListResponse]` +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` +- New function `*MembersClient.NewListConsortiumMembersPager(string, string, *MembersClientListConsortiumMembersOptions) *runtime.Pager[MembersClientListConsortiumMembersResponse]` +- New function `*MembersClient.NewListPager(string, *MembersClientListOptions) *runtime.Pager[MembersClientListResponse]` +- New function `*MembersClient.NewListAllPager(*MembersClientListAllOptions) *runtime.Pager[MembersClientListAllResponse]` + + ## 0.3.0 (2022-04-11) ### Breaking Changes diff --git a/sdk/resourcemanager/blockchain/armblockchain/autorest.md b/sdk/resourcemanager/blockchain/armblockchain/autorest.md index 7ee08345083d..bdda79ecc258 100644 --- a/sdk/resourcemanager/blockchain/armblockchain/autorest.md +++ b/sdk/resourcemanager/blockchain/armblockchain/autorest.md @@ -5,8 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/d48ca7ed92cbb4f972eb6214bdb3200edaf78369/specification/blockchain/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/d48ca7ed92cbb4f972eb6214bdb3200edaf78369/specification/blockchain/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/blockchain/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/blockchain/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/blockchain/armblockchain/ze_generated_example_blockchainmembers_client_test.go b/sdk/resourcemanager/blockchain/armblockchain/ze_generated_example_blockchainmembers_client_test.go index 859f65fc9bac..9a5a456c71f0 100644 --- a/sdk/resourcemanager/blockchain/armblockchain/ze_generated_example_blockchainmembers_client_test.go +++ b/sdk/resourcemanager/blockchain/armblockchain/ze_generated_example_blockchainmembers_client_test.go @@ -147,7 +147,7 @@ func ExampleMembersClient_Update() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_List.json -func ExampleMembersClient_List() { +func ExampleMembersClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -159,7 +159,7 @@ func ExampleMembersClient_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) @@ -175,7 +175,7 @@ func ExampleMembersClient_List() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_ListAll.json -func ExampleMembersClient_ListAll() { +func ExampleMembersClient_NewListAllPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -187,7 +187,7 @@ func ExampleMembersClient_ListAll() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListAll(nil) + pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { @@ -202,7 +202,7 @@ func ExampleMembersClient_ListAll() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_ListConsortiumMembers.json -func ExampleMembersClient_ListConsortiumMembers() { +func ExampleMembersClient_NewListConsortiumMembersPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -214,7 +214,7 @@ func ExampleMembersClient_ListConsortiumMembers() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListConsortiumMembers("", + pager := client.NewListConsortiumMembersPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/blockchain/armblockchain/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/blockchain/armblockchain/ze_generated_example_operations_client_test.go index e805e19e86ee..6079f41fc628 100644 --- a/sdk/resourcemanager/blockchain/armblockchain/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/blockchain/armblockchain/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/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/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/blockchain/armblockchain/ze_generated_example_transactionnodes_client_test.go b/sdk/resourcemanager/blockchain/armblockchain/ze_generated_example_transactionnodes_client_test.go index 9fb6aa63312c..bff4bba1c8a2 100644 --- a/sdk/resourcemanager/blockchain/armblockchain/ze_generated_example_transactionnodes_client_test.go +++ b/sdk/resourcemanager/blockchain/armblockchain/ze_generated_example_transactionnodes_client_test.go @@ -144,7 +144,7 @@ func ExampleTransactionNodesClient_Update() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/TransactionNodes_List.json -func ExampleTransactionNodesClient_List() { +func ExampleTransactionNodesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -156,7 +156,7 @@ func ExampleTransactionNodesClient_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/blockchain/armblockchain/zz_generated_constants.go b/sdk/resourcemanager/blockchain/armblockchain/zz_generated_constants.go index bf57dac67361..bca93a25d4ca 100644 --- a/sdk/resourcemanager/blockchain/armblockchain/zz_generated_constants.go +++ b/sdk/resourcemanager/blockchain/armblockchain/zz_generated_constants.go @@ -10,7 +10,7 @@ package armblockchain const ( moduleName = "armblockchain" - moduleVersion = "v0.3.0" + moduleVersion = "v0.4.0" ) // BlockchainMemberProvisioningState - Gets or sets the blockchain member provision state. diff --git a/sdk/resourcemanager/blockchain/armblockchain/zz_generated_members_client.go b/sdk/resourcemanager/blockchain/armblockchain/zz_generated_members_client.go index 415ecd5c6499..0977b25be45c 100644 --- a/sdk/resourcemanager/blockchain/armblockchain/zz_generated_members_client.go +++ b/sdk/resourcemanager/blockchain/armblockchain/zz_generated_members_client.go @@ -235,12 +235,12 @@ func (client *MembersClient) getHandleResponse(resp *http.Response) (MembersClie return result, nil } -// List - Lists the blockchain members for a resource group. +// NewListPager - Lists the blockchain members for 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 - MembersClientListOptions contains the optional parameters for the MembersClient.List method. -func (client *MembersClient) List(resourceGroupName string, options *MembersClientListOptions) *runtime.Pager[MembersClientListResponse] { +func (client *MembersClient) NewListPager(resourceGroupName string, options *MembersClientListOptions) *runtime.Pager[MembersClientListResponse] { return runtime.NewPager(runtime.PageProcessor[MembersClientListResponse]{ More: func(page MembersClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -355,10 +355,10 @@ func (client *MembersClient) listAPIKeysHandleResponse(resp *http.Response) (Mem return result, nil } -// ListAll - Lists the blockchain members for a subscription. +// NewListAllPager - Lists the blockchain members for a subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - MembersClientListAllOptions contains the optional parameters for the MembersClient.ListAll method. -func (client *MembersClient) ListAll(options *MembersClientListAllOptions) *runtime.Pager[MembersClientListAllResponse] { +func (client *MembersClient) NewListAllPager(options *MembersClientListAllOptions) *runtime.Pager[MembersClientListAllResponse] { return runtime.NewPager(runtime.PageProcessor[MembersClientListAllResponse]{ More: func(page MembersClientListAllResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -413,14 +413,14 @@ func (client *MembersClient) listAllHandleResponse(resp *http.Response) (Members return result, nil } -// ListConsortiumMembers - Lists the consortium members for a blockchain member. +// NewListConsortiumMembersPager - Lists the consortium members for a blockchain member. // If the operation fails it returns an *azcore.ResponseError type. // blockchainMemberName - Blockchain member name. // 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 - MembersClientListConsortiumMembersOptions contains the optional parameters for the MembersClient.ListConsortiumMembers // method. -func (client *MembersClient) ListConsortiumMembers(blockchainMemberName string, resourceGroupName string, options *MembersClientListConsortiumMembersOptions) *runtime.Pager[MembersClientListConsortiumMembersResponse] { +func (client *MembersClient) NewListConsortiumMembersPager(blockchainMemberName string, resourceGroupName string, options *MembersClientListConsortiumMembersOptions) *runtime.Pager[MembersClientListConsortiumMembersResponse] { return runtime.NewPager(runtime.PageProcessor[MembersClientListConsortiumMembersResponse]{ More: func(page MembersClientListConsortiumMembersResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/blockchain/armblockchain/zz_generated_operations_client.go b/sdk/resourcemanager/blockchain/armblockchain/zz_generated_operations_client.go index e748f4d8b091..dcd0e15c4595 100644 --- a/sdk/resourcemanager/blockchain/armblockchain/zz_generated_operations_client.go +++ b/sdk/resourcemanager/blockchain/armblockchain/zz_generated_operations_client.go @@ -48,10 +48,10 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO return client, nil } -// List - Lists the available operations of Microsoft.Blockchain resource provider. +// NewListPager - Lists the available operations of Microsoft.Blockchain resource provider. // If the operation fails it returns an *azcore.ResponseError type. // options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. -func (client *OperationsClient) List(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { +func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[OperationsClientListResponse]{ More: func(page OperationsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/blockchain/armblockchain/zz_generated_transactionnodes_client.go b/sdk/resourcemanager/blockchain/armblockchain/zz_generated_transactionnodes_client.go index 91a208269aa5..339b055ad3a0 100644 --- a/sdk/resourcemanager/blockchain/armblockchain/zz_generated_transactionnodes_client.go +++ b/sdk/resourcemanager/blockchain/armblockchain/zz_generated_transactionnodes_client.go @@ -252,13 +252,13 @@ func (client *TransactionNodesClient) getHandleResponse(resp *http.Response) (Tr return result, nil } -// List - Lists the transaction nodes for a blockchain member. +// NewListPager - Lists the transaction nodes for a blockchain member. // If the operation fails it returns an *azcore.ResponseError type. // blockchainMemberName - Blockchain member name. // 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 - TransactionNodesClientListOptions contains the optional parameters for the TransactionNodesClient.List method. -func (client *TransactionNodesClient) List(blockchainMemberName string, resourceGroupName string, options *TransactionNodesClientListOptions) *runtime.Pager[TransactionNodesClientListResponse] { +func (client *TransactionNodesClient) NewListPager(blockchainMemberName string, resourceGroupName string, options *TransactionNodesClientListOptions) *runtime.Pager[TransactionNodesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[TransactionNodesClientListResponse]{ More: func(page TransactionNodesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/blueprint/armblueprint/CHANGELOG.md b/sdk/resourcemanager/blueprint/armblueprint/CHANGELOG.md index be992a374eb7..7d435d2a44bb 100644 --- a/sdk/resourcemanager/blueprint/armblueprint/CHANGELOG.md +++ b/sdk/resourcemanager/blueprint/armblueprint/CHANGELOG.md @@ -1,5 +1,25 @@ # Release History +## 0.4.0 (2022-04-15) +### Breaking Changes + +- Function `*AssignmentsClient.List` has been removed +- Function `*AssignmentOperationsClient.List` has been removed +- Function `*BlueprintsClient.List` has been removed +- Function `*PublishedArtifactsClient.List` has been removed +- Function `*PublishedBlueprintsClient.List` has been removed +- Function `*ArtifactsClient.List` has been removed + +### Features Added + +- New function `*PublishedBlueprintsClient.NewListPager(string, string, *PublishedBlueprintsClientListOptions) *runtime.Pager[PublishedBlueprintsClientListResponse]` +- New function `*AssignmentsClient.NewListPager(string, *AssignmentsClientListOptions) *runtime.Pager[AssignmentsClientListResponse]` +- New function `*PublishedArtifactsClient.NewListPager(string, string, string, *PublishedArtifactsClientListOptions) *runtime.Pager[PublishedArtifactsClientListResponse]` +- New function `*BlueprintsClient.NewListPager(string, *BlueprintsClientListOptions) *runtime.Pager[BlueprintsClientListResponse]` +- New function `*AssignmentOperationsClient.NewListPager(string, string, *AssignmentOperationsClientListOptions) *runtime.Pager[AssignmentOperationsClientListResponse]` +- New function `*ArtifactsClient.NewListPager(string, string, *ArtifactsClientListOptions) *runtime.Pager[ArtifactsClientListResponse]` + + ## 0.3.0 (2022-04-11) ### Breaking Changes diff --git a/sdk/resourcemanager/blueprint/armblueprint/autorest.md b/sdk/resourcemanager/blueprint/armblueprint/autorest.md index 3f4a03460e8e..641c4d1d44ff 100644 --- a/sdk/resourcemanager/blueprint/armblueprint/autorest.md +++ b/sdk/resourcemanager/blueprint/armblueprint/autorest.md @@ -5,8 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/d48ca7ed92cbb4f972eb6214bdb3200edaf78369/specification/blueprint/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/d48ca7ed92cbb4f972eb6214bdb3200edaf78369/specification/blueprint/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/blueprint/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/blueprint/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/blueprint/armblueprint/ze_generated_example_artifacts_client_test.go b/sdk/resourcemanager/blueprint/armblueprint/ze_generated_example_artifacts_client_test.go index 2e5731358e1e..18468fdd043a 100644 --- a/sdk/resourcemanager/blueprint/armblueprint/ze_generated_example_artifacts_client_test.go +++ b/sdk/resourcemanager/blueprint/armblueprint/ze_generated_example_artifacts_client_test.go @@ -145,7 +145,7 @@ func ExampleArtifactsClient_Delete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Artifact_List.json -func ExampleArtifactsClient_List() { +func ExampleArtifactsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -157,7 +157,7 @@ func ExampleArtifactsClient_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/blueprint/armblueprint/ze_generated_example_assignmentoperations_client_test.go b/sdk/resourcemanager/blueprint/armblueprint/ze_generated_example_assignmentoperations_client_test.go index f0792c5b2acd..4113a710a526 100644 --- a/sdk/resourcemanager/blueprint/armblueprint/ze_generated_example_assignmentoperations_client_test.go +++ b/sdk/resourcemanager/blueprint/armblueprint/ze_generated_example_assignmentoperations_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPAssignment/BlueprintAssignmentOperation_List.json -func ExampleAssignmentOperationsClient_List() { +func ExampleAssignmentOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleAssignmentOperationsClient_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/blueprint/armblueprint/ze_generated_example_assignments_client_test.go b/sdk/resourcemanager/blueprint/armblueprint/ze_generated_example_assignments_client_test.go index 1d51e4f58a70..16529ceeb9d3 100644 --- a/sdk/resourcemanager/blueprint/armblueprint/ze_generated_example_assignments_client_test.go +++ b/sdk/resourcemanager/blueprint/armblueprint/ze_generated_example_assignments_client_test.go @@ -145,7 +145,7 @@ func ExampleAssignmentsClient_WhoIsBlueprint() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPAssignment/BlueprintAssignment_List.json -func ExampleAssignmentsClient_List() { +func ExampleAssignmentsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -157,7 +157,7 @@ func ExampleAssignmentsClient_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/blueprint/armblueprint/ze_generated_example_blueprints_client_test.go b/sdk/resourcemanager/blueprint/armblueprint/ze_generated_example_blueprints_client_test.go index 8371d800d9fb..5630f0336731 100644 --- a/sdk/resourcemanager/blueprint/armblueprint/ze_generated_example_blueprints_client_test.go +++ b/sdk/resourcemanager/blueprint/armblueprint/ze_generated_example_blueprints_client_test.go @@ -125,7 +125,7 @@ func ExampleBlueprintsClient_Delete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/Blueprint_List.json -func ExampleBlueprintsClient_List() { +func ExampleBlueprintsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -137,7 +137,7 @@ func ExampleBlueprintsClient_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/blueprint/armblueprint/ze_generated_example_publishedartifacts_client_test.go b/sdk/resourcemanager/blueprint/armblueprint/ze_generated_example_publishedartifacts_client_test.go index 085ca6277b8b..ac0613fd0fa6 100644 --- a/sdk/resourcemanager/blueprint/armblueprint/ze_generated_example_publishedartifacts_client_test.go +++ b/sdk/resourcemanager/blueprint/armblueprint/ze_generated_example_publishedartifacts_client_test.go @@ -44,7 +44,7 @@ func ExamplePublishedArtifactsClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedArtifact_List.json -func ExamplePublishedArtifactsClient_List() { +func ExamplePublishedArtifactsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -56,7 +56,7 @@ func ExamplePublishedArtifactsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", "", nil) diff --git a/sdk/resourcemanager/blueprint/armblueprint/ze_generated_example_publishedblueprints_client_test.go b/sdk/resourcemanager/blueprint/armblueprint/ze_generated_example_publishedblueprints_client_test.go index 675aa193495c..8556aed84903 100644 --- a/sdk/resourcemanager/blueprint/armblueprint/ze_generated_example_publishedblueprints_client_test.go +++ b/sdk/resourcemanager/blueprint/armblueprint/ze_generated_example_publishedblueprints_client_test.go @@ -93,7 +93,7 @@ func ExamplePublishedBlueprintsClient_Delete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/examples/managementGroupBPDef/SealedBlueprint_List.json -func ExamplePublishedBlueprintsClient_List() { +func ExamplePublishedBlueprintsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -105,7 +105,7 @@ func ExamplePublishedBlueprintsClient_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/blueprint/armblueprint/zz_generated_artifacts_client.go b/sdk/resourcemanager/blueprint/armblueprint/zz_generated_artifacts_client.go index 933a39ed8443..caf620c36581 100644 --- a/sdk/resourcemanager/blueprint/armblueprint/zz_generated_artifacts_client.go +++ b/sdk/resourcemanager/blueprint/armblueprint/zz_generated_artifacts_client.go @@ -215,13 +215,13 @@ func (client *ArtifactsClient) getHandleResponse(resp *http.Response) (Artifacts return result, nil } -// List - List artifacts for a given blueprint definition. +// NewListPager - List artifacts for a given blueprint definition. // If the operation fails it returns an *azcore.ResponseError type. // resourceScope - The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), // subscription (format: '/subscriptions/{subscriptionId}'). // blueprintName - Name of the blueprint definition. // options - ArtifactsClientListOptions contains the optional parameters for the ArtifactsClient.List method. -func (client *ArtifactsClient) List(resourceScope string, blueprintName string, options *ArtifactsClientListOptions) *runtime.Pager[ArtifactsClientListResponse] { +func (client *ArtifactsClient) NewListPager(resourceScope string, blueprintName string, options *ArtifactsClientListOptions) *runtime.Pager[ArtifactsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[ArtifactsClientListResponse]{ More: func(page ArtifactsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/blueprint/armblueprint/zz_generated_assignmentoperations_client.go b/sdk/resourcemanager/blueprint/armblueprint/zz_generated_assignmentoperations_client.go index f2a817f204c4..8a0888666da0 100644 --- a/sdk/resourcemanager/blueprint/armblueprint/zz_generated_assignmentoperations_client.go +++ b/sdk/resourcemanager/blueprint/armblueprint/zz_generated_assignmentoperations_client.go @@ -106,14 +106,14 @@ func (client *AssignmentOperationsClient) getHandleResponse(resp *http.Response) return result, nil } -// List - List operations for given blueprint assignment within a subscription or a management group. +// NewListPager - List operations for given blueprint assignment within a subscription or a management group. // If the operation fails it returns an *azcore.ResponseError type. // resourceScope - The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), // subscription (format: '/subscriptions/{subscriptionId}'). // assignmentName - Name of the blueprint assignment. // options - AssignmentOperationsClientListOptions contains the optional parameters for the AssignmentOperationsClient.List // method. -func (client *AssignmentOperationsClient) List(resourceScope string, assignmentName string, options *AssignmentOperationsClientListOptions) *runtime.Pager[AssignmentOperationsClientListResponse] { +func (client *AssignmentOperationsClient) NewListPager(resourceScope string, assignmentName string, options *AssignmentOperationsClientListOptions) *runtime.Pager[AssignmentOperationsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[AssignmentOperationsClientListResponse]{ More: func(page AssignmentOperationsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/blueprint/armblueprint/zz_generated_assignments_client.go b/sdk/resourcemanager/blueprint/armblueprint/zz_generated_assignments_client.go index 7349fa80c54d..1bfe464c6766 100644 --- a/sdk/resourcemanager/blueprint/armblueprint/zz_generated_assignments_client.go +++ b/sdk/resourcemanager/blueprint/armblueprint/zz_generated_assignments_client.go @@ -203,12 +203,12 @@ func (client *AssignmentsClient) getHandleResponse(resp *http.Response) (Assignm return result, nil } -// List - List blueprint assignments within a subscription or a management group. +// NewListPager - List blueprint assignments within a subscription or a management group. // If the operation fails it returns an *azcore.ResponseError type. // resourceScope - The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), // subscription (format: '/subscriptions/{subscriptionId}'). // options - AssignmentsClientListOptions contains the optional parameters for the AssignmentsClient.List method. -func (client *AssignmentsClient) List(resourceScope string, options *AssignmentsClientListOptions) *runtime.Pager[AssignmentsClientListResponse] { +func (client *AssignmentsClient) NewListPager(resourceScope string, options *AssignmentsClientListOptions) *runtime.Pager[AssignmentsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[AssignmentsClientListResponse]{ More: func(page AssignmentsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/blueprint/armblueprint/zz_generated_blueprints_client.go b/sdk/resourcemanager/blueprint/armblueprint/zz_generated_blueprints_client.go index 41f6a541d471..9832488831a3 100644 --- a/sdk/resourcemanager/blueprint/armblueprint/zz_generated_blueprints_client.go +++ b/sdk/resourcemanager/blueprint/armblueprint/zz_generated_blueprints_client.go @@ -200,12 +200,12 @@ func (client *BlueprintsClient) getHandleResponse(resp *http.Response) (Blueprin return result, nil } -// List - List blueprint definitions. +// NewListPager - List blueprint definitions. // If the operation fails it returns an *azcore.ResponseError type. // resourceScope - The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), // subscription (format: '/subscriptions/{subscriptionId}'). // options - BlueprintsClientListOptions contains the optional parameters for the BlueprintsClient.List method. -func (client *BlueprintsClient) List(resourceScope string, options *BlueprintsClientListOptions) *runtime.Pager[BlueprintsClientListResponse] { +func (client *BlueprintsClient) NewListPager(resourceScope string, options *BlueprintsClientListOptions) *runtime.Pager[BlueprintsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[BlueprintsClientListResponse]{ More: func(page BlueprintsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/blueprint/armblueprint/zz_generated_constants.go b/sdk/resourcemanager/blueprint/armblueprint/zz_generated_constants.go index a76840a7de40..71c5ba47cf18 100644 --- a/sdk/resourcemanager/blueprint/armblueprint/zz_generated_constants.go +++ b/sdk/resourcemanager/blueprint/armblueprint/zz_generated_constants.go @@ -10,7 +10,7 @@ package armblueprint const ( moduleName = "armblueprint" - moduleVersion = "v0.3.0" + moduleVersion = "v0.4.0" ) // ArtifactKind - Specifies the kind of blueprint artifact. diff --git a/sdk/resourcemanager/blueprint/armblueprint/zz_generated_publishedartifacts_client.go b/sdk/resourcemanager/blueprint/armblueprint/zz_generated_publishedartifacts_client.go index 04d284bcf2ff..32f3f0b37e0f 100644 --- a/sdk/resourcemanager/blueprint/armblueprint/zz_generated_publishedartifacts_client.go +++ b/sdk/resourcemanager/blueprint/armblueprint/zz_generated_publishedartifacts_client.go @@ -110,14 +110,14 @@ func (client *PublishedArtifactsClient) getHandleResponse(resp *http.Response) ( return result, nil } -// List - List artifacts for a version of a published blueprint definition. +// NewListPager - List artifacts for a version of a published blueprint definition. // If the operation fails it returns an *azcore.ResponseError type. // resourceScope - The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), // subscription (format: '/subscriptions/{subscriptionId}'). // blueprintName - Name of the blueprint definition. // versionID - Version of the published blueprint definition. // options - PublishedArtifactsClientListOptions contains the optional parameters for the PublishedArtifactsClient.List method. -func (client *PublishedArtifactsClient) List(resourceScope string, blueprintName string, versionID string, options *PublishedArtifactsClientListOptions) *runtime.Pager[PublishedArtifactsClientListResponse] { +func (client *PublishedArtifactsClient) NewListPager(resourceScope string, blueprintName string, versionID string, options *PublishedArtifactsClientListOptions) *runtime.Pager[PublishedArtifactsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[PublishedArtifactsClientListResponse]{ More: func(page PublishedArtifactsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/blueprint/armblueprint/zz_generated_publishedblueprints_client.go b/sdk/resourcemanager/blueprint/armblueprint/zz_generated_publishedblueprints_client.go index c6f55281183c..969d6b282ff9 100644 --- a/sdk/resourcemanager/blueprint/armblueprint/zz_generated_publishedblueprints_client.go +++ b/sdk/resourcemanager/blueprint/armblueprint/zz_generated_publishedblueprints_client.go @@ -219,14 +219,14 @@ func (client *PublishedBlueprintsClient) getHandleResponse(resp *http.Response) return result, nil } -// List - List published versions of given blueprint definition. +// NewListPager - List published versions of given blueprint definition. // If the operation fails it returns an *azcore.ResponseError type. // resourceScope - The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), // subscription (format: '/subscriptions/{subscriptionId}'). // blueprintName - Name of the blueprint definition. // options - PublishedBlueprintsClientListOptions contains the optional parameters for the PublishedBlueprintsClient.List // method. -func (client *PublishedBlueprintsClient) List(resourceScope string, blueprintName string, options *PublishedBlueprintsClientListOptions) *runtime.Pager[PublishedBlueprintsClientListResponse] { +func (client *PublishedBlueprintsClient) NewListPager(resourceScope string, blueprintName string, options *PublishedBlueprintsClientListOptions) *runtime.Pager[PublishedBlueprintsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[PublishedBlueprintsClientListResponse]{ More: func(page PublishedBlueprintsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/botservice/armbotservice/CHANGELOG.md b/sdk/resourcemanager/botservice/armbotservice/CHANGELOG.md index 21467cf243dd..659ad01379ca 100644 --- a/sdk/resourcemanager/botservice/armbotservice/CHANGELOG.md +++ b/sdk/resourcemanager/botservice/armbotservice/CHANGELOG.md @@ -1,5 +1,25 @@ # Release History +## 0.4.0 (2022-04-15) +### Breaking Changes + +- Function `*ChannelsClient.ListByResourceGroup` has been removed +- Function `*BotConnectionClient.ListByBotService` has been removed +- Function `*PrivateEndpointConnectionsClient.List` has been removed +- Function `*BotsClient.ListByResourceGroup` has been removed +- Function `*BotsClient.List` has been removed +- Function `*OperationsClient.List` has been removed + +### Features Added + +- New function `*PrivateEndpointConnectionsClient.NewListPager(string, string, *PrivateEndpointConnectionsClientListOptions) *runtime.Pager[PrivateEndpointConnectionsClientListResponse]` +- New function `*ChannelsClient.NewListByResourceGroupPager(string, string, *ChannelsClientListByResourceGroupOptions) *runtime.Pager[ChannelsClientListByResourceGroupResponse]` +- New function `*BotsClient.NewListPager(*BotsClientListOptions) *runtime.Pager[BotsClientListResponse]` +- New function `*BotConnectionClient.NewListByBotServicePager(string, string, *BotConnectionClientListByBotServiceOptions) *runtime.Pager[BotConnectionClientListByBotServiceResponse]` +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` +- New function `*BotsClient.NewListByResourceGroupPager(string, *BotsClientListByResourceGroupOptions) *runtime.Pager[BotsClientListByResourceGroupResponse]` + + ## 0.3.0 (2022-04-11) ### Breaking Changes diff --git a/sdk/resourcemanager/botservice/armbotservice/autorest.md b/sdk/resourcemanager/botservice/armbotservice/autorest.md index 8540ed1db028..1bc35c89255a 100644 --- a/sdk/resourcemanager/botservice/armbotservice/autorest.md +++ b/sdk/resourcemanager/botservice/armbotservice/autorest.md @@ -5,8 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/d48ca7ed92cbb4f972eb6214bdb3200edaf78369/specification/botservice/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/d48ca7ed92cbb4f972eb6214bdb3200edaf78369/specification/botservice/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/botservice/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/botservice/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/botservice/armbotservice/ze_generated_example_botconnection_client_test.go b/sdk/resourcemanager/botservice/armbotservice/ze_generated_example_botconnection_client_test.go index b0330887ac22..b0a223d0e412 100644 --- a/sdk/resourcemanager/botservice/armbotservice/ze_generated_example_botconnection_client_test.go +++ b/sdk/resourcemanager/botservice/armbotservice/ze_generated_example_botconnection_client_test.go @@ -208,7 +208,7 @@ func ExampleBotConnectionClient_Delete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListConnectionsByBotService.json -func ExampleBotConnectionClient_ListByBotService() { +func ExampleBotConnectionClient_NewListByBotServicePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -220,7 +220,7 @@ func ExampleBotConnectionClient_ListByBotService() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByBotService("", + pager := client.NewListByBotServicePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/botservice/armbotservice/ze_generated_example_bots_client_test.go b/sdk/resourcemanager/botservice/armbotservice/ze_generated_example_bots_client_test.go index 8dd5973be41f..bd9a04d8690a 100644 --- a/sdk/resourcemanager/botservice/armbotservice/ze_generated_example_bots_client_test.go +++ b/sdk/resourcemanager/botservice/armbotservice/ze_generated_example_bots_client_test.go @@ -184,7 +184,7 @@ func ExampleBotsClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListBotsByResourceGroup.json -func ExampleBotsClient_ListByResourceGroup() { +func ExampleBotsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -196,7 +196,7 @@ func ExampleBotsClient_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) @@ -212,7 +212,7 @@ func ExampleBotsClient_ListByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListBotsBySubscription.json -func ExampleBotsClient_List() { +func ExampleBotsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -224,7 +224,7 @@ func ExampleBotsClient_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/botservice/armbotservice/ze_generated_example_channels_client_test.go b/sdk/resourcemanager/botservice/armbotservice/ze_generated_example_channels_client_test.go index 39ce2ccbc81c..d9739dab5463 100644 --- a/sdk/resourcemanager/botservice/armbotservice/ze_generated_example_channels_client_test.go +++ b/sdk/resourcemanager/botservice/armbotservice/ze_generated_example_channels_client_test.go @@ -166,7 +166,7 @@ func ExampleChannelsClient_ListWithKeys() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListChannelsByBotService.json -func ExampleChannelsClient_ListByResourceGroup() { +func ExampleChannelsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -178,7 +178,7 @@ func ExampleChannelsClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/botservice/armbotservice/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/botservice/armbotservice/ze_generated_example_operations_client_test.go index 3612891c942a..428f06e4bb40 100644 --- a/sdk/resourcemanager/botservice/armbotservice/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/botservice/armbotservice/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/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetOperations.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/botservice/armbotservice/ze_generated_example_privateendpointconnections_client_test.go b/sdk/resourcemanager/botservice/armbotservice/ze_generated_example_privateendpointconnections_client_test.go index 7b469930a936..85813ec56169 100644 --- a/sdk/resourcemanager/botservice/armbotservice/ze_generated_example_privateendpointconnections_client_test.go +++ b/sdk/resourcemanager/botservice/armbotservice/ze_generated_example_privateendpointconnections_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListPrivateEndpointConnections.json -func ExamplePrivateEndpointConnectionsClient_List() { +func ExamplePrivateEndpointConnectionsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExamplePrivateEndpointConnectionsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/botservice/armbotservice/zz_generated_botconnection_client.go b/sdk/resourcemanager/botservice/armbotservice/zz_generated_botconnection_client.go index f51abeb842af..3742581f5371 100644 --- a/sdk/resourcemanager/botservice/armbotservice/zz_generated_botconnection_client.go +++ b/sdk/resourcemanager/botservice/armbotservice/zz_generated_botconnection_client.go @@ -226,13 +226,13 @@ func (client *BotConnectionClient) getHandleResponse(resp *http.Response) (BotCo return result, nil } -// ListByBotService - Returns all the Connection Settings registered to a particular BotService resource +// NewListByBotServicePager - Returns all the Connection Settings registered to a particular BotService resource // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the Bot resource group in the user subscription. // resourceName - The name of the Bot resource. // options - BotConnectionClientListByBotServiceOptions contains the optional parameters for the BotConnectionClient.ListByBotService // method. -func (client *BotConnectionClient) ListByBotService(resourceGroupName string, resourceName string, options *BotConnectionClientListByBotServiceOptions) *runtime.Pager[BotConnectionClientListByBotServiceResponse] { +func (client *BotConnectionClient) NewListByBotServicePager(resourceGroupName string, resourceName string, options *BotConnectionClientListByBotServiceOptions) *runtime.Pager[BotConnectionClientListByBotServiceResponse] { return runtime.NewPager(runtime.PageProcessor[BotConnectionClientListByBotServiceResponse]{ More: func(page BotConnectionClientListByBotServiceResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/botservice/armbotservice/zz_generated_bots_client.go b/sdk/resourcemanager/botservice/armbotservice/zz_generated_bots_client.go index 95857d0f3efc..0b6c1561f40c 100644 --- a/sdk/resourcemanager/botservice/armbotservice/zz_generated_bots_client.go +++ b/sdk/resourcemanager/botservice/armbotservice/zz_generated_bots_client.go @@ -254,10 +254,10 @@ func (client *BotsClient) getCheckNameAvailabilityHandleResponse(resp *http.Resp return result, nil } -// List - Returns all the resources of a particular type belonging to a subscription. +// NewListPager - Returns all the resources of a particular type belonging to a subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - BotsClientListOptions contains the optional parameters for the BotsClient.List method. -func (client *BotsClient) List(options *BotsClientListOptions) *runtime.Pager[BotsClientListResponse] { +func (client *BotsClient) NewListPager(options *BotsClientListOptions) *runtime.Pager[BotsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[BotsClientListResponse]{ More: func(page BotsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -312,12 +312,12 @@ func (client *BotsClient) listHandleResponse(resp *http.Response) (BotsClientLis return result, nil } -// ListByResourceGroup - Returns all the resources of a particular type belonging to a resource group +// NewListByResourceGroupPager - Returns all the resources of a particular type belonging to a resource group // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the Bot resource group in the user subscription. // options - BotsClientListByResourceGroupOptions contains the optional parameters for the BotsClient.ListByResourceGroup // method. -func (client *BotsClient) ListByResourceGroup(resourceGroupName string, options *BotsClientListByResourceGroupOptions) *runtime.Pager[BotsClientListByResourceGroupResponse] { +func (client *BotsClient) NewListByResourceGroupPager(resourceGroupName string, options *BotsClientListByResourceGroupOptions) *runtime.Pager[BotsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[BotsClientListByResourceGroupResponse]{ More: func(page BotsClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/botservice/armbotservice/zz_generated_channels_client.go b/sdk/resourcemanager/botservice/armbotservice/zz_generated_channels_client.go index e5182e7ac27d..53bd95a5bbbd 100644 --- a/sdk/resourcemanager/botservice/armbotservice/zz_generated_channels_client.go +++ b/sdk/resourcemanager/botservice/armbotservice/zz_generated_channels_client.go @@ -226,13 +226,13 @@ func (client *ChannelsClient) getHandleResponse(resp *http.Response) (ChannelsCl return result, nil } -// ListByResourceGroup - Returns all the Channel registrations of a particular BotService resource +// NewListByResourceGroupPager - Returns all the Channel registrations of a particular BotService resource // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the Bot resource group in the user subscription. // resourceName - The name of the Bot resource. // options - ChannelsClientListByResourceGroupOptions contains the optional parameters for the ChannelsClient.ListByResourceGroup // method. -func (client *ChannelsClient) ListByResourceGroup(resourceGroupName string, resourceName string, options *ChannelsClientListByResourceGroupOptions) *runtime.Pager[ChannelsClientListByResourceGroupResponse] { +func (client *ChannelsClient) NewListByResourceGroupPager(resourceGroupName string, resourceName string, options *ChannelsClientListByResourceGroupOptions) *runtime.Pager[ChannelsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[ChannelsClientListByResourceGroupResponse]{ More: func(page ChannelsClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/botservice/armbotservice/zz_generated_constants.go b/sdk/resourcemanager/botservice/armbotservice/zz_generated_constants.go index a7349d102958..6dbc5665df83 100644 --- a/sdk/resourcemanager/botservice/armbotservice/zz_generated_constants.go +++ b/sdk/resourcemanager/botservice/armbotservice/zz_generated_constants.go @@ -10,7 +10,7 @@ package armbotservice const ( moduleName = "armbotservice" - moduleVersion = "v0.3.0" + moduleVersion = "v0.4.0" ) type ChannelName string diff --git a/sdk/resourcemanager/botservice/armbotservice/zz_generated_operations_client.go b/sdk/resourcemanager/botservice/armbotservice/zz_generated_operations_client.go index 68b7f46f142b..9ab5547a7237 100644 --- a/sdk/resourcemanager/botservice/armbotservice/zz_generated_operations_client.go +++ b/sdk/resourcemanager/botservice/armbotservice/zz_generated_operations_client.go @@ -48,10 +48,10 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO return client, nil } -// List - Lists all the available BotService operations. +// NewListPager - Lists all the available BotService 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/botservice/armbotservice/zz_generated_privateendpointconnections_client.go b/sdk/resourcemanager/botservice/armbotservice/zz_generated_privateendpointconnections_client.go index ce8d65e74b18..8baec40cf4ec 100644 --- a/sdk/resourcemanager/botservice/armbotservice/zz_generated_privateendpointconnections_client.go +++ b/sdk/resourcemanager/botservice/armbotservice/zz_generated_privateendpointconnections_client.go @@ -229,13 +229,13 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res return result, nil } -// List - List all the private endpoint connections associated with the Bot. +// NewListPager - List all the private endpoint connections associated with the Bot. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the Bot resource group in the user subscription. // resourceName - The name of the Bot 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 false diff --git a/sdk/resourcemanager/cdn/armcdn/CHANGELOG.md b/sdk/resourcemanager/cdn/armcdn/CHANGELOG.md index c0af9dea2498..7ec53b13cb7f 100644 --- a/sdk/resourcemanager/cdn/armcdn/CHANGELOG.md +++ b/sdk/resourcemanager/cdn/armcdn/CHANGELOG.md @@ -1,5 +1,65 @@ # Release History +## 0.5.0 (2022-04-15) +### Breaking Changes + +- Function `*ManagedRuleSetsClient.List` has been removed +- Function `*EndpointsClient.ListResourceUsage` has been removed +- Function `*OriginsClient.ListByEndpoint` has been removed +- Function `*AFDOriginGroupsClient.ListResourceUsage` has been removed +- Function `*ProfilesClient.List` has been removed +- Function `*RuleSetsClient.ListByProfile` has been removed +- Function `*AFDEndpointsClient.ListResourceUsage` has been removed +- Function `*OriginGroupsClient.ListByEndpoint` has been removed +- Function `*SecretsClient.ListByProfile` has been removed +- Function `*AFDOriginGroupsClient.ListByProfile` has been removed +- Function `*ProfilesClient.ListResourceUsage` has been removed +- Function `*SecurityPoliciesClient.ListByProfile` has been removed +- Function `*ProfilesClient.ListByResourceGroup` has been removed +- Function `*AFDOriginsClient.ListByOriginGroup` has been removed +- Function `*CustomDomainsClient.ListByEndpoint` has been removed +- Function `*EndpointsClient.ListByProfile` has been removed +- Function `*AFDCustomDomainsClient.ListByProfile` has been removed +- Function `*AFDEndpointsClient.ListByProfile` has been removed +- Function `*ResourceUsageClient.List` has been removed +- Function `*AFDProfilesClient.ListResourceUsage` has been removed +- Function `*RulesClient.ListByRuleSet` has been removed +- Function `*OperationsClient.List` has been removed +- Function `*EdgeNodesClient.List` has been removed +- Function `*RoutesClient.ListByEndpoint` has been removed +- Function `*PoliciesClient.List` has been removed +- Function `*RuleSetsClient.ListResourceUsage` has been removed + +### Features Added + +- New function `*RuleSetsClient.NewListResourceUsagePager(string, string, string, *RuleSetsClientListResourceUsageOptions) *runtime.Pager[RuleSetsClientListResourceUsageResponse]` +- New function `*ProfilesClient.NewListResourceUsagePager(string, string, *ProfilesClientListResourceUsageOptions) *runtime.Pager[ProfilesClientListResourceUsageResponse]` +- New function `*SecretsClient.NewListByProfilePager(string, string, *SecretsClientListByProfileOptions) *runtime.Pager[SecretsClientListByProfileResponse]` +- New function `*AFDOriginsClient.NewListByOriginGroupPager(string, string, string, *AFDOriginsClientListByOriginGroupOptions) *runtime.Pager[AFDOriginsClientListByOriginGroupResponse]` +- New function `*ProfilesClient.NewListByResourceGroupPager(string, *ProfilesClientListByResourceGroupOptions) *runtime.Pager[ProfilesClientListByResourceGroupResponse]` +- New function `*SecurityPoliciesClient.NewListByProfilePager(string, string, *SecurityPoliciesClientListByProfileOptions) *runtime.Pager[SecurityPoliciesClientListByProfileResponse]` +- New function `*CustomDomainsClient.NewListByEndpointPager(string, string, string, *CustomDomainsClientListByEndpointOptions) *runtime.Pager[CustomDomainsClientListByEndpointResponse]` +- New function `*EndpointsClient.NewListByProfilePager(string, string, *EndpointsClientListByProfileOptions) *runtime.Pager[EndpointsClientListByProfileResponse]` +- New function `*ManagedRuleSetsClient.NewListPager(*ManagedRuleSetsClientListOptions) *runtime.Pager[ManagedRuleSetsClientListResponse]` +- New function `*EndpointsClient.NewListResourceUsagePager(string, string, string, *EndpointsClientListResourceUsageOptions) *runtime.Pager[EndpointsClientListResourceUsageResponse]` +- New function `*EdgeNodesClient.NewListPager(*EdgeNodesClientListOptions) *runtime.Pager[EdgeNodesClientListResponse]` +- New function `*RulesClient.NewListByRuleSetPager(string, string, string, *RulesClientListByRuleSetOptions) *runtime.Pager[RulesClientListByRuleSetResponse]` +- New function `*ResourceUsageClient.NewListPager(*ResourceUsageClientListOptions) *runtime.Pager[ResourceUsageClientListResponse]` +- New function `*RoutesClient.NewListByEndpointPager(string, string, string, *RoutesClientListByEndpointOptions) *runtime.Pager[RoutesClientListByEndpointResponse]` +- New function `*AFDCustomDomainsClient.NewListByProfilePager(string, string, *AFDCustomDomainsClientListByProfileOptions) *runtime.Pager[AFDCustomDomainsClientListByProfileResponse]` +- New function `*AFDProfilesClient.NewListResourceUsagePager(string, string, *AFDProfilesClientListResourceUsageOptions) *runtime.Pager[AFDProfilesClientListResourceUsageResponse]` +- New function `*AFDEndpointsClient.NewListByProfilePager(string, string, *AFDEndpointsClientListByProfileOptions) *runtime.Pager[AFDEndpointsClientListByProfileResponse]` +- New function `*ProfilesClient.NewListPager(*ProfilesClientListOptions) *runtime.Pager[ProfilesClientListResponse]` +- New function `*PoliciesClient.NewListPager(string, *PoliciesClientListOptions) *runtime.Pager[PoliciesClientListResponse]` +- New function `*RuleSetsClient.NewListByProfilePager(string, string, *RuleSetsClientListByProfileOptions) *runtime.Pager[RuleSetsClientListByProfileResponse]` +- New function `*OriginGroupsClient.NewListByEndpointPager(string, string, string, *OriginGroupsClientListByEndpointOptions) *runtime.Pager[OriginGroupsClientListByEndpointResponse]` +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` +- New function `*AFDOriginGroupsClient.NewListByProfilePager(string, string, *AFDOriginGroupsClientListByProfileOptions) *runtime.Pager[AFDOriginGroupsClientListByProfileResponse]` +- New function `*AFDEndpointsClient.NewListResourceUsagePager(string, string, string, *AFDEndpointsClientListResourceUsageOptions) *runtime.Pager[AFDEndpointsClientListResourceUsageResponse]` +- New function `*OriginsClient.NewListByEndpointPager(string, string, string, *OriginsClientListByEndpointOptions) *runtime.Pager[OriginsClientListByEndpointResponse]` +- New function `*AFDOriginGroupsClient.NewListResourceUsagePager(string, string, string, *AFDOriginGroupsClientListResourceUsageOptions) *runtime.Pager[AFDOriginGroupsClientListResourceUsageResponse]` + + ## 0.4.0 (2022-04-11) ### Breaking Changes diff --git a/sdk/resourcemanager/cdn/armcdn/autorest.md b/sdk/resourcemanager/cdn/armcdn/autorest.md index 40f17cac4db7..806271bf0c93 100644 --- a/sdk/resourcemanager/cdn/armcdn/autorest.md +++ b/sdk/resourcemanager/cdn/armcdn/autorest.md @@ -5,10 +5,10 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/d48ca7ed92cbb4f972eb6214bdb3200edaf78369/specification/cdn/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/d48ca7ed92cbb4f972eb6214bdb3200edaf78369/specification/cdn/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/cdn/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/cdn/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.4.0 +module-version: 0.5.0 modelerfour: lenient-model-deduplication: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_afdcustomdomains_client_test.go b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_afdcustomdomains_client_test.go index f623d7309074..0b581f118267 100644 --- a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_afdcustomdomains_client_test.go +++ b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_afdcustomdomains_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/AFDCustomDomains_ListByProfile.json -func ExampleAFDCustomDomainsClient_ListByProfile() { +func ExampleAFDCustomDomainsClient_NewListByProfilePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleAFDCustomDomainsClient_ListByProfile() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByProfile("", + pager := client.NewListByProfilePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_afdendpoints_client_test.go b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_afdendpoints_client_test.go index df03254fe9b9..124beadc77b4 100644 --- a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_afdendpoints_client_test.go +++ b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_afdendpoints_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/AFDEndpoints_ListByProfile.json -func ExampleAFDEndpointsClient_ListByProfile() { +func ExampleAFDEndpointsClient_NewListByProfilePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleAFDEndpointsClient_ListByProfile() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByProfile("", + pager := client.NewListByProfilePager("", "", nil) for pager.More() { @@ -215,7 +215,7 @@ func ExampleAFDEndpointsClient_BeginPurgeContent() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/AFDEndpoints_ListResourceUsage.json -func ExampleAFDEndpointsClient_ListResourceUsage() { +func ExampleAFDEndpointsClient_NewListResourceUsagePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -227,7 +227,7 @@ func ExampleAFDEndpointsClient_ListResourceUsage() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListResourceUsage("", + pager := client.NewListResourceUsagePager("", "", "", nil) diff --git a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_afdorigingroups_client_test.go b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_afdorigingroups_client_test.go index 4a4f8b5d338d..e6f97a351751 100644 --- a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_afdorigingroups_client_test.go +++ b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_afdorigingroups_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/AFDOriginGroups_ListByProfile.json -func ExampleAFDOriginGroupsClient_ListByProfile() { +func ExampleAFDOriginGroupsClient_NewListByProfilePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleAFDOriginGroupsClient_ListByProfile() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByProfile("", + pager := client.NewListByProfilePager("", "", nil) for pager.More() { @@ -198,7 +198,7 @@ func ExampleAFDOriginGroupsClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/AFDOriginGroups_ListResourceUsage.json -func ExampleAFDOriginGroupsClient_ListResourceUsage() { +func ExampleAFDOriginGroupsClient_NewListResourceUsagePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -210,7 +210,7 @@ func ExampleAFDOriginGroupsClient_ListResourceUsage() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListResourceUsage("", + pager := client.NewListResourceUsagePager("", "", "", nil) diff --git a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_afdorigins_client_test.go b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_afdorigins_client_test.go index 02da92f9be9f..ed5e58384359 100644 --- a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_afdorigins_client_test.go +++ b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_afdorigins_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/AFDOrigins_ListByOriginGroup.json -func ExampleAFDOriginsClient_ListByOriginGroup() { +func ExampleAFDOriginsClient_NewListByOriginGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleAFDOriginsClient_ListByOriginGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByOriginGroup("", + pager := client.NewListByOriginGroupPager("", "", "", nil) diff --git a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_afdprofiles_client_test.go b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_afdprofiles_client_test.go index a287952a031e..760b0e6148e1 100644 --- a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_afdprofiles_client_test.go +++ b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_afdprofiles_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/AFDProfiles_ListResourceUsage.json -func ExampleAFDProfilesClient_ListResourceUsage() { +func ExampleAFDProfilesClient_NewListResourceUsagePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleAFDProfilesClient_ListResourceUsage() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListResourceUsage("", + pager := client.NewListResourceUsagePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_customdomains_client_test.go b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_customdomains_client_test.go index 94ea2c97aa3f..4300c64e387f 100644 --- a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_customdomains_client_test.go +++ b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_customdomains_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/CustomDomains_ListByEndpoint.json -func ExampleCustomDomainsClient_ListByEndpoint() { +func ExampleCustomDomainsClient_NewListByEndpointPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleCustomDomainsClient_ListByEndpoint() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByEndpoint("", + pager := client.NewListByEndpointPager("", "", "", nil) diff --git a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_edgenodes_client_test.go b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_edgenodes_client_test.go index 66993dfa5498..84db27780105 100644 --- a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_edgenodes_client_test.go +++ b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_edgenodes_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/EdgeNodes_List.json -func ExampleEdgeNodesClient_List() { +func ExampleEdgeNodesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleEdgeNodesClient_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/cdn/armcdn/ze_generated_example_endpoints_client_test.go b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_endpoints_client_test.go index ae5dbc906a60..16dfe33f6e73 100644 --- a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_endpoints_client_test.go +++ b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_endpoints_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/Endpoints_ListByProfile.json -func ExampleEndpointsClient_ListByProfile() { +func ExampleEndpointsClient_NewListByProfilePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleEndpointsClient_ListByProfile() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByProfile("", + pager := client.NewListByProfilePager("", "", nil) for pager.More() { @@ -444,7 +444,7 @@ func ExampleEndpointsClient_ValidateCustomDomain() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/Endpoints_ListResourceUsage.json -func ExampleEndpointsClient_ListResourceUsage() { +func ExampleEndpointsClient_NewListResourceUsagePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -456,7 +456,7 @@ func ExampleEndpointsClient_ListResourceUsage() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListResourceUsage("", + pager := client.NewListResourceUsagePager("", "", "", nil) diff --git a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_managedrulesets_client_test.go b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_managedrulesets_client_test.go index e6f99dce789f..64ed3c37c6c9 100644 --- a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_managedrulesets_client_test.go +++ b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_managedrulesets_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/WafListManagedRuleSets.json -func ExampleManagedRuleSetsClient_List() { +func ExampleManagedRuleSetsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleManagedRuleSetsClient_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/cdn/armcdn/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_operations_client_test.go index 49ea87c7b387..dde5c29a865c 100644 --- a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/cdn/armcdn/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/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-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/cdn/armcdn/ze_generated_example_origingroups_client_test.go b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_origingroups_client_test.go index 548b4c93633c..4382f4f7228b 100644 --- a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_origingroups_client_test.go +++ b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_origingroups_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/OriginGroups_ListByEndpoint.json -func ExampleOriginGroupsClient_ListByEndpoint() { +func ExampleOriginGroupsClient_NewListByEndpointPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleOriginGroupsClient_ListByEndpoint() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByEndpoint("", + pager := client.NewListByEndpointPager("", "", "", nil) diff --git a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_origins_client_test.go b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_origins_client_test.go index 4b01cbe7767b..e112ca4cc369 100644 --- a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_origins_client_test.go +++ b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_origins_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/Origins_ListByEndpoint.json -func ExampleOriginsClient_ListByEndpoint() { +func ExampleOriginsClient_NewListByEndpointPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleOriginsClient_ListByEndpoint() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByEndpoint("", + pager := client.NewListByEndpointPager("", "", "", nil) diff --git a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_policies_client_test.go b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_policies_client_test.go index 08d59854cb9c..7d8049adba71 100644 --- a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_policies_client_test.go +++ b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_policies_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/WafListPolicies.json -func ExamplePoliciesClient_List() { +func ExamplePoliciesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExamplePoliciesClient_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/cdn/armcdn/ze_generated_example_profiles_client_test.go b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_profiles_client_test.go index aa0b7551d796..8e24b978c342 100644 --- a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_profiles_client_test.go +++ b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_profiles_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/Profiles_List.json -func ExampleProfilesClient_List() { +func ExampleProfilesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleProfilesClient_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 ExampleProfilesClient_List() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/Profiles_ListByResourceGroup.json -func ExampleProfilesClient_ListByResourceGroup() { +func ExampleProfilesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -59,7 +59,7 @@ func ExampleProfilesClient_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) @@ -224,7 +224,7 @@ func ExampleProfilesClient_ListSupportedOptimizationTypes() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/Profiles_ListResourceUsage.json -func ExampleProfilesClient_ListResourceUsage() { +func ExampleProfilesClient_NewListResourceUsagePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -236,7 +236,7 @@ func ExampleProfilesClient_ListResourceUsage() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListResourceUsage("", + pager := client.NewListResourceUsagePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_resourceusage_client_test.go b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_resourceusage_client_test.go index 9492e5c8b44c..a47405e92ae3 100644 --- a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_resourceusage_client_test.go +++ b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_resourceusage_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/ResourceUsage_List.json -func ExampleResourceUsageClient_List() { +func ExampleResourceUsageClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleResourceUsageClient_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/cdn/armcdn/ze_generated_example_routes_client_test.go b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_routes_client_test.go index 4f658cbcb846..cfedf2f1b83d 100644 --- a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_routes_client_test.go +++ b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_routes_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/Routes_ListByEndpoint.json -func ExampleRoutesClient_ListByEndpoint() { +func ExampleRoutesClient_NewListByEndpointPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleRoutesClient_ListByEndpoint() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByEndpoint("", + pager := client.NewListByEndpointPager("", "", "", nil) diff --git a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_rules_client_test.go b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_rules_client_test.go index eaf1f6d48d69..31f8e6372add 100644 --- a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_rules_client_test.go +++ b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_rules_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/Rules_ListByRuleSet.json -func ExampleRulesClient_ListByRuleSet() { +func ExampleRulesClient_NewListByRuleSetPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleRulesClient_ListByRuleSet() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByRuleSet("", + pager := client.NewListByRuleSetPager("", "", "", nil) diff --git a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_rulesets_client_test.go b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_rulesets_client_test.go index f47c67a5c3ae..01386c443721 100644 --- a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_rulesets_client_test.go +++ b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_rulesets_client_test.go @@ -19,7 +19,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/RuleSets_ListByProfile.json -func ExampleRuleSetsClient_ListByProfile() { +func ExampleRuleSetsClient_NewListByProfilePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -31,7 +31,7 @@ func ExampleRuleSetsClient_ListByProfile() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByProfile("", + pager := client.NewListByProfilePager("", "", nil) for pager.More() { @@ -129,7 +129,7 @@ func ExampleRuleSetsClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/RuleSets_ListResourceUsage.json -func ExampleRuleSetsClient_ListResourceUsage() { +func ExampleRuleSetsClient_NewListResourceUsagePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -141,7 +141,7 @@ func ExampleRuleSetsClient_ListResourceUsage() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListResourceUsage("", + pager := client.NewListResourceUsagePager("", "", "", nil) diff --git a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_secrets_client_test.go b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_secrets_client_test.go index d6cc20e8d6ce..1a68192d77f0 100644 --- a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_secrets_client_test.go +++ b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_secrets_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/Secrets_ListByProfile.json -func ExampleSecretsClient_ListByProfile() { +func ExampleSecretsClient_NewListByProfilePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleSecretsClient_ListByProfile() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByProfile("", + pager := client.NewListByProfilePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_securitypolicies_client_test.go b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_securitypolicies_client_test.go index 4ff6ac2b5942..a6d3ec06fe92 100644 --- a/sdk/resourcemanager/cdn/armcdn/ze_generated_example_securitypolicies_client_test.go +++ b/sdk/resourcemanager/cdn/armcdn/ze_generated_example_securitypolicies_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/SecurityPolicies_ListByProfile.json -func ExampleSecurityPoliciesClient_ListByProfile() { +func ExampleSecurityPoliciesClient_NewListByProfilePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleSecurityPoliciesClient_ListByProfile() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByProfile("", + pager := client.NewListByProfilePager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/cdn/armcdn/zz_generated_afdcustomdomains_client.go b/sdk/resourcemanager/cdn/armcdn/zz_generated_afdcustomdomains_client.go index 8bf5ba370421..aa35de72bbb9 100644 --- a/sdk/resourcemanager/cdn/armcdn/zz_generated_afdcustomdomains_client.go +++ b/sdk/resourcemanager/cdn/armcdn/zz_generated_afdcustomdomains_client.go @@ -257,14 +257,14 @@ func (client *AFDCustomDomainsClient) getHandleResponse(resp *http.Response) (AF return result, nil } -// ListByProfile - Lists existing AzureFrontDoor domains. +// NewListByProfilePager - Lists existing AzureFrontDoor domains. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // profileName - Name of the Azure Front Door Standard or Azure Front Door Premium profile or CDN profile which is unique // within the resource group. // options - AFDCustomDomainsClientListByProfileOptions contains the optional parameters for the AFDCustomDomainsClient.ListByProfile // method. -func (client *AFDCustomDomainsClient) ListByProfile(resourceGroupName string, profileName string, options *AFDCustomDomainsClientListByProfileOptions) *runtime.Pager[AFDCustomDomainsClientListByProfileResponse] { +func (client *AFDCustomDomainsClient) NewListByProfilePager(resourceGroupName string, profileName string, options *AFDCustomDomainsClientListByProfileOptions) *runtime.Pager[AFDCustomDomainsClientListByProfileResponse] { return runtime.NewPager(runtime.PageProcessor[AFDCustomDomainsClientListByProfileResponse]{ More: func(page AFDCustomDomainsClientListByProfileResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cdn/armcdn/zz_generated_afdendpoints_client.go b/sdk/resourcemanager/cdn/armcdn/zz_generated_afdendpoints_client.go index ecede5d0aa21..eaa3a559ffba 100644 --- a/sdk/resourcemanager/cdn/armcdn/zz_generated_afdendpoints_client.go +++ b/sdk/resourcemanager/cdn/armcdn/zz_generated_afdendpoints_client.go @@ -259,14 +259,14 @@ func (client *AFDEndpointsClient) getHandleResponse(resp *http.Response) (AFDEnd return result, nil } -// ListByProfile - Lists existing AzureFrontDoor endpoints. +// NewListByProfilePager - Lists existing AzureFrontDoor endpoints. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // profileName - Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource // group. // options - AFDEndpointsClientListByProfileOptions contains the optional parameters for the AFDEndpointsClient.ListByProfile // method. -func (client *AFDEndpointsClient) ListByProfile(resourceGroupName string, profileName string, options *AFDEndpointsClientListByProfileOptions) *runtime.Pager[AFDEndpointsClientListByProfileResponse] { +func (client *AFDEndpointsClient) NewListByProfilePager(resourceGroupName string, profileName string, options *AFDEndpointsClientListByProfileOptions) *runtime.Pager[AFDEndpointsClientListByProfileResponse] { return runtime.NewPager(runtime.PageProcessor[AFDEndpointsClientListByProfileResponse]{ More: func(page AFDEndpointsClientListByProfileResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -329,7 +329,7 @@ func (client *AFDEndpointsClient) listByProfileHandleResponse(resp *http.Respons return result, nil } -// ListResourceUsage - Checks the quota and actual usage of endpoints under the given CDN profile. +// NewListResourceUsagePager - Checks the quota and actual usage of endpoints under the given CDN profile. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // profileName - Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource @@ -337,7 +337,7 @@ func (client *AFDEndpointsClient) listByProfileHandleResponse(resp *http.Respons // endpointName - Name of the endpoint under the profile which is unique globally. // options - AFDEndpointsClientListResourceUsageOptions contains the optional parameters for the AFDEndpointsClient.ListResourceUsage // method. -func (client *AFDEndpointsClient) ListResourceUsage(resourceGroupName string, profileName string, endpointName string, options *AFDEndpointsClientListResourceUsageOptions) *runtime.Pager[AFDEndpointsClientListResourceUsageResponse] { +func (client *AFDEndpointsClient) NewListResourceUsagePager(resourceGroupName string, profileName string, endpointName string, options *AFDEndpointsClientListResourceUsageOptions) *runtime.Pager[AFDEndpointsClientListResourceUsageResponse] { return runtime.NewPager(runtime.PageProcessor[AFDEndpointsClientListResourceUsageResponse]{ More: func(page AFDEndpointsClientListResourceUsageResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cdn/armcdn/zz_generated_afdorigingroups_client.go b/sdk/resourcemanager/cdn/armcdn/zz_generated_afdorigingroups_client.go index b8253c83f6e4..56d2b8f2974f 100644 --- a/sdk/resourcemanager/cdn/armcdn/zz_generated_afdorigingroups_client.go +++ b/sdk/resourcemanager/cdn/armcdn/zz_generated_afdorigingroups_client.go @@ -254,14 +254,14 @@ func (client *AFDOriginGroupsClient) getHandleResponse(resp *http.Response) (AFD return result, nil } -// ListByProfile - Lists all of the existing origin groups within a profile. +// NewListByProfilePager - Lists all of the existing origin groups within a profile. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // profileName - Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource // group. // options - AFDOriginGroupsClientListByProfileOptions contains the optional parameters for the AFDOriginGroupsClient.ListByProfile // method. -func (client *AFDOriginGroupsClient) ListByProfile(resourceGroupName string, profileName string, options *AFDOriginGroupsClientListByProfileOptions) *runtime.Pager[AFDOriginGroupsClientListByProfileResponse] { +func (client *AFDOriginGroupsClient) NewListByProfilePager(resourceGroupName string, profileName string, options *AFDOriginGroupsClientListByProfileOptions) *runtime.Pager[AFDOriginGroupsClientListByProfileResponse] { return runtime.NewPager(runtime.PageProcessor[AFDOriginGroupsClientListByProfileResponse]{ More: func(page AFDOriginGroupsClientListByProfileResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -324,7 +324,7 @@ func (client *AFDOriginGroupsClient) listByProfileHandleResponse(resp *http.Resp return result, nil } -// ListResourceUsage - Checks the quota and actual usage of endpoints under the given CDN profile. +// NewListResourceUsagePager - Checks the quota and actual usage of endpoints under the given CDN profile. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // profileName - Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource @@ -332,7 +332,7 @@ func (client *AFDOriginGroupsClient) listByProfileHandleResponse(resp *http.Resp // originGroupName - Name of the origin group which is unique within the endpoint. // options - AFDOriginGroupsClientListResourceUsageOptions contains the optional parameters for the AFDOriginGroupsClient.ListResourceUsage // method. -func (client *AFDOriginGroupsClient) ListResourceUsage(resourceGroupName string, profileName string, originGroupName string, options *AFDOriginGroupsClientListResourceUsageOptions) *runtime.Pager[AFDOriginGroupsClientListResourceUsageResponse] { +func (client *AFDOriginGroupsClient) NewListResourceUsagePager(resourceGroupName string, profileName string, originGroupName string, options *AFDOriginGroupsClientListResourceUsageOptions) *runtime.Pager[AFDOriginGroupsClientListResourceUsageResponse] { return runtime.NewPager(runtime.PageProcessor[AFDOriginGroupsClientListResourceUsageResponse]{ More: func(page AFDOriginGroupsClientListResourceUsageResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cdn/armcdn/zz_generated_afdorigins_client.go b/sdk/resourcemanager/cdn/armcdn/zz_generated_afdorigins_client.go index 6505b3723600..a9af60320f07 100644 --- a/sdk/resourcemanager/cdn/armcdn/zz_generated_afdorigins_client.go +++ b/sdk/resourcemanager/cdn/armcdn/zz_generated_afdorigins_client.go @@ -267,7 +267,7 @@ func (client *AFDOriginsClient) getHandleResponse(resp *http.Response) (AFDOrigi return result, nil } -// ListByOriginGroup - Lists all of the existing origins within an origin group. +// NewListByOriginGroupPager - Lists all of the existing origins within an origin group. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // profileName - Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource @@ -275,7 +275,7 @@ func (client *AFDOriginsClient) getHandleResponse(resp *http.Response) (AFDOrigi // originGroupName - Name of the origin group which is unique within the profile. // options - AFDOriginsClientListByOriginGroupOptions contains the optional parameters for the AFDOriginsClient.ListByOriginGroup // method. -func (client *AFDOriginsClient) ListByOriginGroup(resourceGroupName string, profileName string, originGroupName string, options *AFDOriginsClientListByOriginGroupOptions) *runtime.Pager[AFDOriginsClientListByOriginGroupResponse] { +func (client *AFDOriginsClient) NewListByOriginGroupPager(resourceGroupName string, profileName string, originGroupName string, options *AFDOriginsClientListByOriginGroupOptions) *runtime.Pager[AFDOriginsClientListByOriginGroupResponse] { return runtime.NewPager(runtime.PageProcessor[AFDOriginsClientListByOriginGroupResponse]{ More: func(page AFDOriginsClientListByOriginGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cdn/armcdn/zz_generated_afdprofiles_client.go b/sdk/resourcemanager/cdn/armcdn/zz_generated_afdprofiles_client.go index 24be6160973a..00a56922a4b1 100644 --- a/sdk/resourcemanager/cdn/armcdn/zz_generated_afdprofiles_client.go +++ b/sdk/resourcemanager/cdn/armcdn/zz_generated_afdprofiles_client.go @@ -112,14 +112,14 @@ func (client *AFDProfilesClient) checkHostNameAvailabilityHandleResponse(resp *h return result, nil } -// ListResourceUsage - Checks the quota and actual usage of endpoints under the given CDN profile. +// NewListResourceUsagePager - Checks the quota and actual usage of endpoints under the given CDN profile. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // profileName - Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is unique within the // resource group. // options - AFDProfilesClientListResourceUsageOptions contains the optional parameters for the AFDProfilesClient.ListResourceUsage // method. -func (client *AFDProfilesClient) ListResourceUsage(resourceGroupName string, profileName string, options *AFDProfilesClientListResourceUsageOptions) *runtime.Pager[AFDProfilesClientListResourceUsageResponse] { +func (client *AFDProfilesClient) NewListResourceUsagePager(resourceGroupName string, profileName string, options *AFDProfilesClientListResourceUsageOptions) *runtime.Pager[AFDProfilesClientListResourceUsageResponse] { return runtime.NewPager(runtime.PageProcessor[AFDProfilesClientListResourceUsageResponse]{ More: func(page AFDProfilesClientListResourceUsageResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cdn/armcdn/zz_generated_constants.go b/sdk/resourcemanager/cdn/armcdn/zz_generated_constants.go index 26e9b6ef7184..afc05578054c 100644 --- a/sdk/resourcemanager/cdn/armcdn/zz_generated_constants.go +++ b/sdk/resourcemanager/cdn/armcdn/zz_generated_constants.go @@ -10,7 +10,7 @@ package armcdn const ( moduleName = "armcdn" - moduleVersion = "v0.4.0" + moduleVersion = "v0.5.0" ) // AFDEndpointProtocols - Supported protocols for the customer's endpoint. diff --git a/sdk/resourcemanager/cdn/armcdn/zz_generated_customdomains_client.go b/sdk/resourcemanager/cdn/armcdn/zz_generated_customdomains_client.go index 21ed44fcb87d..531fde0a794d 100644 --- a/sdk/resourcemanager/cdn/armcdn/zz_generated_customdomains_client.go +++ b/sdk/resourcemanager/cdn/armcdn/zz_generated_customdomains_client.go @@ -397,14 +397,14 @@ func (client *CustomDomainsClient) getHandleResponse(resp *http.Response) (Custo return result, nil } -// ListByEndpoint - Lists all of the existing custom domains within an endpoint. +// NewListByEndpointPager - Lists all of the existing custom domains within an endpoint. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // profileName - Name of the CDN profile which is unique within the resource group. // endpointName - Name of the endpoint under the profile which is unique globally. // options - CustomDomainsClientListByEndpointOptions contains the optional parameters for the CustomDomainsClient.ListByEndpoint // method. -func (client *CustomDomainsClient) ListByEndpoint(resourceGroupName string, profileName string, endpointName string, options *CustomDomainsClientListByEndpointOptions) *runtime.Pager[CustomDomainsClientListByEndpointResponse] { +func (client *CustomDomainsClient) NewListByEndpointPager(resourceGroupName string, profileName string, endpointName string, options *CustomDomainsClientListByEndpointOptions) *runtime.Pager[CustomDomainsClientListByEndpointResponse] { return runtime.NewPager(runtime.PageProcessor[CustomDomainsClientListByEndpointResponse]{ More: func(page CustomDomainsClientListByEndpointResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cdn/armcdn/zz_generated_edgenodes_client.go b/sdk/resourcemanager/cdn/armcdn/zz_generated_edgenodes_client.go index 03ae54756f2e..114f787de4d4 100644 --- a/sdk/resourcemanager/cdn/armcdn/zz_generated_edgenodes_client.go +++ b/sdk/resourcemanager/cdn/armcdn/zz_generated_edgenodes_client.go @@ -48,10 +48,10 @@ func NewEdgeNodesClient(credential azcore.TokenCredential, options *arm.ClientOp return client, nil } -// List - Edgenodes are the global Point of Presence (POP) locations used to deliver CDN content to end users. +// NewListPager - Edgenodes are the global Point of Presence (POP) locations used to deliver CDN content to end users. // If the operation fails it returns an *azcore.ResponseError type. // options - EdgeNodesClientListOptions contains the optional parameters for the EdgeNodesClient.List method. -func (client *EdgeNodesClient) List(options *EdgeNodesClientListOptions) *runtime.Pager[EdgeNodesClientListResponse] { +func (client *EdgeNodesClient) NewListPager(options *EdgeNodesClientListOptions) *runtime.Pager[EdgeNodesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[EdgeNodesClientListResponse]{ More: func(page EdgeNodesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cdn/armcdn/zz_generated_endpoints_client.go b/sdk/resourcemanager/cdn/armcdn/zz_generated_endpoints_client.go index 3f2015bb017f..626e0badda61 100644 --- a/sdk/resourcemanager/cdn/armcdn/zz_generated_endpoints_client.go +++ b/sdk/resourcemanager/cdn/armcdn/zz_generated_endpoints_client.go @@ -250,12 +250,12 @@ func (client *EndpointsClient) getHandleResponse(resp *http.Response) (Endpoints return result, nil } -// ListByProfile - Lists existing CDN endpoints. +// NewListByProfilePager - Lists existing CDN endpoints. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // profileName - Name of the CDN profile which is unique within the resource group. // options - EndpointsClientListByProfileOptions contains the optional parameters for the EndpointsClient.ListByProfile method. -func (client *EndpointsClient) ListByProfile(resourceGroupName string, profileName string, options *EndpointsClientListByProfileOptions) *runtime.Pager[EndpointsClientListByProfileResponse] { +func (client *EndpointsClient) NewListByProfilePager(resourceGroupName string, profileName string, options *EndpointsClientListByProfileOptions) *runtime.Pager[EndpointsClientListByProfileResponse] { return runtime.NewPager(runtime.PageProcessor[EndpointsClientListByProfileResponse]{ More: func(page EndpointsClientListByProfileResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -318,14 +318,14 @@ func (client *EndpointsClient) listByProfileHandleResponse(resp *http.Response) return result, nil } -// ListResourceUsage - Checks the quota and usage of geo filters and custom domains under the given endpoint. +// NewListResourceUsagePager - Checks the quota and usage of geo filters and custom domains under the given endpoint. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // profileName - Name of the CDN profile which is unique within the resource group. // endpointName - Name of the endpoint under the profile which is unique globally. // options - EndpointsClientListResourceUsageOptions contains the optional parameters for the EndpointsClient.ListResourceUsage // method. -func (client *EndpointsClient) ListResourceUsage(resourceGroupName string, profileName string, endpointName string, options *EndpointsClientListResourceUsageOptions) *runtime.Pager[EndpointsClientListResourceUsageResponse] { +func (client *EndpointsClient) NewListResourceUsagePager(resourceGroupName string, profileName string, endpointName string, options *EndpointsClientListResourceUsageOptions) *runtime.Pager[EndpointsClientListResourceUsageResponse] { return runtime.NewPager(runtime.PageProcessor[EndpointsClientListResourceUsageResponse]{ More: func(page EndpointsClientListResourceUsageResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cdn/armcdn/zz_generated_managedrulesets_client.go b/sdk/resourcemanager/cdn/armcdn/zz_generated_managedrulesets_client.go index 17620d6f2596..a61fb24426ad 100644 --- a/sdk/resourcemanager/cdn/armcdn/zz_generated_managedrulesets_client.go +++ b/sdk/resourcemanager/cdn/armcdn/zz_generated_managedrulesets_client.go @@ -54,10 +54,10 @@ func NewManagedRuleSetsClient(subscriptionID string, credential azcore.TokenCred return client, nil } -// List - Lists all available managed rule sets. +// NewListPager - Lists all available managed rule sets. // If the operation fails it returns an *azcore.ResponseError type. // options - ManagedRuleSetsClientListOptions contains the optional parameters for the ManagedRuleSetsClient.List method. -func (client *ManagedRuleSetsClient) List(options *ManagedRuleSetsClientListOptions) *runtime.Pager[ManagedRuleSetsClientListResponse] { +func (client *ManagedRuleSetsClient) NewListPager(options *ManagedRuleSetsClientListOptions) *runtime.Pager[ManagedRuleSetsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[ManagedRuleSetsClientListResponse]{ More: func(page ManagedRuleSetsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cdn/armcdn/zz_generated_operations_client.go b/sdk/resourcemanager/cdn/armcdn/zz_generated_operations_client.go index 89cf308d5a49..ca5ab26e66b2 100644 --- a/sdk/resourcemanager/cdn/armcdn/zz_generated_operations_client.go +++ b/sdk/resourcemanager/cdn/armcdn/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 CDN REST API operations. +// NewListPager - Lists all of the available CDN 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/cdn/armcdn/zz_generated_origingroups_client.go b/sdk/resourcemanager/cdn/armcdn/zz_generated_origingroups_client.go index b6118e5a3b37..1883249f1bff 100644 --- a/sdk/resourcemanager/cdn/armcdn/zz_generated_origingroups_client.go +++ b/sdk/resourcemanager/cdn/armcdn/zz_generated_origingroups_client.go @@ -262,14 +262,14 @@ func (client *OriginGroupsClient) getHandleResponse(resp *http.Response) (Origin return result, nil } -// ListByEndpoint - Lists all of the existing origin groups within an endpoint. +// NewListByEndpointPager - Lists all of the existing origin groups within an endpoint. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // profileName - Name of the CDN profile which is unique within the resource group. // endpointName - Name of the endpoint under the profile which is unique globally. // options - OriginGroupsClientListByEndpointOptions contains the optional parameters for the OriginGroupsClient.ListByEndpoint // method. -func (client *OriginGroupsClient) ListByEndpoint(resourceGroupName string, profileName string, endpointName string, options *OriginGroupsClientListByEndpointOptions) *runtime.Pager[OriginGroupsClientListByEndpointResponse] { +func (client *OriginGroupsClient) NewListByEndpointPager(resourceGroupName string, profileName string, endpointName string, options *OriginGroupsClientListByEndpointOptions) *runtime.Pager[OriginGroupsClientListByEndpointResponse] { return runtime.NewPager(runtime.PageProcessor[OriginGroupsClientListByEndpointResponse]{ More: func(page OriginGroupsClientListByEndpointResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cdn/armcdn/zz_generated_origins_client.go b/sdk/resourcemanager/cdn/armcdn/zz_generated_origins_client.go index 42c5f8e30f02..5c346db06dde 100644 --- a/sdk/resourcemanager/cdn/armcdn/zz_generated_origins_client.go +++ b/sdk/resourcemanager/cdn/armcdn/zz_generated_origins_client.go @@ -260,13 +260,13 @@ func (client *OriginsClient) getHandleResponse(resp *http.Response) (OriginsClie return result, nil } -// ListByEndpoint - Lists all of the existing origins within an endpoint. +// NewListByEndpointPager - Lists all of the existing origins within an endpoint. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // profileName - Name of the CDN profile which is unique within the resource group. // endpointName - Name of the endpoint under the profile which is unique globally. // options - OriginsClientListByEndpointOptions contains the optional parameters for the OriginsClient.ListByEndpoint method. -func (client *OriginsClient) ListByEndpoint(resourceGroupName string, profileName string, endpointName string, options *OriginsClientListByEndpointOptions) *runtime.Pager[OriginsClientListByEndpointResponse] { +func (client *OriginsClient) NewListByEndpointPager(resourceGroupName string, profileName string, endpointName string, options *OriginsClientListByEndpointOptions) *runtime.Pager[OriginsClientListByEndpointResponse] { return runtime.NewPager(runtime.PageProcessor[OriginsClientListByEndpointResponse]{ More: func(page OriginsClientListByEndpointResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cdn/armcdn/zz_generated_policies_client.go b/sdk/resourcemanager/cdn/armcdn/zz_generated_policies_client.go index 1f212720f1a0..ba8c16bad008 100644 --- a/sdk/resourcemanager/cdn/armcdn/zz_generated_policies_client.go +++ b/sdk/resourcemanager/cdn/armcdn/zz_generated_policies_client.go @@ -217,11 +217,11 @@ func (client *PoliciesClient) getHandleResponse(resp *http.Response) (PoliciesCl return result, nil } -// List - Lists all of the protection policies within a resource group. +// NewListPager - Lists all of the protection policies within a resource group. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // options - PoliciesClientListOptions contains the optional parameters for the PoliciesClient.List method. -func (client *PoliciesClient) List(resourceGroupName string, options *PoliciesClientListOptions) *runtime.Pager[PoliciesClientListResponse] { +func (client *PoliciesClient) NewListPager(resourceGroupName string, options *PoliciesClientListOptions) *runtime.Pager[PoliciesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[PoliciesClientListResponse]{ More: func(page PoliciesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cdn/armcdn/zz_generated_profiles_client.go b/sdk/resourcemanager/cdn/armcdn/zz_generated_profiles_client.go index d328ed709389..08f2a803f507 100644 --- a/sdk/resourcemanager/cdn/armcdn/zz_generated_profiles_client.go +++ b/sdk/resourcemanager/cdn/armcdn/zz_generated_profiles_client.go @@ -298,10 +298,10 @@ func (client *ProfilesClient) getHandleResponse(resp *http.Response) (ProfilesCl return result, nil } -// List - Lists all of the Azure Front Door Standard, Azure Front Door Premium, and CDN profiles within an Azure subscription. +// NewListPager - Lists all of the Azure Front Door Standard, Azure Front Door Premium, and CDN profiles within an Azure subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - ProfilesClientListOptions contains the optional parameters for the ProfilesClient.List method. -func (client *ProfilesClient) List(options *ProfilesClientListOptions) *runtime.Pager[ProfilesClientListResponse] { +func (client *ProfilesClient) NewListPager(options *ProfilesClientListOptions) *runtime.Pager[ProfilesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[ProfilesClientListResponse]{ More: func(page ProfilesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -356,13 +356,13 @@ func (client *ProfilesClient) listHandleResponse(resp *http.Response) (ProfilesC return result, nil } -// ListByResourceGroup - Lists all of the Azure Front Door Standard, Azure Front Door Premium, and CDN profiles within a resource -// group. +// NewListByResourceGroupPager - Lists all of the Azure Front Door Standard, Azure Front Door Premium, and CDN profiles within +// a resource group. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // options - ProfilesClientListByResourceGroupOptions contains the optional parameters for the ProfilesClient.ListByResourceGroup // method. -func (client *ProfilesClient) ListByResourceGroup(resourceGroupName string, options *ProfilesClientListByResourceGroupOptions) *runtime.Pager[ProfilesClientListByResourceGroupResponse] { +func (client *ProfilesClient) NewListByResourceGroupPager(resourceGroupName string, options *ProfilesClientListByResourceGroupOptions) *runtime.Pager[ProfilesClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[ProfilesClientListByResourceGroupResponse]{ More: func(page ProfilesClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -421,15 +421,15 @@ func (client *ProfilesClient) listByResourceGroupHandleResponse(resp *http.Respo return result, nil } -// ListResourceUsage - Checks the quota and actual usage of endpoints under the given Azure Front Door Standard or Azure Front -// Door Premium or CDN profile. +// NewListResourceUsagePager - Checks the quota and actual usage of endpoints under the given Azure Front Door Standard or +// Azure Front Door Premium or CDN profile. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // profileName - Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is unique within the // resource group. // options - ProfilesClientListResourceUsageOptions contains the optional parameters for the ProfilesClient.ListResourceUsage // method. -func (client *ProfilesClient) ListResourceUsage(resourceGroupName string, profileName string, options *ProfilesClientListResourceUsageOptions) *runtime.Pager[ProfilesClientListResourceUsageResponse] { +func (client *ProfilesClient) NewListResourceUsagePager(resourceGroupName string, profileName string, options *ProfilesClientListResourceUsageOptions) *runtime.Pager[ProfilesClientListResourceUsageResponse] { return runtime.NewPager(runtime.PageProcessor[ProfilesClientListResourceUsageResponse]{ More: func(page ProfilesClientListResourceUsageResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cdn/armcdn/zz_generated_resourceusage_client.go b/sdk/resourcemanager/cdn/armcdn/zz_generated_resourceusage_client.go index 527bcf5e6feb..d3c99836f18c 100644 --- a/sdk/resourcemanager/cdn/armcdn/zz_generated_resourceusage_client.go +++ b/sdk/resourcemanager/cdn/armcdn/zz_generated_resourceusage_client.go @@ -54,10 +54,10 @@ func NewResourceUsageClient(subscriptionID string, credential azcore.TokenCreden return client, nil } -// List - Check the quota and actual usage of the CDN profiles under the given subscription. +// NewListPager - Check the quota and actual usage of the CDN profiles under the given subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - ResourceUsageClientListOptions contains the optional parameters for the ResourceUsageClient.List method. -func (client *ResourceUsageClient) List(options *ResourceUsageClientListOptions) *runtime.Pager[ResourceUsageClientListResponse] { +func (client *ResourceUsageClient) NewListPager(options *ResourceUsageClientListOptions) *runtime.Pager[ResourceUsageClientListResponse] { return runtime.NewPager(runtime.PageProcessor[ResourceUsageClientListResponse]{ More: func(page ResourceUsageClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cdn/armcdn/zz_generated_routes_client.go b/sdk/resourcemanager/cdn/armcdn/zz_generated_routes_client.go index c583c017bd21..8cd42ac77f7d 100644 --- a/sdk/resourcemanager/cdn/armcdn/zz_generated_routes_client.go +++ b/sdk/resourcemanager/cdn/armcdn/zz_generated_routes_client.go @@ -272,14 +272,14 @@ func (client *RoutesClient) getHandleResponse(resp *http.Response) (RoutesClient return result, nil } -// ListByEndpoint - Lists all of the existing origins within a profile. +// NewListByEndpointPager - Lists all of the existing origins within a profile. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // profileName - Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource // group. // endpointName - Name of the endpoint under the profile which is unique globally. // options - RoutesClientListByEndpointOptions contains the optional parameters for the RoutesClient.ListByEndpoint method. -func (client *RoutesClient) ListByEndpoint(resourceGroupName string, profileName string, endpointName string, options *RoutesClientListByEndpointOptions) *runtime.Pager[RoutesClientListByEndpointResponse] { +func (client *RoutesClient) NewListByEndpointPager(resourceGroupName string, profileName string, endpointName string, options *RoutesClientListByEndpointOptions) *runtime.Pager[RoutesClientListByEndpointResponse] { return runtime.NewPager(runtime.PageProcessor[RoutesClientListByEndpointResponse]{ More: func(page RoutesClientListByEndpointResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cdn/armcdn/zz_generated_rules_client.go b/sdk/resourcemanager/cdn/armcdn/zz_generated_rules_client.go index 9282495eccda..9120f0df8445 100644 --- a/sdk/resourcemanager/cdn/armcdn/zz_generated_rules_client.go +++ b/sdk/resourcemanager/cdn/armcdn/zz_generated_rules_client.go @@ -267,14 +267,14 @@ func (client *RulesClient) getHandleResponse(resp *http.Response) (RulesClientGe return result, nil } -// ListByRuleSet - Lists all of the existing delivery rules within a rule set. +// NewListByRuleSetPager - Lists all of the existing delivery rules within a rule set. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // profileName - Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource // group. // ruleSetName - Name of the rule set under the profile. // options - RulesClientListByRuleSetOptions contains the optional parameters for the RulesClient.ListByRuleSet method. -func (client *RulesClient) ListByRuleSet(resourceGroupName string, profileName string, ruleSetName string, options *RulesClientListByRuleSetOptions) *runtime.Pager[RulesClientListByRuleSetResponse] { +func (client *RulesClient) NewListByRuleSetPager(resourceGroupName string, profileName string, ruleSetName string, options *RulesClientListByRuleSetOptions) *runtime.Pager[RulesClientListByRuleSetResponse] { return runtime.NewPager(runtime.PageProcessor[RulesClientListByRuleSetResponse]{ More: func(page RulesClientListByRuleSetResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cdn/armcdn/zz_generated_rulesets_client.go b/sdk/resourcemanager/cdn/armcdn/zz_generated_rulesets_client.go index 81d9ab51ba43..19d00acb88ed 100644 --- a/sdk/resourcemanager/cdn/armcdn/zz_generated_rulesets_client.go +++ b/sdk/resourcemanager/cdn/armcdn/zz_generated_rulesets_client.go @@ -247,13 +247,13 @@ func (client *RuleSetsClient) getHandleResponse(resp *http.Response) (RuleSetsCl return result, nil } -// ListByProfile - Lists existing AzureFrontDoor rule sets within a profile. +// NewListByProfilePager - Lists existing AzureFrontDoor rule sets within a profile. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // profileName - Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource // group. // options - RuleSetsClientListByProfileOptions contains the optional parameters for the RuleSetsClient.ListByProfile method. -func (client *RuleSetsClient) ListByProfile(resourceGroupName string, profileName string, options *RuleSetsClientListByProfileOptions) *runtime.Pager[RuleSetsClientListByProfileResponse] { +func (client *RuleSetsClient) NewListByProfilePager(resourceGroupName string, profileName string, options *RuleSetsClientListByProfileOptions) *runtime.Pager[RuleSetsClientListByProfileResponse] { return runtime.NewPager(runtime.PageProcessor[RuleSetsClientListByProfileResponse]{ More: func(page RuleSetsClientListByProfileResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -316,7 +316,7 @@ func (client *RuleSetsClient) listByProfileHandleResponse(resp *http.Response) ( return result, nil } -// ListResourceUsage - Checks the quota and actual usage of endpoints under the given CDN profile. +// NewListResourceUsagePager - Checks the quota and actual usage of endpoints under the given CDN profile. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // profileName - Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource @@ -324,7 +324,7 @@ func (client *RuleSetsClient) listByProfileHandleResponse(resp *http.Response) ( // ruleSetName - Name of the rule set under the profile which is unique globally. // options - RuleSetsClientListResourceUsageOptions contains the optional parameters for the RuleSetsClient.ListResourceUsage // method. -func (client *RuleSetsClient) ListResourceUsage(resourceGroupName string, profileName string, ruleSetName string, options *RuleSetsClientListResourceUsageOptions) *runtime.Pager[RuleSetsClientListResourceUsageResponse] { +func (client *RuleSetsClient) NewListResourceUsagePager(resourceGroupName string, profileName string, ruleSetName string, options *RuleSetsClientListResourceUsageOptions) *runtime.Pager[RuleSetsClientListResourceUsageResponse] { return runtime.NewPager(runtime.PageProcessor[RuleSetsClientListResourceUsageResponse]{ More: func(page RuleSetsClientListResourceUsageResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cdn/armcdn/zz_generated_secrets_client.go b/sdk/resourcemanager/cdn/armcdn/zz_generated_secrets_client.go index 345919978bd5..ffec7caaa344 100644 --- a/sdk/resourcemanager/cdn/armcdn/zz_generated_secrets_client.go +++ b/sdk/resourcemanager/cdn/armcdn/zz_generated_secrets_client.go @@ -252,13 +252,13 @@ func (client *SecretsClient) getHandleResponse(resp *http.Response) (SecretsClie return result, nil } -// ListByProfile - Lists existing AzureFrontDoor secrets. +// NewListByProfilePager - Lists existing AzureFrontDoor secrets. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // profileName - Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource // group. // options - SecretsClientListByProfileOptions contains the optional parameters for the SecretsClient.ListByProfile method. -func (client *SecretsClient) ListByProfile(resourceGroupName string, profileName string, options *SecretsClientListByProfileOptions) *runtime.Pager[SecretsClientListByProfileResponse] { +func (client *SecretsClient) NewListByProfilePager(resourceGroupName string, profileName string, options *SecretsClientListByProfileOptions) *runtime.Pager[SecretsClientListByProfileResponse] { return runtime.NewPager(runtime.PageProcessor[SecretsClientListByProfileResponse]{ More: func(page SecretsClientListByProfileResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cdn/armcdn/zz_generated_securitypolicies_client.go b/sdk/resourcemanager/cdn/armcdn/zz_generated_securitypolicies_client.go index 77f00384324a..298e8081fbd5 100644 --- a/sdk/resourcemanager/cdn/armcdn/zz_generated_securitypolicies_client.go +++ b/sdk/resourcemanager/cdn/armcdn/zz_generated_securitypolicies_client.go @@ -254,14 +254,14 @@ func (client *SecurityPoliciesClient) getHandleResponse(resp *http.Response) (Se return result, nil } -// ListByProfile - Lists security policies associated with the profile +// NewListByProfilePager - Lists security policies associated with the profile // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - Name of the Resource group within the Azure subscription. // profileName - Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource // group. // options - SecurityPoliciesClientListByProfileOptions contains the optional parameters for the SecurityPoliciesClient.ListByProfile // method. -func (client *SecurityPoliciesClient) ListByProfile(resourceGroupName string, profileName string, options *SecurityPoliciesClientListByProfileOptions) *runtime.Pager[SecurityPoliciesClientListByProfileResponse] { +func (client *SecurityPoliciesClient) NewListByProfilePager(resourceGroupName string, profileName string, options *SecurityPoliciesClientListByProfileOptions) *runtime.Pager[SecurityPoliciesClientListByProfileResponse] { return runtime.NewPager(runtime.PageProcessor[SecurityPoliciesClientListByProfileResponse]{ More: func(page SecurityPoliciesClientListByProfileResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/changeanalysis/armchangeanalysis/CHANGELOG.md b/sdk/resourcemanager/changeanalysis/armchangeanalysis/CHANGELOG.md index 1e9024e06254..5f5ad3d21a76 100644 --- a/sdk/resourcemanager/changeanalysis/armchangeanalysis/CHANGELOG.md +++ b/sdk/resourcemanager/changeanalysis/armchangeanalysis/CHANGELOG.md @@ -1,5 +1,21 @@ # Release History +## 0.4.0 (2022-04-15) +### Breaking Changes + +- Function `*ChangesClient.ListChangesByResourceGroup` has been removed +- Function `*ChangesClient.ListChangesBySubscription` has been removed +- Function `*ResourceChangesClient.List` has been removed +- Function `*OperationsClient.List` has been removed + +### Features Added + +- New function `*ChangesClient.NewListChangesBySubscriptionPager(time.Time, time.Time, *ChangesClientListChangesBySubscriptionOptions) *runtime.Pager[ChangesClientListChangesBySubscriptionResponse]` +- New function `*ChangesClient.NewListChangesByResourceGroupPager(string, time.Time, time.Time, *ChangesClientListChangesByResourceGroupOptions) *runtime.Pager[ChangesClientListChangesByResourceGroupResponse]` +- New function `*ResourceChangesClient.NewListPager(string, time.Time, time.Time, *ResourceChangesClientListOptions) *runtime.Pager[ResourceChangesClientListResponse]` +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` + + ## 0.3.0 (2022-04-11) ### Breaking Changes diff --git a/sdk/resourcemanager/changeanalysis/armchangeanalysis/autorest.md b/sdk/resourcemanager/changeanalysis/armchangeanalysis/autorest.md index 972cbb87cfc1..2c908e12bf72 100644 --- a/sdk/resourcemanager/changeanalysis/armchangeanalysis/autorest.md +++ b/sdk/resourcemanager/changeanalysis/armchangeanalysis/autorest.md @@ -5,8 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/d48ca7ed92cbb4f972eb6214bdb3200edaf78369/specification/changeanalysis/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/d48ca7ed92cbb4f972eb6214bdb3200edaf78369/specification/changeanalysis/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/changeanalysis/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/changeanalysis/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/changeanalysis/armchangeanalysis/ze_generated_example_changes_client_test.go b/sdk/resourcemanager/changeanalysis/armchangeanalysis/ze_generated_example_changes_client_test.go index 3e4d62e2c594..1e0e432534b7 100644 --- a/sdk/resourcemanager/changeanalysis/armchangeanalysis/ze_generated_example_changes_client_test.go +++ b/sdk/resourcemanager/changeanalysis/armchangeanalysis/ze_generated_example_changes_client_test.go @@ -19,7 +19,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/stable/2021-04-01/examples/ChangesListChangesByResourceGroup.json -func ExampleChangesClient_ListChangesByResourceGroup() { +func ExampleChangesClient_NewListChangesByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -31,7 +31,7 @@ func ExampleChangesClient_ListChangesByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListChangesByResourceGroup("", + pager := client.NewListChangesByResourceGroupPager("", func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-04-25T12:09:03.141Z"); return t }(), func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-04-26T12:09:03.141Z"); return t }(), &armchangeanalysis.ChangesClientListChangesByResourceGroupOptions{SkipToken: nil}) @@ -49,7 +49,7 @@ func ExampleChangesClient_ListChangesByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/stable/2021-04-01/examples/ChangesListChangesBySubscription.json -func ExampleChangesClient_ListChangesBySubscription() { +func ExampleChangesClient_NewListChangesBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -61,7 +61,7 @@ func ExampleChangesClient_ListChangesBySubscription() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListChangesBySubscription(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-04-25T12:09:03.141Z"); return t }(), + pager := client.NewListChangesBySubscriptionPager(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-04-25T12:09:03.141Z"); return t }(), func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-04-26T12:09:03.141Z"); return t }(), &armchangeanalysis.ChangesClientListChangesBySubscriptionOptions{SkipToken: nil}) for pager.More() { diff --git a/sdk/resourcemanager/changeanalysis/armchangeanalysis/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/changeanalysis/armchangeanalysis/ze_generated_example_operations_client_test.go index 3538b2fd2953..bd7a113fee82 100644 --- a/sdk/resourcemanager/changeanalysis/armchangeanalysis/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/changeanalysis/armchangeanalysis/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/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/stable/2021-04-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(&armchangeanalysis.OperationsClientListOptions{SkipToken: nil}) + pager := client.NewListPager(&armchangeanalysis.OperationsClientListOptions{SkipToken: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/changeanalysis/armchangeanalysis/ze_generated_example_resourcechanges_client_test.go b/sdk/resourcemanager/changeanalysis/armchangeanalysis/ze_generated_example_resourcechanges_client_test.go index 63a09bdea464..ff15ba815a3a 100644 --- a/sdk/resourcemanager/changeanalysis/armchangeanalysis/ze_generated_example_resourcechanges_client_test.go +++ b/sdk/resourcemanager/changeanalysis/armchangeanalysis/ze_generated_example_resourcechanges_client_test.go @@ -19,7 +19,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/stable/2021-04-01/examples/ResourceChangesList.json -func ExampleResourceChangesClient_List() { +func ExampleResourceChangesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -31,7 +31,7 @@ func ExampleResourceChangesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-04-25T12:09:03.141Z"); return t }(), func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-04-26T12:09:03.141Z"); return t }(), &armchangeanalysis.ResourceChangesClientListOptions{SkipToken: nil}) diff --git a/sdk/resourcemanager/changeanalysis/armchangeanalysis/zz_generated_changes_client.go b/sdk/resourcemanager/changeanalysis/armchangeanalysis/zz_generated_changes_client.go index a82f3972fcee..caf005a1fc95 100644 --- a/sdk/resourcemanager/changeanalysis/armchangeanalysis/zz_generated_changes_client.go +++ b/sdk/resourcemanager/changeanalysis/armchangeanalysis/zz_generated_changes_client.go @@ -55,15 +55,15 @@ func NewChangesClient(subscriptionID string, credential azcore.TokenCredential, return client, nil } -// ListChangesByResourceGroup - List the changes of a resource group within the specified time range. Customer data will always -// be masked. +// NewListChangesByResourceGroupPager - List the changes of a resource group within the specified time range. Customer data +// will always be masked. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group. The name is case insensitive. // startTime - Specifies the start time of the changes request. // endTime - Specifies the end time of the changes request. // options - ChangesClientListChangesByResourceGroupOptions contains the optional parameters for the ChangesClient.ListChangesByResourceGroup // method. -func (client *ChangesClient) ListChangesByResourceGroup(resourceGroupName string, startTime time.Time, endTime time.Time, options *ChangesClientListChangesByResourceGroupOptions) *runtime.Pager[ChangesClientListChangesByResourceGroupResponse] { +func (client *ChangesClient) NewListChangesByResourceGroupPager(resourceGroupName string, startTime time.Time, endTime time.Time, options *ChangesClientListChangesByResourceGroupOptions) *runtime.Pager[ChangesClientListChangesByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[ChangesClientListChangesByResourceGroupResponse]{ More: func(page ChangesClientListChangesByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -127,14 +127,14 @@ func (client *ChangesClient) listChangesByResourceGroupHandleResponse(resp *http return result, nil } -// ListChangesBySubscription - List the changes of a subscription within the specified time range. Customer data will always -// be masked. +// NewListChangesBySubscriptionPager - List the changes of a subscription within the specified time range. Customer data will +// always be masked. // If the operation fails it returns an *azcore.ResponseError type. // startTime - Specifies the start time of the changes request. // endTime - Specifies the end time of the changes request. // options - ChangesClientListChangesBySubscriptionOptions contains the optional parameters for the ChangesClient.ListChangesBySubscription // method. -func (client *ChangesClient) ListChangesBySubscription(startTime time.Time, endTime time.Time, options *ChangesClientListChangesBySubscriptionOptions) *runtime.Pager[ChangesClientListChangesBySubscriptionResponse] { +func (client *ChangesClient) NewListChangesBySubscriptionPager(startTime time.Time, endTime time.Time, options *ChangesClientListChangesBySubscriptionOptions) *runtime.Pager[ChangesClientListChangesBySubscriptionResponse] { return runtime.NewPager(runtime.PageProcessor[ChangesClientListChangesBySubscriptionResponse]{ More: func(page ChangesClientListChangesBySubscriptionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/changeanalysis/armchangeanalysis/zz_generated_constants.go b/sdk/resourcemanager/changeanalysis/armchangeanalysis/zz_generated_constants.go index d06a7d43d3f3..8e2173b756bc 100644 --- a/sdk/resourcemanager/changeanalysis/armchangeanalysis/zz_generated_constants.go +++ b/sdk/resourcemanager/changeanalysis/armchangeanalysis/zz_generated_constants.go @@ -10,7 +10,7 @@ package armchangeanalysis const ( moduleName = "armchangeanalysis" - moduleVersion = "v0.3.0" + moduleVersion = "v0.4.0" ) // ChangeCategory - The change category. diff --git a/sdk/resourcemanager/changeanalysis/armchangeanalysis/zz_generated_operations_client.go b/sdk/resourcemanager/changeanalysis/armchangeanalysis/zz_generated_operations_client.go index 05ab05192ce6..0d7cef485269 100644 --- a/sdk/resourcemanager/changeanalysis/armchangeanalysis/zz_generated_operations_client.go +++ b/sdk/resourcemanager/changeanalysis/armchangeanalysis/zz_generated_operations_client.go @@ -48,10 +48,10 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO return client, nil } -// List - Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with their descriptions. +// NewListPager - Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with their descriptions. // 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/changeanalysis/armchangeanalysis/zz_generated_resourcechanges_client.go b/sdk/resourcemanager/changeanalysis/armchangeanalysis/zz_generated_resourcechanges_client.go index 78d1a5d29f18..43d0f08432f5 100644 --- a/sdk/resourcemanager/changeanalysis/armchangeanalysis/zz_generated_resourcechanges_client.go +++ b/sdk/resourcemanager/changeanalysis/armchangeanalysis/zz_generated_resourcechanges_client.go @@ -52,14 +52,14 @@ func NewResourceChangesClient(credential azcore.TokenCredential, options *arm.Cl return client, nil } -// List - List the changes of a resource within the specified time range. Customer data will be masked if the user doesn't -// have access. +// NewListPager - List the changes of a resource within the specified time range. Customer data will be masked if the user +// doesn't have access. // If the operation fails it returns an *azcore.ResponseError type. // resourceID - The identifier of the resource. // startTime - Specifies the start time of the changes request. // endTime - Specifies the end time of the changes request. // options - ResourceChangesClientListOptions contains the optional parameters for the ResourceChangesClient.List method. -func (client *ResourceChangesClient) List(resourceID string, startTime time.Time, endTime time.Time, options *ResourceChangesClientListOptions) *runtime.Pager[ResourceChangesClientListResponse] { +func (client *ResourceChangesClient) NewListPager(resourceID string, startTime time.Time, endTime time.Time, options *ResourceChangesClientListOptions) *runtime.Pager[ResourceChangesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[ResourceChangesClientListResponse]{ More: func(page ResourceChangesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/chaos/armchaos/CHANGELOG.md b/sdk/resourcemanager/chaos/armchaos/CHANGELOG.md index 253bd3287ddc..fb79a0426b17 100644 --- a/sdk/resourcemanager/chaos/armchaos/CHANGELOG.md +++ b/sdk/resourcemanager/chaos/armchaos/CHANGELOG.md @@ -1,5 +1,31 @@ # Release History +## 0.4.0 (2022-04-15) +### Breaking Changes + +- Function `*CapabilityTypesClient.List` has been removed +- Function `*ExperimentsClient.ListAllStatuses` has been removed +- Function `*TargetsClient.List` has been removed +- Function `*TargetTypesClient.List` has been removed +- Function `*CapabilitiesClient.List` has been removed +- Function `*ExperimentsClient.List` has been removed +- Function `*ExperimentsClient.ListExecutionDetails` has been removed +- Function `*ExperimentsClient.ListAll` has been removed +- Function `*OperationsClient.ListAll` has been removed + +### Features Added + +- New function `*ExperimentsClient.NewListAllPager(*ExperimentsClientListAllOptions) *runtime.Pager[ExperimentsClientListAllResponse]` +- New function `*TargetTypesClient.NewListPager(string, *TargetTypesClientListOptions) *runtime.Pager[TargetTypesClientListResponse]` +- New function `*ExperimentsClient.NewListExecutionDetailsPager(string, string, *ExperimentsClientListExecutionDetailsOptions) *runtime.Pager[ExperimentsClientListExecutionDetailsResponse]` +- New function `*OperationsClient.NewListAllPager(*OperationsClientListAllOptions) *runtime.Pager[OperationsClientListAllResponse]` +- New function `*ExperimentsClient.NewListAllStatusesPager(string, string, *ExperimentsClientListAllStatusesOptions) *runtime.Pager[ExperimentsClientListAllStatusesResponse]` +- New function `*CapabilitiesClient.NewListPager(string, string, string, string, string, *CapabilitiesClientListOptions) *runtime.Pager[CapabilitiesClientListResponse]` +- New function `*CapabilityTypesClient.NewListPager(string, string, *CapabilityTypesClientListOptions) *runtime.Pager[CapabilityTypesClientListResponse]` +- New function `*ExperimentsClient.NewListPager(string, *ExperimentsClientListOptions) *runtime.Pager[ExperimentsClientListResponse]` +- New function `*TargetsClient.NewListPager(string, string, string, string, *TargetsClientListOptions) *runtime.Pager[TargetsClientListResponse]` + + ## 0.3.0 (2022-04-11) ### Breaking Changes diff --git a/sdk/resourcemanager/chaos/armchaos/autorest.md b/sdk/resourcemanager/chaos/armchaos/autorest.md index c842f6d8b868..8d1a36d3c557 100644 --- a/sdk/resourcemanager/chaos/armchaos/autorest.md +++ b/sdk/resourcemanager/chaos/armchaos/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/d48ca7ed92cbb4f972eb6214bdb3200edaf78369/specification/chaos/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/d48ca7ed92cbb4f972eb6214bdb3200edaf78369/specification/chaos/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/chaos/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/chaos/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/chaos/armchaos/ze_generated_example_capabilities_client_test.go b/sdk/resourcemanager/chaos/armchaos/ze_generated_example_capabilities_client_test.go index 46cad98dd89c..70b5c7168484 100644 --- a/sdk/resourcemanager/chaos/armchaos/ze_generated_example_capabilities_client_test.go +++ b/sdk/resourcemanager/chaos/armchaos/ze_generated_example_capabilities_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/chaos/resource-manager/Microsoft.Chaos/preview/2021-09-15-preview/examples/ListCapabilities.json -func ExampleCapabilitiesClient_List() { +func ExampleCapabilitiesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleCapabilitiesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", "", "", diff --git a/sdk/resourcemanager/chaos/armchaos/ze_generated_example_capabilitytypes_client_test.go b/sdk/resourcemanager/chaos/armchaos/ze_generated_example_capabilitytypes_client_test.go index 708e432c102e..ab89a3ed91b3 100644 --- a/sdk/resourcemanager/chaos/armchaos/ze_generated_example_capabilitytypes_client_test.go +++ b/sdk/resourcemanager/chaos/armchaos/ze_generated_example_capabilitytypes_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/chaos/resource-manager/Microsoft.Chaos/preview/2021-09-15-preview/examples/ListCapabilityTypes.json -func ExampleCapabilityTypesClient_List() { +func ExampleCapabilityTypesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleCapabilityTypesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", &armchaos.CapabilityTypesClientListOptions{ContinuationToken: nil}) for pager.More() { diff --git a/sdk/resourcemanager/chaos/armchaos/ze_generated_example_experiments_client_test.go b/sdk/resourcemanager/chaos/armchaos/ze_generated_example_experiments_client_test.go index 54d40e5b1e56..36288c4520f3 100644 --- a/sdk/resourcemanager/chaos/armchaos/ze_generated_example_experiments_client_test.go +++ b/sdk/resourcemanager/chaos/armchaos/ze_generated_example_experiments_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/chaos/resource-manager/Microsoft.Chaos/preview/2021-09-15-preview/examples/ListExperimentsInASubscription.json -func ExampleExperimentsClient_ListAll() { +func ExampleExperimentsClient_NewListAllPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleExperimentsClient_ListAll() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListAll(&armchaos.ExperimentsClientListAllOptions{Running: nil, + pager := client.NewListAllPager(&armchaos.ExperimentsClientListAllOptions{Running: nil, ContinuationToken: to.Ptr(""), }) for pager.More() { @@ -49,7 +49,7 @@ func ExampleExperimentsClient_ListAll() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/chaos/resource-manager/Microsoft.Chaos/preview/2021-09-15-preview/examples/ListExperimentsInAResourceGroup.json -func ExampleExperimentsClient_List() { +func ExampleExperimentsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -61,7 +61,7 @@ func ExampleExperimentsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", &armchaos.ExperimentsClientListOptions{Running: nil, ContinuationToken: to.Ptr(""), }) @@ -239,7 +239,7 @@ func ExampleExperimentsClient_Start() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/chaos/resource-manager/Microsoft.Chaos/preview/2021-09-15-preview/examples/ListExperimentStatuses.json -func ExampleExperimentsClient_ListAllStatuses() { +func ExampleExperimentsClient_NewListAllStatusesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -251,7 +251,7 @@ func ExampleExperimentsClient_ListAllStatuses() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListAllStatuses("", + pager := client.NewListAllStatusesPager("", "", nil) for pager.More() { @@ -294,7 +294,7 @@ func ExampleExperimentsClient_GetStatus() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/chaos/resource-manager/Microsoft.Chaos/preview/2021-09-15-preview/examples/ListExperimentExecutionsDetails.json -func ExampleExperimentsClient_ListExecutionDetails() { +func ExampleExperimentsClient_NewListExecutionDetailsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -306,7 +306,7 @@ func ExampleExperimentsClient_ListExecutionDetails() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListExecutionDetails("", + pager := client.NewListExecutionDetailsPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/chaos/armchaos/ze_generated_example_targets_client_test.go b/sdk/resourcemanager/chaos/armchaos/ze_generated_example_targets_client_test.go index 374f3191391b..560a81e05d1b 100644 --- a/sdk/resourcemanager/chaos/armchaos/ze_generated_example_targets_client_test.go +++ b/sdk/resourcemanager/chaos/armchaos/ze_generated_example_targets_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/chaos/resource-manager/Microsoft.Chaos/preview/2021-09-15-preview/examples/ListTargets.json -func ExampleTargetsClient_List() { +func ExampleTargetsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleTargetsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", "", "", diff --git a/sdk/resourcemanager/chaos/armchaos/ze_generated_example_targettypes_client_test.go b/sdk/resourcemanager/chaos/armchaos/ze_generated_example_targettypes_client_test.go index b08045c9e1ba..a6e545e93e2b 100644 --- a/sdk/resourcemanager/chaos/armchaos/ze_generated_example_targettypes_client_test.go +++ b/sdk/resourcemanager/chaos/armchaos/ze_generated_example_targettypes_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/chaos/resource-manager/Microsoft.Chaos/preview/2021-09-15-preview/examples/ListTargetTypes.json -func ExampleTargetTypesClient_List() { +func ExampleTargetTypesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleTargetTypesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", &armchaos.TargetTypesClientListOptions{ContinuationToken: to.Ptr("")}) for pager.More() { nextResult, err := pager.NextPage(ctx) diff --git a/sdk/resourcemanager/chaos/armchaos/zz_generated_capabilities_client.go b/sdk/resourcemanager/chaos/armchaos/zz_generated_capabilities_client.go index f2c4e566ad3b..9db427233452 100644 --- a/sdk/resourcemanager/chaos/armchaos/zz_generated_capabilities_client.go +++ b/sdk/resourcemanager/chaos/armchaos/zz_generated_capabilities_client.go @@ -272,7 +272,7 @@ func (client *CapabilitiesClient) getHandleResponse(resp *http.Response) (Capabi return result, nil } -// List - Get a list of Capability resources that extend a Target resource.. +// NewListPager - Get a list of Capability resources that extend a Target resource.. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - String that represents an Azure resource group. // parentProviderNamespace - String that represents a resource provider namespace. @@ -280,7 +280,7 @@ func (client *CapabilitiesClient) getHandleResponse(resp *http.Response) (Capabi // parentResourceName - String that represents a resource name. // targetName - String that represents a Target resource name. // options - CapabilitiesClientListOptions contains the optional parameters for the CapabilitiesClient.List method. -func (client *CapabilitiesClient) List(resourceGroupName string, parentProviderNamespace string, parentResourceType string, parentResourceName string, targetName string, options *CapabilitiesClientListOptions) *runtime.Pager[CapabilitiesClientListResponse] { +func (client *CapabilitiesClient) NewListPager(resourceGroupName string, parentProviderNamespace string, parentResourceType string, parentResourceName string, targetName string, options *CapabilitiesClientListOptions) *runtime.Pager[CapabilitiesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[CapabilitiesClientListResponse]{ More: func(page CapabilitiesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/chaos/armchaos/zz_generated_capabilitytypes_client.go b/sdk/resourcemanager/chaos/armchaos/zz_generated_capabilitytypes_client.go index b15afc4e6ed5..737913fc9446 100644 --- a/sdk/resourcemanager/chaos/armchaos/zz_generated_capabilitytypes_client.go +++ b/sdk/resourcemanager/chaos/armchaos/zz_generated_capabilitytypes_client.go @@ -114,12 +114,12 @@ func (client *CapabilityTypesClient) getHandleResponse(resp *http.Response) (Cap return result, nil } -// List - Get a list of Capability Type resources for given Target Type and location. +// NewListPager - Get a list of Capability Type resources for given Target Type and location. // If the operation fails it returns an *azcore.ResponseError type. // locationName - String that represents a Location resource name. // targetTypeName - String that represents a Target Type resource name. // options - CapabilityTypesClientListOptions contains the optional parameters for the CapabilityTypesClient.List method. -func (client *CapabilityTypesClient) List(locationName string, targetTypeName string, options *CapabilityTypesClientListOptions) *runtime.Pager[CapabilityTypesClientListResponse] { +func (client *CapabilityTypesClient) NewListPager(locationName string, targetTypeName string, options *CapabilityTypesClientListOptions) *runtime.Pager[CapabilityTypesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[CapabilityTypesClientListResponse]{ More: func(page CapabilityTypesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/chaos/armchaos/zz_generated_constants.go b/sdk/resourcemanager/chaos/armchaos/zz_generated_constants.go index 192dbef91ae2..a73b6bd46f52 100644 --- a/sdk/resourcemanager/chaos/armchaos/zz_generated_constants.go +++ b/sdk/resourcemanager/chaos/armchaos/zz_generated_constants.go @@ -10,7 +10,7 @@ package armchaos const ( moduleName = "armchaos" - moduleVersion = "v0.3.0" + moduleVersion = "v0.4.0" ) // ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. diff --git a/sdk/resourcemanager/chaos/armchaos/zz_generated_experiments_client.go b/sdk/resourcemanager/chaos/armchaos/zz_generated_experiments_client.go index 2f6bf4c4723a..655638658f0b 100644 --- a/sdk/resourcemanager/chaos/armchaos/zz_generated_experiments_client.go +++ b/sdk/resourcemanager/chaos/armchaos/zz_generated_experiments_client.go @@ -403,11 +403,11 @@ func (client *ExperimentsClient) getStatusHandleResponse(resp *http.Response) (E return result, nil } -// List - Get a list of Experiment resources in a resource group. +// NewListPager - Get a list of Experiment resources in a resource group. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - String that represents an Azure resource group. // options - ExperimentsClientListOptions contains the optional parameters for the ExperimentsClient.List method. -func (client *ExperimentsClient) List(resourceGroupName string, options *ExperimentsClientListOptions) *runtime.Pager[ExperimentsClientListResponse] { +func (client *ExperimentsClient) NewListPager(resourceGroupName string, options *ExperimentsClientListOptions) *runtime.Pager[ExperimentsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[ExperimentsClientListResponse]{ More: func(page ExperimentsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -472,10 +472,10 @@ func (client *ExperimentsClient) listHandleResponse(resp *http.Response) (Experi return result, nil } -// ListAll - Get a list of Experiment resources in a subscription. +// NewListAllPager - Get a list of Experiment resources in a subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - ExperimentsClientListAllOptions contains the optional parameters for the ExperimentsClient.ListAll method. -func (client *ExperimentsClient) ListAll(options *ExperimentsClientListAllOptions) *runtime.Pager[ExperimentsClientListAllResponse] { +func (client *ExperimentsClient) NewListAllPager(options *ExperimentsClientListAllOptions) *runtime.Pager[ExperimentsClientListAllResponse] { return runtime.NewPager(runtime.PageProcessor[ExperimentsClientListAllResponse]{ More: func(page ExperimentsClientListAllResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -536,13 +536,13 @@ func (client *ExperimentsClient) listAllHandleResponse(resp *http.Response) (Exp return result, nil } -// ListAllStatuses - Get a list of statuses of a Experiment resource. +// NewListAllStatusesPager - Get a list of statuses of a Experiment resource. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - String that represents an Azure resource group. // experimentName - String that represents a Experiment resource name. // options - ExperimentsClientListAllStatusesOptions contains the optional parameters for the ExperimentsClient.ListAllStatuses // method. -func (client *ExperimentsClient) ListAllStatuses(resourceGroupName string, experimentName string, options *ExperimentsClientListAllStatusesOptions) *runtime.Pager[ExperimentsClientListAllStatusesResponse] { +func (client *ExperimentsClient) NewListAllStatusesPager(resourceGroupName string, experimentName string, options *ExperimentsClientListAllStatusesOptions) *runtime.Pager[ExperimentsClientListAllStatusesResponse] { return runtime.NewPager(runtime.PageProcessor[ExperimentsClientListAllStatusesResponse]{ More: func(page ExperimentsClientListAllStatusesResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -605,13 +605,13 @@ func (client *ExperimentsClient) listAllStatusesHandleResponse(resp *http.Respon return result, nil } -// ListExecutionDetails - Get a list of execution details of a Experiment resource. +// NewListExecutionDetailsPager - Get a list of execution details of a Experiment resource. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - String that represents an Azure resource group. // experimentName - String that represents a Experiment resource name. // options - ExperimentsClientListExecutionDetailsOptions contains the optional parameters for the ExperimentsClient.ListExecutionDetails // method. -func (client *ExperimentsClient) ListExecutionDetails(resourceGroupName string, experimentName string, options *ExperimentsClientListExecutionDetailsOptions) *runtime.Pager[ExperimentsClientListExecutionDetailsResponse] { +func (client *ExperimentsClient) NewListExecutionDetailsPager(resourceGroupName string, experimentName string, options *ExperimentsClientListExecutionDetailsOptions) *runtime.Pager[ExperimentsClientListExecutionDetailsResponse] { return runtime.NewPager(runtime.PageProcessor[ExperimentsClientListExecutionDetailsResponse]{ More: func(page ExperimentsClientListExecutionDetailsResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/chaos/armchaos/zz_generated_operations_client.go b/sdk/resourcemanager/chaos/armchaos/zz_generated_operations_client.go index 561c6cf7e73d..0a0086c511ed 100644 --- a/sdk/resourcemanager/chaos/armchaos/zz_generated_operations_client.go +++ b/sdk/resourcemanager/chaos/armchaos/zz_generated_operations_client.go @@ -48,10 +48,10 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO return client, nil } -// ListAll - Get a list all available Operations. +// NewListAllPager - Get a list all available Operations. // If the operation fails it returns an *azcore.ResponseError type. // options - OperationsClientListAllOptions contains the optional parameters for the OperationsClient.ListAll method. -func (client *OperationsClient) ListAll(options *OperationsClientListAllOptions) *runtime.Pager[OperationsClientListAllResponse] { +func (client *OperationsClient) NewListAllPager(options *OperationsClientListAllOptions) *runtime.Pager[OperationsClientListAllResponse] { return runtime.NewPager(runtime.PageProcessor[OperationsClientListAllResponse]{ More: func(page OperationsClientListAllResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/chaos/armchaos/zz_generated_targets_client.go b/sdk/resourcemanager/chaos/armchaos/zz_generated_targets_client.go index ff99b52898d7..fa6184868959 100644 --- a/sdk/resourcemanager/chaos/armchaos/zz_generated_targets_client.go +++ b/sdk/resourcemanager/chaos/armchaos/zz_generated_targets_client.go @@ -256,14 +256,14 @@ func (client *TargetsClient) getHandleResponse(resp *http.Response) (TargetsClie return result, nil } -// List - Get a list of Target resources that extend a tracked regional resource. +// NewListPager - Get a list of Target resources that extend a tracked regional resource. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - String that represents an Azure resource group. // parentProviderNamespace - String that represents a resource provider namespace. // parentResourceType - String that represents a resource type. // parentResourceName - String that represents a resource name. // options - TargetsClientListOptions contains the optional parameters for the TargetsClient.List method. -func (client *TargetsClient) List(resourceGroupName string, parentProviderNamespace string, parentResourceType string, parentResourceName string, options *TargetsClientListOptions) *runtime.Pager[TargetsClientListResponse] { +func (client *TargetsClient) NewListPager(resourceGroupName string, parentProviderNamespace string, parentResourceType string, parentResourceName string, options *TargetsClientListOptions) *runtime.Pager[TargetsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[TargetsClientListResponse]{ More: func(page TargetsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/chaos/armchaos/zz_generated_targettypes_client.go b/sdk/resourcemanager/chaos/armchaos/zz_generated_targettypes_client.go index f3f13fee9595..6cc6e7cb7df2 100644 --- a/sdk/resourcemanager/chaos/armchaos/zz_generated_targettypes_client.go +++ b/sdk/resourcemanager/chaos/armchaos/zz_generated_targettypes_client.go @@ -109,11 +109,11 @@ func (client *TargetTypesClient) getHandleResponse(resp *http.Response) (TargetT return result, nil } -// List - Get a list of Target Type resources for given location. +// NewListPager - Get a list of Target Type resources for given location. // If the operation fails it returns an *azcore.ResponseError type. // locationName - String that represents a Location resource name. // options - TargetTypesClientListOptions contains the optional parameters for the TargetTypesClient.List method. -func (client *TargetTypesClient) List(locationName string, options *TargetTypesClientListOptions) *runtime.Pager[TargetTypesClientListResponse] { +func (client *TargetTypesClient) NewListPager(locationName string, options *TargetTypesClientListOptions) *runtime.Pager[TargetTypesClientListResponse] { return runtime.NewPager(runtime.PageProcessor[TargetTypesClientListResponse]{ More: func(page TargetTypesClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/CHANGELOG.md b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/CHANGELOG.md index 3976ead91bcd..24c63caace64 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/CHANGELOG.md +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/CHANGELOG.md @@ -1,5 +1,31 @@ # Release History +## 0.6.0 (2022-04-15) +### Breaking Changes + +- Function `*ResourceSKUsClient.List` has been removed +- Function `*AccountsClient.List` has been removed +- Function `*AccountsClient.ListByResourceGroup` has been removed +- Function `*CommitmentPlansClient.List` has been removed +- Function `*DeletedAccountsClient.List` has been removed +- Function `*AccountsClient.ListModels` has been removed +- Function `*OperationsClient.List` has been removed +- Function `*CommitmentTiersClient.List` has been removed +- Function `*DeploymentsClient.List` has been removed + +### Features Added + +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` +- New function `*AccountsClient.NewListPager(*AccountsClientListOptions) *runtime.Pager[AccountsClientListResponse]` +- New function `*CommitmentTiersClient.NewListPager(string, *CommitmentTiersClientListOptions) *runtime.Pager[CommitmentTiersClientListResponse]` +- New function `*DeletedAccountsClient.NewListPager(*DeletedAccountsClientListOptions) *runtime.Pager[DeletedAccountsClientListResponse]` +- New function `*AccountsClient.NewListByResourceGroupPager(string, *AccountsClientListByResourceGroupOptions) *runtime.Pager[AccountsClientListByResourceGroupResponse]` +- New function `*CommitmentPlansClient.NewListPager(string, string, *CommitmentPlansClientListOptions) *runtime.Pager[CommitmentPlansClientListResponse]` +- New function `*ResourceSKUsClient.NewListPager(*ResourceSKUsClientListOptions) *runtime.Pager[ResourceSKUsClientListResponse]` +- New function `*AccountsClient.NewListModelsPager(string, string, *AccountsClientListModelsOptions) *runtime.Pager[AccountsClientListModelsResponse]` +- New function `*DeploymentsClient.NewListPager(string, string, *DeploymentsClientListOptions) *runtime.Pager[DeploymentsClientListResponse]` + + ## 0.5.0 (2022-04-11) ### Breaking Changes diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/autorest.md b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/autorest.md index a5fed0789d20..3568fad15f10 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/autorest.md +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/autorest.md @@ -5,8 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/d48ca7ed92cbb4f972eb6214bdb3200edaf78369/specification/cognitiveservices/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/d48ca7ed92cbb4f972eb6214bdb3200edaf78369/specification/cognitiveservices/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/cognitiveservices/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/cognitiveservices/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.5.0 +module-version: 0.6.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_accounts_client_test.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_accounts_client_test.go index ddccc7c4b6ad..c895e7382b6d 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_accounts_client_test.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_accounts_client_test.go @@ -163,7 +163,7 @@ func ExampleAccountsClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/ListAccountsByResourceGroup.json -func ExampleAccountsClient_ListByResourceGroup() { +func ExampleAccountsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -175,7 +175,7 @@ func ExampleAccountsClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -191,7 +191,7 @@ func ExampleAccountsClient_ListByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/ListAccountsBySubscription.json -func ExampleAccountsClient_List() { +func ExampleAccountsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -203,7 +203,7 @@ func ExampleAccountsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(nil) + pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { @@ -296,7 +296,7 @@ func ExampleAccountsClient_ListUsages() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/ListAccountModels.json -func ExampleAccountsClient_ListModels() { +func ExampleAccountsClient_NewListModelsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -308,7 +308,7 @@ func ExampleAccountsClient_ListModels() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListModels("", + pager := client.NewListModelsPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_commitmentplans_client_test.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_commitmentplans_client_test.go index ff71ac09b0af..96ae714da7e3 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_commitmentplans_client_test.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_commitmentplans_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/ListCommitmentPlans.json -func ExampleCommitmentPlansClient_List() { +func ExampleCommitmentPlansClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleCommitmentPlansClient_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/cognitiveservices/armcognitiveservices/ze_generated_example_commitmenttiers_client_test.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_commitmenttiers_client_test.go index e14cb8084527..61d99c57966d 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_commitmenttiers_client_test.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_commitmenttiers_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/ListCommitmentTiers.json -func ExampleCommitmentTiersClient_List() { +func ExampleCommitmentTiersClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleCommitmentTiersClient_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/cognitiveservices/armcognitiveservices/ze_generated_example_deletedaccounts_client_test.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_deletedaccounts_client_test.go index 60041cea2533..9103b69fd0db 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_deletedaccounts_client_test.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_deletedaccounts_client_test.go @@ -74,7 +74,7 @@ func ExampleDeletedAccountsClient_BeginPurge() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/ListAccountsBySubscription.json -func ExampleDeletedAccountsClient_List() { +func ExampleDeletedAccountsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -86,7 +86,7 @@ func ExampleDeletedAccountsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(nil) + pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_deployments_client_test.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_deployments_client_test.go index dff88b41c653..ac7243ef5dce 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_deployments_client_test.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_deployments_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/ListDeployments.json -func ExampleDeploymentsClient_List() { +func ExampleDeploymentsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleDeploymentsClient_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/cognitiveservices/armcognitiveservices/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_operations_client_test.go index 798e6c597ac7..243bad15dcb5 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/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/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/GetOperations.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/cognitiveservices/armcognitiveservices/ze_generated_example_resourceskus_client_test.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_resourceskus_client_test.go index ed73b452bbce..034976c8990a 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_resourceskus_client_test.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/ze_generated_example_resourceskus_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-03-01/examples/GetSkus.json -func ExampleResourceSKUsClient_List() { +func ExampleResourceSKUsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleResourceSKUsClient_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/cognitiveservices/armcognitiveservices/zz_generated_accounts_client.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_accounts_client.go index bca17d3b87bb..cf2f7cc2b1b1 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_accounts_client.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_accounts_client.go @@ -232,10 +232,10 @@ func (client *AccountsClient) getHandleResponse(resp *http.Response) (AccountsCl return result, nil } -// List - Returns all the resources of a particular type belonging to a subscription. +// NewListPager - Returns all the resources of a particular type belonging to a subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - AccountsClientListOptions contains the optional parameters for the AccountsClient.List method. -func (client *AccountsClient) List(options *AccountsClientListOptions) *runtime.Pager[AccountsClientListResponse] { +func (client *AccountsClient) NewListPager(options *AccountsClientListOptions) *runtime.Pager[AccountsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[AccountsClientListResponse]{ More: func(page AccountsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -290,12 +290,12 @@ func (client *AccountsClient) listHandleResponse(resp *http.Response) (AccountsC return result, nil } -// ListByResourceGroup - Returns all the resources of a particular type belonging to a resource group +// NewListByResourceGroupPager - Returns all the resources of a particular type belonging to 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 - AccountsClientListByResourceGroupOptions contains the optional parameters for the AccountsClient.ListByResourceGroup // method. -func (client *AccountsClient) ListByResourceGroup(resourceGroupName string, options *AccountsClientListByResourceGroupOptions) *runtime.Pager[AccountsClientListByResourceGroupResponse] { +func (client *AccountsClient) NewListByResourceGroupPager(resourceGroupName string, options *AccountsClientListByResourceGroupOptions) *runtime.Pager[AccountsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[AccountsClientListByResourceGroupResponse]{ More: func(page AccountsClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -409,12 +409,12 @@ func (client *AccountsClient) listKeysHandleResponse(resp *http.Response) (Accou return result, nil } -// ListModels - List available Models for the requested Cognitive Services account +// NewListModelsPager - List available Models for the requested Cognitive Services account // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group. The name is case insensitive. // accountName - The name of Cognitive Services account. // options - AccountsClientListModelsOptions contains the optional parameters for the AccountsClient.ListModels method. -func (client *AccountsClient) ListModels(resourceGroupName string, accountName string, options *AccountsClientListModelsOptions) *runtime.Pager[AccountsClientListModelsResponse] { +func (client *AccountsClient) NewListModelsPager(resourceGroupName string, accountName string, options *AccountsClientListModelsOptions) *runtime.Pager[AccountsClientListModelsResponse] { return runtime.NewPager(runtime.PageProcessor[AccountsClientListModelsResponse]{ More: func(page AccountsClientListModelsResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_commitmentplans_client.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_commitmentplans_client.go index 258508556ee3..5471c4a8f296 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_commitmentplans_client.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_commitmentplans_client.go @@ -242,12 +242,12 @@ func (client *CommitmentPlansClient) getHandleResponse(resp *http.Response) (Com return result, nil } -// List - Gets the commitmentPlans associated with the Cognitive Services account. +// NewListPager - Gets the commitmentPlans associated with the Cognitive Services account. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group. The name is case insensitive. // accountName - The name of Cognitive Services account. // options - CommitmentPlansClientListOptions contains the optional parameters for the CommitmentPlansClient.List method. -func (client *CommitmentPlansClient) List(resourceGroupName string, accountName string, options *CommitmentPlansClientListOptions) *runtime.Pager[CommitmentPlansClientListResponse] { +func (client *CommitmentPlansClient) NewListPager(resourceGroupName string, accountName string, options *CommitmentPlansClientListOptions) *runtime.Pager[CommitmentPlansClientListResponse] { return runtime.NewPager(runtime.PageProcessor[CommitmentPlansClientListResponse]{ More: func(page CommitmentPlansClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_commitmenttiers_client.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_commitmenttiers_client.go index 7753567fd717..cdbce95880af 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_commitmenttiers_client.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_commitmenttiers_client.go @@ -54,11 +54,11 @@ func NewCommitmentTiersClient(subscriptionID string, credential azcore.TokenCred return client, nil } -// List - List Commitment Tiers. +// NewListPager - List Commitment Tiers. // If the operation fails it returns an *azcore.ResponseError type. // location - Resource location. // options - CommitmentTiersClientListOptions contains the optional parameters for the CommitmentTiersClient.List method. -func (client *CommitmentTiersClient) List(location string, options *CommitmentTiersClientListOptions) *runtime.Pager[CommitmentTiersClientListResponse] { +func (client *CommitmentTiersClient) NewListPager(location string, options *CommitmentTiersClientListOptions) *runtime.Pager[CommitmentTiersClientListResponse] { return runtime.NewPager(runtime.PageProcessor[CommitmentTiersClientListResponse]{ More: func(page CommitmentTiersClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_constants.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_constants.go index 2bc7012f0845..13a1875712e5 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_constants.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_constants.go @@ -10,7 +10,7 @@ package armcognitiveservices const ( moduleName = "armcognitiveservices" - moduleVersion = "v0.5.0" + moduleVersion = "v0.6.0" ) // ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_deletedaccounts_client.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_deletedaccounts_client.go index e8a296729778..73428a4c9275 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_deletedaccounts_client.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_deletedaccounts_client.go @@ -114,10 +114,10 @@ func (client *DeletedAccountsClient) getHandleResponse(resp *http.Response) (Del return result, nil } -// List - Returns all the resources of a particular type belonging to a subscription. +// NewListPager - Returns all the resources of a particular type belonging to a subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - DeletedAccountsClientListOptions contains the optional parameters for the DeletedAccountsClient.List method. -func (client *DeletedAccountsClient) List(options *DeletedAccountsClientListOptions) *runtime.Pager[DeletedAccountsClientListResponse] { +func (client *DeletedAccountsClient) NewListPager(options *DeletedAccountsClientListOptions) *runtime.Pager[DeletedAccountsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[DeletedAccountsClientListResponse]{ More: func(page DeletedAccountsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_deployments_client.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_deployments_client.go index 16a7bcd40960..eb25d554be1d 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_deployments_client.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_deployments_client.go @@ -246,12 +246,12 @@ func (client *DeploymentsClient) getHandleResponse(resp *http.Response) (Deploym return result, nil } -// List - Gets the deployments associated with the Cognitive Services account. +// NewListPager - Gets the deployments associated with the Cognitive Services account. // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group. The name is case insensitive. // accountName - The name of Cognitive Services account. // options - DeploymentsClientListOptions contains the optional parameters for the DeploymentsClient.List method. -func (client *DeploymentsClient) List(resourceGroupName string, accountName string, options *DeploymentsClientListOptions) *runtime.Pager[DeploymentsClientListResponse] { +func (client *DeploymentsClient) NewListPager(resourceGroupName string, accountName string, options *DeploymentsClientListOptions) *runtime.Pager[DeploymentsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[DeploymentsClientListResponse]{ More: func(page DeploymentsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_operations_client.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_operations_client.go index 188a96c437c3..716790290c56 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_operations_client.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_operations_client.go @@ -48,10 +48,10 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO return client, nil } -// List - Lists all the available Cognitive Services account operations. +// NewListPager - Lists all the available Cognitive Services account 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/cognitiveservices/armcognitiveservices/zz_generated_resourceskus_client.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_resourceskus_client.go index 07f74b8e427b..b48555d17cf6 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_resourceskus_client.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/zz_generated_resourceskus_client.go @@ -54,10 +54,10 @@ func NewResourceSKUsClient(subscriptionID string, credential azcore.TokenCredent return client, nil } -// List - Gets the list of Microsoft.CognitiveServices SKUs available for your Subscription. +// NewListPager - Gets the list of Microsoft.CognitiveServices SKUs available for your Subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - ResourceSKUsClientListOptions contains the optional parameters for the ResourceSKUsClient.List method. -func (client *ResourceSKUsClient) List(options *ResourceSKUsClientListOptions) *runtime.Pager[ResourceSKUsClientListResponse] { +func (client *ResourceSKUsClient) NewListPager(options *ResourceSKUsClientListOptions) *runtime.Pager[ResourceSKUsClientListResponse] { return runtime.NewPager(runtime.PageProcessor[ResourceSKUsClientListResponse]{ More: func(page ResourceSKUsClientListResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/communication/armcommunication/CHANGELOG.md b/sdk/resourcemanager/communication/armcommunication/CHANGELOG.md index ab119f6af850..a1a277e23b65 100644 --- a/sdk/resourcemanager/communication/armcommunication/CHANGELOG.md +++ b/sdk/resourcemanager/communication/armcommunication/CHANGELOG.md @@ -1,5 +1,19 @@ # Release History +## 0.4.0 (2022-04-15) +### Breaking Changes + +- Function `*ServiceClient.ListByResourceGroup` has been removed +- Function `*OperationsClient.List` has been removed +- Function `*ServiceClient.ListBySubscription` has been removed + +### Features Added + +- New function `*ServiceClient.NewListBySubscriptionPager(*ServiceClientListBySubscriptionOptions) *runtime.Pager[ServiceClientListBySubscriptionResponse]` +- New function `*ServiceClient.NewListByResourceGroupPager(string, *ServiceClientListByResourceGroupOptions) *runtime.Pager[ServiceClientListByResourceGroupResponse]` +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` + + ## 0.3.0 (2022-04-11) ### Breaking Changes diff --git a/sdk/resourcemanager/communication/armcommunication/autorest.md b/sdk/resourcemanager/communication/armcommunication/autorest.md index cb766ffc3a50..67a5f161a8b1 100644 --- a/sdk/resourcemanager/communication/armcommunication/autorest.md +++ b/sdk/resourcemanager/communication/armcommunication/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/d48ca7ed92cbb4f972eb6214bdb3200edaf78369/specification/communication/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/d48ca7ed92cbb4f972eb6214bdb3200edaf78369/specification/communication/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/communication/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/communication/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/communication/armcommunication/ze_generated_example_communicationservice_client_test.go b/sdk/resourcemanager/communication/armcommunication/ze_generated_example_communicationservice_client_test.go index 105509695672..cf32d2669400 100644 --- a/sdk/resourcemanager/communication/armcommunication/ze_generated_example_communicationservice_client_test.go +++ b/sdk/resourcemanager/communication/armcommunication/ze_generated_example_communicationservice_client_test.go @@ -76,7 +76,7 @@ func ExampleServiceClient_LinkNotificationHub() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/communication/resource-manager/Microsoft.Communication/stable/2020-08-20/examples/listBySubscription.json -func ExampleServiceClient_ListBySubscription() { +func ExampleServiceClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -88,7 +88,7 @@ func ExampleServiceClient_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 { @@ -103,7 +103,7 @@ func ExampleServiceClient_ListBySubscription() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/communication/resource-manager/Microsoft.Communication/stable/2020-08-20/examples/listByResourceGroup.json -func ExampleServiceClient_ListByResourceGroup() { +func ExampleServiceClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -115,7 +115,7 @@ func ExampleServiceClient_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/communication/armcommunication/zz_generated_constants.go b/sdk/resourcemanager/communication/armcommunication/zz_generated_constants.go index a0fc53b243b0..fe4a355bd748 100644 --- a/sdk/resourcemanager/communication/armcommunication/zz_generated_constants.go +++ b/sdk/resourcemanager/communication/armcommunication/zz_generated_constants.go @@ -10,7 +10,7 @@ package armcommunication const ( moduleName = "armcommunication" - moduleVersion = "v0.3.0" + moduleVersion = "v0.4.0" ) // ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. diff --git a/sdk/resourcemanager/communication/armcommunication/zz_generated_operations_client.go b/sdk/resourcemanager/communication/armcommunication/zz_generated_operations_client.go index f0fdb618ba41..863e0aefd72c 100644 --- a/sdk/resourcemanager/communication/armcommunication/zz_generated_operations_client.go +++ b/sdk/resourcemanager/communication/armcommunication/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.Communication provider. +// NewListPager - Lists all of the available REST API operations of the Microsoft.Communication 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/communication/armcommunication/zz_generated_service_client.go b/sdk/resourcemanager/communication/armcommunication/zz_generated_service_client.go index 78fca42164ba..e7ffce8fa9ec 100644 --- a/sdk/resourcemanager/communication/armcommunication/zz_generated_service_client.go +++ b/sdk/resourcemanager/communication/armcommunication/zz_generated_service_client.go @@ -345,12 +345,12 @@ func (client *ServiceClient) linkNotificationHubHandleResponse(resp *http.Respon 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. The name is case insensitive. // options - ServiceClientListByResourceGroupOptions contains the optional parameters for the ServiceClient.ListByResourceGroup // method. -func (client *ServiceClient) ListByResourceGroup(resourceGroupName string, options *ServiceClientListByResourceGroupOptions) *runtime.Pager[ServiceClientListByResourceGroupResponse] { +func (client *ServiceClient) NewListByResourceGroupPager(resourceGroupName string, options *ServiceClientListByResourceGroupOptions) *runtime.Pager[ServiceClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PageProcessor[ServiceClientListByResourceGroupResponse]{ More: func(page ServiceClientListByResourceGroupResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -409,11 +409,11 @@ func (client *ServiceClient) listByResourceGroupHandleResponse(resp *http.Respon 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 - ServiceClientListBySubscriptionOptions contains the optional parameters for the ServiceClient.ListBySubscription // method. -func (client *ServiceClient) ListBySubscription(options *ServiceClientListBySubscriptionOptions) *runtime.Pager[ServiceClientListBySubscriptionResponse] { +func (client *ServiceClient) NewListBySubscriptionPager(options *ServiceClientListBySubscriptionOptions) *runtime.Pager[ServiceClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PageProcessor[ServiceClientListBySubscriptionResponse]{ More: func(page ServiceClientListBySubscriptionResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 diff --git a/sdk/resourcemanager/compute/armcompute/CHANGELOG.md b/sdk/resourcemanager/compute/armcompute/CHANGELOG.md index 91ac6a5e718b..53dc4450ca21 100644 --- a/sdk/resourcemanager/compute/armcompute/CHANGELOG.md +++ b/sdk/resourcemanager/compute/armcompute/CHANGELOG.md @@ -1,5 +1,137 @@ # Release History +## 0.7.0 (2022-04-15) +### Breaking Changes + +- Function `*DisksClient.ListByResourceGroup` has been removed +- Function `*VirtualMachinesClient.ListByLocation` has been removed +- Function `*VirtualMachinesClient.ListAvailableSizes` has been removed +- Function `*DiskAccessesClient.ListPrivateEndpointConnections` has been removed +- Function `*RestorePointCollectionsClient.ListAll` has been removed +- Function `*VirtualMachineScaleSetsClient.List` has been removed +- Function `*SharedGalleryImagesClient.List` has been removed +- Function `*CloudServicesUpdateDomainClient.ListUpdateDomains` has been removed +- Function `*SharedGalleriesClient.List` has been removed +- Function `*VirtualMachineScaleSetExtensionsClient.List` has been removed +- Function `*DiskEncryptionSetsClient.ListByResourceGroup` has been removed +- Function `*VirtualMachineScaleSetsClient.ListAll` has been removed +- Function `*ProximityPlacementGroupsClient.ListBySubscription` has been removed +- Function `*DiskEncryptionSetsClient.ListAssociatedResources` has been removed +- Function `*CloudServiceOperatingSystemsClient.ListOSVersions` has been removed +- Function `*GalleriesClient.ListByResourceGroup` has been removed +- Function `*UsageClient.List` has been removed +- Function `*GalleryImagesClient.ListByGallery` has been removed +- Function `*GalleriesClient.List` has been removed +- Function `*CloudServicesClient.List` has been removed +- Function `*SSHPublicKeysClient.ListByResourceGroup` has been removed +- Function `*RestorePointCollectionsClient.List` has been removed +- Function `*VirtualMachineRunCommandsClient.ListByVirtualMachine` has been removed +- Function `*SnapshotsClient.ListByResourceGroup` has been removed +- Function `*DiskEncryptionSetsClient.List` has been removed +- Function `*ResourceSKUsClient.List` has been removed +- Function `*CloudServiceRolesClient.List` has been removed +- Function `*DisksClient.List` has been removed +- Function `*DiskRestorePointClient.ListByRestorePoint` has been removed +- Function `*ProximityPlacementGroupsClient.ListByResourceGroup` has been removed +- Function `*CloudServiceOperatingSystemsClient.ListOSFamilies` has been removed +- Function `*VirtualMachinesClient.ListAll` has been removed +- Function `*VirtualMachineRunCommandsClient.List` has been removed +- Function `*DiskAccessesClient.List` has been removed +- Function `*GalleryApplicationVersionsClient.ListByGalleryApplication` has been removed +- Function `*AvailabilitySetsClient.List` has been removed +- Function `*AvailabilitySetsClient.ListBySubscription` has been removed +- Function `*DedicatedHostGroupsClient.ListByResourceGroup` has been removed +- Function `*VirtualMachinesClient.List` has been removed +- Function `*CloudServicesClient.ListAll` has been removed +- Function `*DedicatedHostsClient.ListByHostGroup` has been removed +- Function `*ImagesClient.ListByResourceGroup` has been removed +- Function `*VirtualMachineScaleSetsClient.ListByLocation` has been removed +- Function `*CapacityReservationsClient.ListByCapacityReservationGroup` has been removed +- Function `*AvailabilitySetsClient.ListAvailableSizes` has been removed +- Function `*CloudServiceRoleInstancesClient.List` has been removed +- Function `*DiskAccessesClient.ListByResourceGroup` has been removed +- Function `*SharedGalleryImageVersionsClient.List` has been removed +- Function `*GalleryImageVersionsClient.ListByGalleryImage` has been removed +- Function `*VirtualMachineScaleSetVMRunCommandsClient.List` has been removed +- Function `*SSHPublicKeysClient.ListBySubscription` has been removed +- Function `*GalleryApplicationsClient.ListByGallery` has been removed +- Function `*OperationsClient.List` has been removed +- Function `*CapacityReservationGroupsClient.ListBySubscription` has been removed +- Function `*CapacityReservationGroupsClient.ListByResourceGroup` has been removed +- Function `*ImagesClient.List` has been removed +- Function `*VirtualMachineSizesClient.List` has been removed +- Function `*DedicatedHostGroupsClient.ListBySubscription` has been removed +- Function `*SnapshotsClient.List` has been removed +- Function `*VirtualMachineScaleSetVMsClient.List` has been removed +- Function `*VirtualMachineScaleSetsClient.GetOSUpgradeHistory` has been removed +- Function `*VirtualMachineScaleSetsClient.ListSKUs` has been removed + +### Features Added + +- New function `*SharedGalleriesClient.NewListPager(string, *SharedGalleriesClientListOptions) *runtime.Pager[SharedGalleriesClientListResponse]` +- New function `*VirtualMachinesClient.NewListAvailableSizesPager(string, string, *VirtualMachinesClientListAvailableSizesOptions) *runtime.Pager[VirtualMachinesClientListAvailableSizesResponse]` +- New function `*VirtualMachineScaleSetsClient.NewListByLocationPager(string, *VirtualMachineScaleSetsClientListByLocationOptions) *runtime.Pager[VirtualMachineScaleSetsClientListByLocationResponse]` +- New function `*VirtualMachineScaleSetsClient.NewListAllPager(*VirtualMachineScaleSetsClientListAllOptions) *runtime.Pager[VirtualMachineScaleSetsClientListAllResponse]` +- New function `*VirtualMachineScaleSetsClient.NewListPager(string, *VirtualMachineScaleSetsClientListOptions) *runtime.Pager[VirtualMachineScaleSetsClientListResponse]` +- New function `*GalleryApplicationVersionsClient.NewListByGalleryApplicationPager(string, string, string, *GalleryApplicationVersionsClientListByGalleryApplicationOptions) *runtime.Pager[GalleryApplicationVersionsClientListByGalleryApplicationResponse]` +- New function `*GalleryImagesClient.NewListByGalleryPager(string, string, *GalleryImagesClientListByGalleryOptions) *runtime.Pager[GalleryImagesClientListByGalleryResponse]` +- New function `*ProximityPlacementGroupsClient.NewListBySubscriptionPager(*ProximityPlacementGroupsClientListBySubscriptionOptions) *runtime.Pager[ProximityPlacementGroupsClientListBySubscriptionResponse]` +- New function `*DiskAccessesClient.NewListPager(*DiskAccessesClientListOptions) *runtime.Pager[DiskAccessesClientListResponse]` +- New function `*SSHPublicKeysClient.NewListBySubscriptionPager(*SSHPublicKeysClientListBySubscriptionOptions) *runtime.Pager[SSHPublicKeysClientListBySubscriptionResponse]` +- New function `*DiskRestorePointClient.NewListByRestorePointPager(string, string, string, *DiskRestorePointClientListByRestorePointOptions) *runtime.Pager[DiskRestorePointClientListByRestorePointResponse]` +- New function `*CloudServicesClient.NewListAllPager(*CloudServicesClientListAllOptions) *runtime.Pager[CloudServicesClientListAllResponse]` +- New function `*DedicatedHostsClient.NewListByHostGroupPager(string, string, *DedicatedHostsClientListByHostGroupOptions) *runtime.Pager[DedicatedHostsClientListByHostGroupResponse]` +- New function `*VirtualMachinesClient.NewListByLocationPager(string, *VirtualMachinesClientListByLocationOptions) *runtime.Pager[VirtualMachinesClientListByLocationResponse]` +- New function `*GalleryApplicationsClient.NewListByGalleryPager(string, string, *GalleryApplicationsClientListByGalleryOptions) *runtime.Pager[GalleryApplicationsClientListByGalleryResponse]` +- New function `*VirtualMachineScaleSetExtensionsClient.NewListPager(string, string, *VirtualMachineScaleSetExtensionsClientListOptions) *runtime.Pager[VirtualMachineScaleSetExtensionsClientListResponse]` +- New function `*VirtualMachineSizesClient.NewListPager(string, *VirtualMachineSizesClientListOptions) *runtime.Pager[VirtualMachineSizesClientListResponse]` +- New function `*SharedGalleryImageVersionsClient.NewListPager(string, string, string, *SharedGalleryImageVersionsClientListOptions) *runtime.Pager[SharedGalleryImageVersionsClientListResponse]` +- New function `*ImagesClient.NewListByResourceGroupPager(string, *ImagesClientListByResourceGroupOptions) *runtime.Pager[ImagesClientListByResourceGroupResponse]` +- New function `*VirtualMachineRunCommandsClient.NewListPager(string, *VirtualMachineRunCommandsClientListOptions) *runtime.Pager[VirtualMachineRunCommandsClientListResponse]` +- New function `*DisksClient.NewListPager(*DisksClientListOptions) *runtime.Pager[DisksClientListResponse]` +- New function `*VirtualMachineScaleSetVMsClient.NewListPager(string, string, *VirtualMachineScaleSetVMsClientListOptions) *runtime.Pager[VirtualMachineScaleSetVMsClientListResponse]` +- New function `*CloudServiceRoleInstancesClient.NewListPager(string, string, *CloudServiceRoleInstancesClientListOptions) *runtime.Pager[CloudServiceRoleInstancesClientListResponse]` +- New function `*SnapshotsClient.NewListPager(*SnapshotsClientListOptions) *runtime.Pager[SnapshotsClientListResponse]` +- New function `*ImagesClient.NewListPager(*ImagesClientListOptions) *runtime.Pager[ImagesClientListResponse]` +- New function `*DiskAccessesClient.NewListByResourceGroupPager(string, *DiskAccessesClientListByResourceGroupOptions) *runtime.Pager[DiskAccessesClientListByResourceGroupResponse]` +- New function `*ResourceSKUsClient.NewListPager(*ResourceSKUsClientListOptions) *runtime.Pager[ResourceSKUsClientListResponse]` +- New function `*DisksClient.NewListByResourceGroupPager(string, *DisksClientListByResourceGroupOptions) *runtime.Pager[DisksClientListByResourceGroupResponse]` +- New function `*CloudServicesClient.NewListPager(string, *CloudServicesClientListOptions) *runtime.Pager[CloudServicesClientListResponse]` +- New function `*AvailabilitySetsClient.NewListAvailableSizesPager(string, string, *AvailabilitySetsClientListAvailableSizesOptions) *runtime.Pager[AvailabilitySetsClientListAvailableSizesResponse]` +- New function `*CloudServicesUpdateDomainClient.NewListUpdateDomainsPager(string, string, *CloudServicesUpdateDomainClientListUpdateDomainsOptions) *runtime.Pager[CloudServicesUpdateDomainClientListUpdateDomainsResponse]` +- New function `*ProximityPlacementGroupsClient.NewListByResourceGroupPager(string, *ProximityPlacementGroupsClientListByResourceGroupOptions) *runtime.Pager[ProximityPlacementGroupsClientListByResourceGroupResponse]` +- New function `*DiskEncryptionSetsClient.NewListPager(*DiskEncryptionSetsClientListOptions) *runtime.Pager[DiskEncryptionSetsClientListResponse]` +- New function `*OperationsClient.NewListPager(*OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]` +- New function `*SnapshotsClient.NewListByResourceGroupPager(string, *SnapshotsClientListByResourceGroupOptions) *runtime.Pager[SnapshotsClientListByResourceGroupResponse]` +- New function `*DedicatedHostGroupsClient.NewListBySubscriptionPager(*DedicatedHostGroupsClientListBySubscriptionOptions) *runtime.Pager[DedicatedHostGroupsClientListBySubscriptionResponse]` +- New function `*CapacityReservationsClient.NewListByCapacityReservationGroupPager(string, string, *CapacityReservationsClientListByCapacityReservationGroupOptions) *runtime.Pager[CapacityReservationsClientListByCapacityReservationGroupResponse]` +- New function `*CapacityReservationGroupsClient.NewListByResourceGroupPager(string, *CapacityReservationGroupsClientListByResourceGroupOptions) *runtime.Pager[CapacityReservationGroupsClientListByResourceGroupResponse]` +- New function `*CloudServiceOperatingSystemsClient.NewListOSVersionsPager(string, *CloudServiceOperatingSystemsClientListOSVersionsOptions) *runtime.Pager[CloudServiceOperatingSystemsClientListOSVersionsResponse]` +- New function `*VirtualMachineScaleSetsClient.NewGetOSUpgradeHistoryPager(string, string, *VirtualMachineScaleSetsClientGetOSUpgradeHistoryOptions) *runtime.Pager[VirtualMachineScaleSetsClientGetOSUpgradeHistoryResponse]` +- New function `*GalleriesClient.NewListByResourceGroupPager(string, *GalleriesClientListByResourceGroupOptions) *runtime.Pager[GalleriesClientListByResourceGroupResponse]` +- New function `*CloudServiceRolesClient.NewListPager(string, string, *CloudServiceRolesClientListOptions) *runtime.Pager[CloudServiceRolesClientListResponse]` +- New function `*VirtualMachinesClient.NewListPager(string, *VirtualMachinesClientListOptions) *runtime.Pager[VirtualMachinesClientListResponse]` +- New function `*DedicatedHostGroupsClient.NewListByResourceGroupPager(string, *DedicatedHostGroupsClientListByResourceGroupOptions) *runtime.Pager[DedicatedHostGroupsClientListByResourceGroupResponse]` +- New function `*RestorePointCollectionsClient.NewListPager(string, *RestorePointCollectionsClientListOptions) *runtime.Pager[RestorePointCollectionsClientListResponse]` +- New function `*AvailabilitySetsClient.NewListBySubscriptionPager(*AvailabilitySetsClientListBySubscriptionOptions) *runtime.Pager[AvailabilitySetsClientListBySubscriptionResponse]` +- New function `*CapacityReservationGroupsClient.NewListBySubscriptionPager(*CapacityReservationGroupsClientListBySubscriptionOptions) *runtime.Pager[CapacityReservationGroupsClientListBySubscriptionResponse]` +- New function `*RestorePointCollectionsClient.NewListAllPager(*RestorePointCollectionsClientListAllOptions) *runtime.Pager[RestorePointCollectionsClientListAllResponse]` +- New function `*CloudServiceOperatingSystemsClient.NewListOSFamiliesPager(string, *CloudServiceOperatingSystemsClientListOSFamiliesOptions) *runtime.Pager[CloudServiceOperatingSystemsClientListOSFamiliesResponse]` +- New function `*SharedGalleryImagesClient.NewListPager(string, string, *SharedGalleryImagesClientListOptions) *runtime.Pager[SharedGalleryImagesClientListResponse]` +- New function `*GalleriesClient.NewListPager(*GalleriesClientListOptions) *runtime.Pager[GalleriesClientListResponse]` +- New function `*VirtualMachinesClient.NewListAllPager(*VirtualMachinesClientListAllOptions) *runtime.Pager[VirtualMachinesClientListAllResponse]` +- New function `*SSHPublicKeysClient.NewListByResourceGroupPager(string, *SSHPublicKeysClientListByResourceGroupOptions) *runtime.Pager[SSHPublicKeysClientListByResourceGroupResponse]` +- New function `*VirtualMachineScaleSetsClient.NewListSKUsPager(string, string, *VirtualMachineScaleSetsClientListSKUsOptions) *runtime.Pager[VirtualMachineScaleSetsClientListSKUsResponse]` +- New function `*DiskAccessesClient.NewListPrivateEndpointConnectionsPager(string, string, *DiskAccessesClientListPrivateEndpointConnectionsOptions) *runtime.Pager[DiskAccessesClientListPrivateEndpointConnectionsResponse]` +- New function `*VirtualMachineRunCommandsClient.NewListByVirtualMachinePager(string, string, *VirtualMachineRunCommandsClientListByVirtualMachineOptions) *runtime.Pager[VirtualMachineRunCommandsClientListByVirtualMachineResponse]` +- New function `*VirtualMachineScaleSetVMRunCommandsClient.NewListPager(string, string, string, *VirtualMachineScaleSetVMRunCommandsClientListOptions) *runtime.Pager[VirtualMachineScaleSetVMRunCommandsClientListResponse]` +- New function `*DiskEncryptionSetsClient.NewListByResourceGroupPager(string, *DiskEncryptionSetsClientListByResourceGroupOptions) *runtime.Pager[DiskEncryptionSetsClientListByResourceGroupResponse]` +- New function `*UsageClient.NewListPager(string, *UsageClientListOptions) *runtime.Pager[UsageClientListResponse]` +- New function `*DiskEncryptionSetsClient.NewListAssociatedResourcesPager(string, string, *DiskEncryptionSetsClientListAssociatedResourcesOptions) *runtime.Pager[DiskEncryptionSetsClientListAssociatedResourcesResponse]` +- New function `*GalleryImageVersionsClient.NewListByGalleryImagePager(string, string, string, *GalleryImageVersionsClientListByGalleryImageOptions) *runtime.Pager[GalleryImageVersionsClientListByGalleryImageResponse]` +- New function `*AvailabilitySetsClient.NewListPager(string, *AvailabilitySetsClientListOptions) *runtime.Pager[AvailabilitySetsClientListResponse]` + + ## 0.6.0 (2022-04-13) ### Breaking Changes diff --git a/sdk/resourcemanager/compute/armcompute/autorest.md b/sdk/resourcemanager/compute/armcompute/autorest.md index bd267640c138..e45e387350cb 100644 --- a/sdk/resourcemanager/compute/armcompute/autorest.md +++ b/sdk/resourcemanager/compute/armcompute/autorest.md @@ -5,8 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/c5c5e1d0c31a0ceccda42505d6e872ff303d1c80/specification/compute/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/c5c5e1d0c31a0ceccda42505d6e872ff303d1c80/specification/compute/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/compute/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/cc26f1d28c939bbcde00a29aa8958b3eebb10cea/specification/compute/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.6.0 +module-version: 0.7.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_availabilitysets_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_availabilitysets_client_test.go index 95d58e49b3e5..c008a4930ab9 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_availabilitysets_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_availabilitysets_client_test.go @@ -144,7 +144,7 @@ func ExampleAvailabilitySetsClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/ListAvailabilitySetsInASubscription.json -func ExampleAvailabilitySetsClient_ListBySubscription() { +func ExampleAvailabilitySetsClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -156,7 +156,7 @@ func ExampleAvailabilitySetsClient_ListBySubscription() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListBySubscription(&armcompute.AvailabilitySetsClientListBySubscriptionOptions{Expand: to.Ptr("")}) + pager := client.NewListBySubscriptionPager(&armcompute.AvailabilitySetsClientListBySubscriptionOptions{Expand: to.Ptr("")}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { @@ -171,7 +171,7 @@ func ExampleAvailabilitySetsClient_ListBySubscription() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/AvailabilitySets_List_MaximumSet_Gen.json -func ExampleAvailabilitySetsClient_List() { +func ExampleAvailabilitySetsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -183,7 +183,7 @@ func ExampleAvailabilitySetsClient_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) @@ -199,7 +199,7 @@ func ExampleAvailabilitySetsClient_List() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/AvailabilitySets_ListAvailableSizes_MaximumSet_Gen.json -func ExampleAvailabilitySetsClient_ListAvailableSizes() { +func ExampleAvailabilitySetsClient_NewListAvailableSizesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -211,7 +211,7 @@ func ExampleAvailabilitySetsClient_ListAvailableSizes() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListAvailableSizes("", + pager := client.NewListAvailableSizesPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_capacityreservationgroups_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_capacityreservationgroups_client_test.go index 9025df82686e..4368e7690b7a 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_capacityreservationgroups_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_capacityreservationgroups_client_test.go @@ -133,7 +133,7 @@ func ExampleCapacityReservationGroupsClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/ListCapacityReservationGroupsInResourceGroup.json -func ExampleCapacityReservationGroupsClient_ListByResourceGroup() { +func ExampleCapacityReservationGroupsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -145,7 +145,7 @@ func ExampleCapacityReservationGroupsClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", &armcompute.CapacityReservationGroupsClientListByResourceGroupOptions{Expand: to.Ptr(armcompute.ExpandTypesForGetCapacityReservationGroupsVirtualMachinesRef)}) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -161,7 +161,7 @@ func ExampleCapacityReservationGroupsClient_ListByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/ListCapacityReservationGroupsInSubscription.json -func ExampleCapacityReservationGroupsClient_ListBySubscription() { +func ExampleCapacityReservationGroupsClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -173,7 +173,7 @@ func ExampleCapacityReservationGroupsClient_ListBySubscription() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListBySubscription(&armcompute.CapacityReservationGroupsClientListBySubscriptionOptions{Expand: to.Ptr(armcompute.ExpandTypesForGetCapacityReservationGroupsVirtualMachinesRef)}) + pager := client.NewListBySubscriptionPager(&armcompute.CapacityReservationGroupsClientListBySubscriptionOptions{Expand: to.Ptr(armcompute.ExpandTypesForGetCapacityReservationGroupsVirtualMachinesRef)}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_capacityreservations_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_capacityreservations_client_test.go index 435b41b6214f..a616faee66f9 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_capacityreservations_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_capacityreservations_client_test.go @@ -172,7 +172,7 @@ func ExampleCapacityReservationsClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/ListCapacityReservationsInReservationGroup.json -func ExampleCapacityReservationsClient_ListByCapacityReservationGroup() { +func ExampleCapacityReservationsClient_NewListByCapacityReservationGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -184,7 +184,7 @@ func ExampleCapacityReservationsClient_ListByCapacityReservationGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByCapacityReservationGroup("", + pager := client.NewListByCapacityReservationGroupPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_cloudserviceoperatingsystems_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_cloudserviceoperatingsystems_client_test.go index 66aa143eb403..8439f6e34b5d 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_cloudserviceoperatingsystems_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_cloudserviceoperatingsystems_client_test.go @@ -42,7 +42,7 @@ func ExampleCloudServiceOperatingSystemsClient_GetOSVersion() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-03-01/examples/ListCloudServiceOSVersions.json -func ExampleCloudServiceOperatingSystemsClient_ListOSVersions() { +func ExampleCloudServiceOperatingSystemsClient_NewListOSVersionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -54,7 +54,7 @@ func ExampleCloudServiceOperatingSystemsClient_ListOSVersions() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListOSVersions("", + pager := client.NewListOSVersionsPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -95,7 +95,7 @@ func ExampleCloudServiceOperatingSystemsClient_GetOSFamily() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-03-01/examples/ListCloudServiceOSFamilies.json -func ExampleCloudServiceOperatingSystemsClient_ListOSFamilies() { +func ExampleCloudServiceOperatingSystemsClient_NewListOSFamiliesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -107,7 +107,7 @@ func ExampleCloudServiceOperatingSystemsClient_ListOSFamilies() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListOSFamilies("", + pager := client.NewListOSFamiliesPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_cloudserviceroleinstances_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_cloudserviceroleinstances_client_test.go index 97715c568d13..b8b964afe01f 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_cloudserviceroleinstances_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_cloudserviceroleinstances_client_test.go @@ -100,7 +100,7 @@ func ExampleCloudServiceRoleInstancesClient_GetInstanceView() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-03-01/examples/ListCloudServiceRolesInstances.json -func ExampleCloudServiceRoleInstancesClient_List() { +func ExampleCloudServiceRoleInstancesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -112,7 +112,7 @@ func ExampleCloudServiceRoleInstancesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", &armcompute.CloudServiceRoleInstancesClientListOptions{Expand: nil}) for pager.More() { diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_cloudserviceroles_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_cloudserviceroles_client_test.go index 666d16bde6d4..2107bd376f39 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_cloudserviceroles_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_cloudserviceroles_client_test.go @@ -43,7 +43,7 @@ func ExampleCloudServiceRolesClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-03-01/examples/ListCloudServiceRoles.json -func ExampleCloudServiceRolesClient_List() { +func ExampleCloudServiceRolesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -55,7 +55,7 @@ func ExampleCloudServiceRolesClient_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/compute/armcompute/ze_generated_example_cloudservices_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_cloudservices_client_test.go index 7409c61cc1e4..aa68de9f08cf 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_cloudservices_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_cloudservices_client_test.go @@ -209,7 +209,7 @@ func ExampleCloudServicesClient_GetInstanceView() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-03-01/examples/ListCloudServicesInSubscription.json -func ExampleCloudServicesClient_ListAll() { +func ExampleCloudServicesClient_NewListAllPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -221,7 +221,7 @@ func ExampleCloudServicesClient_ListAll() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListAll(nil) + pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { @@ -236,7 +236,7 @@ func ExampleCloudServicesClient_ListAll() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-03-01/examples/ListCloudServicesInResourceGroup.json -func ExampleCloudServicesClient_List() { +func ExampleCloudServicesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -248,7 +248,7 @@ func ExampleCloudServicesClient_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/compute/armcompute/ze_generated_example_cloudservicesupdatedomain_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_cloudservicesupdatedomain_client_test.go index 3c8229504ec3..6b63b19873df 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_cloudservicesupdatedomain_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_cloudservicesupdatedomain_client_test.go @@ -76,7 +76,7 @@ func ExampleCloudServicesUpdateDomainClient_GetUpdateDomain() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-03-01/examples/ListCloudServiceUpdateDomains.json -func ExampleCloudServicesUpdateDomainClient_ListUpdateDomains() { +func ExampleCloudServicesUpdateDomainClient_NewListUpdateDomainsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -88,7 +88,7 @@ func ExampleCloudServicesUpdateDomainClient_ListUpdateDomains() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListUpdateDomains("", + pager := client.NewListUpdateDomainsPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_dedicatedhostgroups_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_dedicatedhostgroups_client_test.go index d79863192b82..0a8ca67124cd 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_dedicatedhostgroups_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_dedicatedhostgroups_client_test.go @@ -161,7 +161,7 @@ func ExampleDedicatedHostGroupsClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/DedicatedHostGroups_ListByResourceGroup_MaximumSet_Gen.json -func ExampleDedicatedHostGroupsClient_ListByResourceGroup() { +func ExampleDedicatedHostGroupsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -173,7 +173,7 @@ func ExampleDedicatedHostGroupsClient_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) @@ -189,7 +189,7 @@ func ExampleDedicatedHostGroupsClient_ListByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/DedicatedHostGroups_ListBySubscription_MaximumSet_Gen.json -func ExampleDedicatedHostGroupsClient_ListBySubscription() { +func ExampleDedicatedHostGroupsClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -201,7 +201,7 @@ func ExampleDedicatedHostGroupsClient_ListBySubscription() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListBySubscription(nil) + pager := client.NewListBySubscriptionPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_dedicatedhosts_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_dedicatedhosts_client_test.go index 59251b207c1a..64ea6cb53178 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_dedicatedhosts_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_dedicatedhosts_client_test.go @@ -176,7 +176,7 @@ func ExampleDedicatedHostsClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/DedicatedHosts_ListByHostGroup_MaximumSet_Gen.json -func ExampleDedicatedHostsClient_ListByHostGroup() { +func ExampleDedicatedHostsClient_NewListByHostGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -188,7 +188,7 @@ func ExampleDedicatedHostsClient_ListByHostGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByHostGroup("", + pager := client.NewListByHostGroupPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_diskaccesses_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_diskaccesses_client_test.go index c028134d4e78..0841699e39c0 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_diskaccesses_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_diskaccesses_client_test.go @@ -142,7 +142,7 @@ func ExampleDiskAccessesClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-12-01/examples/ListDiskAccessesInAResourceGroup.json -func ExampleDiskAccessesClient_ListByResourceGroup() { +func ExampleDiskAccessesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -154,7 +154,7 @@ func ExampleDiskAccessesClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -170,7 +170,7 @@ func ExampleDiskAccessesClient_ListByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-12-01/examples/ListDiskAccessesInASubscription.json -func ExampleDiskAccessesClient_List() { +func ExampleDiskAccessesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -182,7 +182,7 @@ func ExampleDiskAccessesClient_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 { @@ -316,7 +316,7 @@ func ExampleDiskAccessesClient_BeginDeleteAPrivateEndpointConnection() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-12-01/examples/ListPrivateEndpointConnectionsInADiskAccess.json -func ExampleDiskAccessesClient_ListPrivateEndpointConnections() { +func ExampleDiskAccessesClient_NewListPrivateEndpointConnectionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -328,7 +328,7 @@ func ExampleDiskAccessesClient_ListPrivateEndpointConnections() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListPrivateEndpointConnections("", + pager := client.NewListPrivateEndpointConnectionsPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_diskencryptionsets_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_diskencryptionsets_client_test.go index 0acefebca3a8..1dd495194857 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_diskencryptionsets_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_diskencryptionsets_client_test.go @@ -157,7 +157,7 @@ func ExampleDiskEncryptionSetsClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-12-01/examples/ListDiskEncryptionSetsInAResourceGroup.json -func ExampleDiskEncryptionSetsClient_ListByResourceGroup() { +func ExampleDiskEncryptionSetsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -169,7 +169,7 @@ func ExampleDiskEncryptionSetsClient_ListByResourceGroup() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByResourceGroup("", + pager := client.NewListByResourceGroupPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -185,7 +185,7 @@ func ExampleDiskEncryptionSetsClient_ListByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-12-01/examples/ListDiskEncryptionSetsInASubscription.json -func ExampleDiskEncryptionSetsClient_List() { +func ExampleDiskEncryptionSetsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -197,7 +197,7 @@ func ExampleDiskEncryptionSetsClient_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 { @@ -212,7 +212,7 @@ func ExampleDiskEncryptionSetsClient_List() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-12-01/examples/ListDiskEncryptionSetAssociatedResources.json -func ExampleDiskEncryptionSetsClient_ListAssociatedResources() { +func ExampleDiskEncryptionSetsClient_NewListAssociatedResourcesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -224,7 +224,7 @@ func ExampleDiskEncryptionSetsClient_ListAssociatedResources() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListAssociatedResources("", + pager := client.NewListAssociatedResourcesPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_diskrestorepoint_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_diskrestorepoint_client_test.go index 3be4f57998a2..fda7d26b4edf 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_diskrestorepoint_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_diskrestorepoint_client_test.go @@ -47,7 +47,7 @@ func ExampleDiskRestorePointClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-12-01/examples/ListDiskRestorePointsInVmRestorePoint.json -func ExampleDiskRestorePointClient_ListByRestorePoint() { +func ExampleDiskRestorePointClient_NewListByRestorePointPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -59,7 +59,7 @@ func ExampleDiskRestorePointClient_ListByRestorePoint() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByRestorePoint("", + pager := client.NewListByRestorePointPager("", "", "", nil) diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_disks_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_disks_client_test.go index 1644e0190c48..63551b64940a 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_disks_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_disks_client_test.go @@ -155,7 +155,7 @@ func ExampleDisksClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-12-01/examples/ListManagedDisksInAResourceGroup.json -func ExampleDisksClient_ListByResourceGroup() { +func ExampleDisksClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -167,7 +167,7 @@ func ExampleDisksClient_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) @@ -183,7 +183,7 @@ func ExampleDisksClient_ListByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-12-01/examples/ListManagedDisksInASubscription.json -func ExampleDisksClient_List() { +func ExampleDisksClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -195,7 +195,7 @@ func ExampleDisksClient_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/compute/armcompute/ze_generated_example_galleries_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_galleries_client_test.go index a65acbb1fc5e..cb2b15270d29 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_galleries_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_galleries_client_test.go @@ -155,7 +155,7 @@ func ExampleGalleriesClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-10-01/examples/gallery/ListGalleriesInAResourceGroup.json -func ExampleGalleriesClient_ListByResourceGroup() { +func ExampleGalleriesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -167,7 +167,7 @@ func ExampleGalleriesClient_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) @@ -183,7 +183,7 @@ func ExampleGalleriesClient_ListByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-10-01/examples/gallery/ListGalleriesInASubscription.json -func ExampleGalleriesClient_List() { +func ExampleGalleriesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -195,7 +195,7 @@ func ExampleGalleriesClient_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/compute/armcompute/ze_generated_example_galleryapplications_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_galleryapplications_client_test.go index bdb21b11c4ef..fc6479130280 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_galleryapplications_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_galleryapplications_client_test.go @@ -156,7 +156,7 @@ func ExampleGalleryApplicationsClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-10-01/examples/gallery/ListGalleryApplicationsInAGallery.json -func ExampleGalleryApplicationsClient_ListByGallery() { +func ExampleGalleryApplicationsClient_NewListByGalleryPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -168,7 +168,7 @@ func ExampleGalleryApplicationsClient_ListByGallery() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByGallery("", + pager := client.NewListByGalleryPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_galleryapplicationversions_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_galleryapplicationversions_client_test.go index 08799f3b9c45..0def518cfcb8 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_galleryapplicationversions_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_galleryapplicationversions_client_test.go @@ -186,7 +186,7 @@ func ExampleGalleryApplicationVersionsClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-10-01/examples/gallery/ListGalleryApplicationVersionsInAGalleryApplication.json -func ExampleGalleryApplicationVersionsClient_ListByGalleryApplication() { +func ExampleGalleryApplicationVersionsClient_NewListByGalleryApplicationPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -198,7 +198,7 @@ func ExampleGalleryApplicationVersionsClient_ListByGalleryApplication() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByGalleryApplication("", + pager := client.NewListByGalleryApplicationPager("", "", "", nil) diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_galleryimages_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_galleryimages_client_test.go index 95258171b304..3b0f987a7faf 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_galleryimages_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_galleryimages_client_test.go @@ -162,7 +162,7 @@ func ExampleGalleryImagesClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-10-01/examples/gallery/ListGalleryImagesInAGallery.json -func ExampleGalleryImagesClient_ListByGallery() { +func ExampleGalleryImagesClient_NewListByGalleryPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -174,7 +174,7 @@ func ExampleGalleryImagesClient_ListByGallery() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByGallery("", + pager := client.NewListByGalleryPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_galleryimageversions_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_galleryimageversions_client_test.go index c630df27816b..9170ff2fe8da 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_galleryimageversions_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_galleryimageversions_client_test.go @@ -212,7 +212,7 @@ func ExampleGalleryImageVersionsClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-10-01/examples/gallery/ListGalleryImageVersionsInAGalleryImage.json -func ExampleGalleryImageVersionsClient_ListByGalleryImage() { +func ExampleGalleryImageVersionsClient_NewListByGalleryImagePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -224,7 +224,7 @@ func ExampleGalleryImageVersionsClient_ListByGalleryImage() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByGalleryImage("", + pager := client.NewListByGalleryImagePager("", "", "", nil) diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_images_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_images_client_test.go index 10487d384c77..59a1e254b6c8 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_images_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_images_client_test.go @@ -159,7 +159,7 @@ func ExampleImagesClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/ListImagesInAResourceGroup.json -func ExampleImagesClient_ListByResourceGroup() { +func ExampleImagesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -171,7 +171,7 @@ func ExampleImagesClient_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) @@ -187,7 +187,7 @@ func ExampleImagesClient_ListByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/ListImagesInASubscription.json -func ExampleImagesClient_List() { +func ExampleImagesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -199,7 +199,7 @@ func ExampleImagesClient_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/compute/armcompute/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_operations_client_test.go index 2b0abdc974ae..304d2766beb0 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/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/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/Operations_List_MaximumSet_Gen.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/compute/armcompute/ze_generated_example_proximityplacementgroups_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_proximityplacementgroups_client_test.go index dffa2681556a..685d3e20e1ef 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_proximityplacementgroups_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_proximityplacementgroups_client_test.go @@ -127,7 +127,7 @@ func ExampleProximityPlacementGroupsClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/ListProximityPlacementGroupsInASubscription.json -func ExampleProximityPlacementGroupsClient_ListBySubscription() { +func ExampleProximityPlacementGroupsClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -139,7 +139,7 @@ func ExampleProximityPlacementGroupsClient_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 { @@ -154,7 +154,7 @@ func ExampleProximityPlacementGroupsClient_ListBySubscription() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/ListProximityPlacementGroupsInAResourceGroup.json -func ExampleProximityPlacementGroupsClient_ListByResourceGroup() { +func ExampleProximityPlacementGroupsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -166,7 +166,7 @@ func ExampleProximityPlacementGroupsClient_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/compute/armcompute/ze_generated_example_resourceskus_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_resourceskus_client_test.go index 7739f2ee5321..5d2d3a67b918 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_resourceskus_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_resourceskus_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/skus/ListAvailableResourceSkus.json -func ExampleResourceSKUsClient_List() { +func ExampleResourceSKUsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleResourceSKUsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List(&armcompute.ResourceSKUsClientListOptions{Filter: nil, + pager := client.NewListPager(&armcompute.ResourceSKUsClientListOptions{Filter: nil, IncludeExtendedLocations: nil, }) for pager.More() { diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_restorepointcollections_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_restorepointcollections_client_test.go index 49220d30415d..00699296973a 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_restorepointcollections_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_restorepointcollections_client_test.go @@ -144,7 +144,7 @@ func ExampleRestorePointCollectionsClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/GetRestorePointCollectionsInAResourceGroup.json -func ExampleRestorePointCollectionsClient_List() { +func ExampleRestorePointCollectionsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -156,7 +156,7 @@ func ExampleRestorePointCollectionsClient_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) @@ -172,7 +172,7 @@ func ExampleRestorePointCollectionsClient_List() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/GetRestorePointCollectionsInASubscription.json -func ExampleRestorePointCollectionsClient_ListAll() { +func ExampleRestorePointCollectionsClient_NewListAllPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -184,7 +184,7 @@ func ExampleRestorePointCollectionsClient_ListAll() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListAll(nil) + pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_sharedgalleries_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_sharedgalleries_client_test.go index b0b28fe40c71..55f60c07b5c9 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_sharedgalleries_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_sharedgalleries_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/sharedGallery/ListSharedGalleries.json -func ExampleSharedGalleriesClient_List() { +func ExampleSharedGalleriesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleSharedGalleriesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", &armcompute.SharedGalleriesClientListOptions{SharedTo: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_sharedgalleryimages_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_sharedgalleryimages_client_test.go index c1ed6749e129..2047b6ad7bdc 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_sharedgalleryimages_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_sharedgalleryimages_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/sharedGallery/ListSharedGalleryImages.json -func ExampleSharedGalleryImagesClient_List() { +func ExampleSharedGalleryImagesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleSharedGalleryImagesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", &armcompute.SharedGalleryImagesClientListOptions{SharedTo: nil}) for pager.More() { diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_sharedgalleryimageversions_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_sharedgalleryimageversions_client_test.go index ccb9ddd55103..1d22ebda900b 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_sharedgalleryimageversions_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_sharedgalleryimageversions_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/sharedGallery/ListSharedGalleryImageVersions.json -func ExampleSharedGalleryImageVersionsClient_List() { +func ExampleSharedGalleryImageVersionsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleSharedGalleryImageVersionsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", "", &armcompute.SharedGalleryImageVersionsClientListOptions{SharedTo: nil}) diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_snapshots_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_snapshots_client_test.go index 413f5063c1dd..5b5c046fa3f5 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_snapshots_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_snapshots_client_test.go @@ -155,7 +155,7 @@ func ExampleSnapshotsClient_BeginDelete() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-12-01/examples/ListSnapshotsInAResourceGroup.json -func ExampleSnapshotsClient_ListByResourceGroup() { +func ExampleSnapshotsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -167,7 +167,7 @@ func ExampleSnapshotsClient_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) @@ -183,7 +183,7 @@ func ExampleSnapshotsClient_ListByResourceGroup() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-12-01/examples/ListSnapshotsInASubscription.json -func ExampleSnapshotsClient_List() { +func ExampleSnapshotsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -195,7 +195,7 @@ func ExampleSnapshotsClient_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/compute/armcompute/ze_generated_example_sshpublickeys_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_sshpublickeys_client_test.go index 8d3b9892d7f4..5f29e51cd9dd 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_sshpublickeys_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_sshpublickeys_client_test.go @@ -18,7 +18,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/SshPublicKeys_ListBySubscription_MaximumSet_Gen.json -func ExampleSSHPublicKeysClient_ListBySubscription() { +func ExampleSSHPublicKeysClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -30,7 +30,7 @@ func ExampleSSHPublicKeysClient_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 { @@ -45,7 +45,7 @@ func ExampleSSHPublicKeysClient_ListBySubscription() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/SshPublicKeys_ListByResourceGroup_MaximumSet_Gen.json -func ExampleSSHPublicKeysClient_ListByResourceGroup() { +func ExampleSSHPublicKeysClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -57,7 +57,7 @@ func ExampleSSHPublicKeysClient_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/compute/armcompute/ze_generated_example_usage_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_usage_client_test.go index 4294c9e51b23..ddff7cd3e55d 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_usage_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_usage_client_test.go @@ -17,7 +17,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/Usage_List_MaximumSet_Gen.json -func ExampleUsageClient_List() { +func ExampleUsageClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleUsageClient_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/compute/armcompute/ze_generated_example_virtualmachineruncommands_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_virtualmachineruncommands_client_test.go index a0c7c2d7ea3b..dff8fa3bd004 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_virtualmachineruncommands_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_virtualmachineruncommands_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/runCommands/VirtualMachineRunCommandList.json -func ExampleVirtualMachineRunCommandsClient_List() { +func ExampleVirtualMachineRunCommandsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleVirtualMachineRunCommandsClient_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) @@ -218,7 +218,7 @@ func ExampleVirtualMachineRunCommandsClient_GetByVirtualMachine() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/runCommands/ListRunCommandsInVM.json -func ExampleVirtualMachineRunCommandsClient_ListByVirtualMachine() { +func ExampleVirtualMachineRunCommandsClient_NewListByVirtualMachinePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -230,7 +230,7 @@ func ExampleVirtualMachineRunCommandsClient_ListByVirtualMachine() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByVirtualMachine("", + pager := client.NewListByVirtualMachinePager("", "", &armcompute.VirtualMachineRunCommandsClientListByVirtualMachineOptions{Expand: nil}) for pager.More() { diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_virtualmachines_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_virtualmachines_client_test.go index 3f8fcfab93ca..7d0cc695f1d1 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_virtualmachines_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/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/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/ListVirtualMachinesInASubscriptionByLocation.json -func ExampleVirtualMachinesClient_ListByLocation() { +func ExampleVirtualMachinesClient_NewListByLocationPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleVirtualMachinesClient_ListByLocation() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByLocation("", + pager := client.NewListByLocationPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -398,7 +398,7 @@ func ExampleVirtualMachinesClient_Generalize() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/VirtualMachines_List_MaximumSet_Gen.json -func ExampleVirtualMachinesClient_List() { +func ExampleVirtualMachinesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -410,7 +410,7 @@ func ExampleVirtualMachinesClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", &armcompute.VirtualMachinesClientListOptions{Filter: to.Ptr("")}) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -426,7 +426,7 @@ func ExampleVirtualMachinesClient_List() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/VirtualMachines_ListAll_MaximumSet_Gen.json -func ExampleVirtualMachinesClient_ListAll() { +func ExampleVirtualMachinesClient_NewListAllPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -438,7 +438,7 @@ func ExampleVirtualMachinesClient_ListAll() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListAll(&armcompute.VirtualMachinesClientListAllOptions{StatusOnly: to.Ptr(""), + pager := client.NewListAllPager(&armcompute.VirtualMachinesClientListAllOptions{StatusOnly: to.Ptr(""), Filter: to.Ptr(""), }) for pager.More() { @@ -455,7 +455,7 @@ func ExampleVirtualMachinesClient_ListAll() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/ListAvailableVmSizes_VirtualMachines.json -func ExampleVirtualMachinesClient_ListAvailableSizes() { +func ExampleVirtualMachinesClient_NewListAvailableSizesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -467,7 +467,7 @@ func ExampleVirtualMachinesClient_ListAvailableSizes() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListAvailableSizes("", + pager := client.NewListAvailableSizesPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_virtualmachinescalesetextensions_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_virtualmachinescalesetextensions_client_test.go index 0e42ffca9c06..e03f9cbad58a 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_virtualmachinescalesetextensions_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_virtualmachinescalesetextensions_client_test.go @@ -168,7 +168,7 @@ func ExampleVirtualMachineScaleSetExtensionsClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/VirtualMachineScaleSetExtensions_List_MaximumSet_Gen.json -func ExampleVirtualMachineScaleSetExtensionsClient_List() { +func ExampleVirtualMachineScaleSetExtensionsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -180,7 +180,7 @@ func ExampleVirtualMachineScaleSetExtensionsClient_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/compute/armcompute/ze_generated_example_virtualmachinescalesets_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_virtualmachinescalesets_client_test.go index b3139a973e36..7b08ae956981 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_virtualmachinescalesets_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_virtualmachinescalesets_client_test.go @@ -20,7 +20,7 @@ import ( ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/ListVirtualMachineScaleSetsInASubscriptionByLocation.json -func ExampleVirtualMachineScaleSetsClient_ListByLocation() { +func ExampleVirtualMachineScaleSetsClient_NewListByLocationPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -32,7 +32,7 @@ func ExampleVirtualMachineScaleSetsClient_ListByLocation() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListByLocation("", + pager := client.NewListByLocationPager("", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) @@ -593,7 +593,7 @@ func ExampleVirtualMachineScaleSetsClient_GetInstanceView() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/VirtualMachineScaleSets_List_MaximumSet_Gen.json -func ExampleVirtualMachineScaleSetsClient_List() { +func ExampleVirtualMachineScaleSetsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -605,7 +605,7 @@ func ExampleVirtualMachineScaleSetsClient_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) @@ -621,7 +621,7 @@ func ExampleVirtualMachineScaleSetsClient_List() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/VirtualMachineScaleSets_ListAll_MaximumSet_Gen.json -func ExampleVirtualMachineScaleSetsClient_ListAll() { +func ExampleVirtualMachineScaleSetsClient_NewListAllPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -633,7 +633,7 @@ func ExampleVirtualMachineScaleSetsClient_ListAll() { log.Fatalf("failed to create client: %v", err) return } - pager := client.ListAll(nil) + pager := client.NewListAllPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { @@ -648,7 +648,7 @@ func ExampleVirtualMachineScaleSetsClient_ListAll() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/VirtualMachineScaleSets_GetOSUpgradeHistory_MaximumSet_Gen.json -func ExampleVirtualMachineScaleSetsClient_GetOSUpgradeHistory() { +func ExampleVirtualMachineScaleSetsClient_NewGetOSUpgradeHistoryPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -660,7 +660,7 @@ func ExampleVirtualMachineScaleSetsClient_GetOSUpgradeHistory() { log.Fatalf("failed to create client: %v", err) return } - pager := client.GetOSUpgradeHistory("", + pager := client.NewGetOSUpgradeHistoryPager("", "", nil) for pager.More() { diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_virtualmachinescalesetvmruncommands_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_virtualmachinescalesetvmruncommands_client_test.go index 528869cb4bac..ceb1f2fdb80a 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_virtualmachinescalesetvmruncommands_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_virtualmachinescalesetvmruncommands_client_test.go @@ -169,7 +169,7 @@ func ExampleVirtualMachineScaleSetVMRunCommandsClient_Get() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/runCommands/ListVirtualMachineScaleSetVMRunCommands.json -func ExampleVirtualMachineScaleSetVMRunCommandsClient_List() { +func ExampleVirtualMachineScaleSetVMRunCommandsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -181,7 +181,7 @@ func ExampleVirtualMachineScaleSetVMRunCommandsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", "", &armcompute.VirtualMachineScaleSetVMRunCommandsClientListOptions{Expand: nil}) diff --git a/sdk/resourcemanager/compute/armcompute/ze_generated_example_virtualmachinescalesetvms_client_test.go b/sdk/resourcemanager/compute/armcompute/ze_generated_example_virtualmachinescalesetvms_client_test.go index ff1e7c49ede6..e50507b8cec3 100644 --- a/sdk/resourcemanager/compute/armcompute/ze_generated_example_virtualmachinescalesetvms_client_test.go +++ b/sdk/resourcemanager/compute/armcompute/ze_generated_example_virtualmachinescalesetvms_client_test.go @@ -664,7 +664,7 @@ func ExampleVirtualMachineScaleSetVMsClient_GetInstanceView() { } // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/VirtualMachineScaleSetVMs_List_MaximumSet_Gen.json -func ExampleVirtualMachineScaleSetVMsClient_List() { +func ExampleVirtualMachineScaleSetVMsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -676,7 +676,7 @@ func ExampleVirtualMachineScaleSetVMsClient_List() { log.Fatalf("failed to create client: %v", err) return } - pager := client.List("", + pager := client.NewListPager("", "", &armcompute.VirtualMachineScaleSetVMsClientListOptions{Filter: to.Ptr(""), Select: to.Ptr("